Skip to content

Instantly share code, notes, and snippets.

@Alakhator
Created May 4, 2020 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alakhator/c5da335e40e00d46dea27304f1f74eee to your computer and use it in GitHub Desktop.
Save Alakhator/c5da335e40e00d46dea27304f1f74eee to your computer and use it in GitHub Desktop.
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