Comments (2)
Hi,
The outcome in the dataset is a score on the PHQ8-scale (I think it is phq8_labels
= [0 to 24]).
- The labels in which the classifier is trained with are normalized by the max(
phq8_labels
). So during training your ground truth (true
) and predictions (pred
) will be between 0 and 1.
true = [1, 0, 0, 1, 0, 1]
pred = [0.8, 0.2, 0.1, 0.7, 0.3, 0.9]
- To calculate MAE and RMSE, you will need to rescale your
true
andpred
values back to the PHQ-8 scale.
true = max(phq8_labels) * true
pred = max(phq8_labels) * pred
- Now you can calculate MAE (mean absolute error) and RMSE (root mean square error), as follows.
MAE = np.mean(np.abs(true - pred))
RMSE = np.sqrt(np.mean(np.abs(true - pred) * np.abs(true - pred)))
I hope that clarifies it.
from redbud-tree-depression.
Ok, i understand your explanation. Thank you for your help.
from redbud-tree-depression.
Related Issues (10)
- Feature processing HOT 1
- Question about X_{train, dev} shape and content
- How to exclude some features ? HOT 2
- Some problem for accuracy HOT 5
- Python environment version HOT 1
- No such file or directory: 'data/audio/X_train.npy' HOT 2
- data/audio/x_train.npy
- How to get 8050 training examples (subject responses)? HOT 8
- Question about validation and test data HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redbud-tree-depression.