Replies: 3 comments 2 replies
-
Hi @hermitico, thank you for your question. If you want to run a regression task, you can simply follow these steps:
|
Beta Was this translation helpful? Give feedback.
-
Thanks! I have commented post_pred. What about post_label? y_onehot and y_pred_act are prepared for classification instead of regression, right? How should I change this validation part?
|
Beta Was this translation helpful? Give feedback.
-
Hi @hermitico, you also don't need to discrete your label. And the output of the network is your prediction, which is used to calculate the loss and metric with your label. So in validation part, you also don't need prepare your output and label, use
Hope it can help you! Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
I'm new to this field, and I find your project remarkable.
I would like to know if it's possible to turn that classification example into a regression.
Instead of predicting sex based on structural MRI, I would like to predict cognitive scores having continuous variables.
If so, what lines of code would you add/change to the tutorial example code?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions