Aggregating losses from different tasks #826
-
Hi, thank you for all your work! It is amazing!!! Does PySR support multitask learning? Specifically, I have several datasets for different tasks and I would want to compute losses relative the datasets and aggregate them in some way. I have looked up documentation and it seems like the only way to do that is just combine all datasets into one matrix |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, thanks! If you are ok with having fixed weightings, I would just make a custom loss function and sum up the different losses. I recommend using a TemplateExpressionSpec for this and just putting all the datasets into X; then you can call an expression multiple times with different features each time. |
Beta Was this translation helpful? Give feedback.
Hi, thanks!
If you are ok with having fixed weightings, I would just make a custom loss function and sum up the different losses.
I recommend using a TemplateExpressionSpec for this and just putting all the datasets into X; then you can call an expression multiple times with different features each time.