Description Usage Arguments Value
Compute (mean) squared error for linear multi-task model.
1 2 |
LMTL.model |
Linear multi-task learning model (list containing B and intercept). |
Y |
N by K output matrix for every task. |
X |
N by J1 matrix of features common to all tasks. |
task.specific.features |
Named list of features which are specific to each task. Each entry contains an N by J2 matrix for one particular task (where columns are features). List has to be ordered according to the columns of Y. |
pred |
Predicted output matrix. If NULL, compute predictions using input features. |
normalize |
Compute mean (TRUE) or sum (FALSE). |
aggregate.tasks |
Aggregate results over all tasks (TRUE) or return task specific errors (FALSE). |
The (mean) squared error between predictions for each task and Y.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.