mxnet
mxnet copied to clipboard
change the cost function
Hi,
How do I know what is the cost function used in the output layers? Can I change it to least squares error for LinearRegressionOutput?
model.fit(
X = train,
eval_data = val,
eval_metric = ['rmse'],
...)
this is the loss for evaluation but not for the training, i thought
@freddycct No, train and test also can use it, just try
When you choose mx.symbol.LinearRegressionOutput as last layer, the train loss function is encoded in that layer. eval_metric = ['rmse'] is just for the train and val result feedback for us to tune the hyperparameters
ok thank you