Created
May 4, 2020 06:49
-
-
Save Alakhator/c5da335e40e00d46dea27304f1f74eee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SquaredLoss<> loss; //initializing square loss object | |
Data<RealVector> prediction = model(data.inputs()); //prediction is calculated based on data inputs | |
cout << "squared loss: " << loss(data.labels(), prediction) << endl; // In end we ouptut the loss |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment