Coder Social home page Coder Social logo

Comments (2)

talhanai avatar talhanai commented on July 3, 2024

Hi,

The outcome in the dataset is a score on the PHQ8-scale (I think it is phq8_labels = [0 to 24]).

  1. 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]
  1. To calculate MAE and RMSE, you will need to rescale your true and pred values back to the PHQ-8 scale.
true = max(phq8_labels) * true
pred = max(phq8_labels) * pred
  1. 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.

zhouzyhfut avatar zhouzyhfut commented on July 3, 2024

Ok, i understand your explanation. Thank you for your help.

from redbud-tree-depression.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.