Skip to content

Instantly share code, notes, and snippets.

@vnegi10
Created August 6, 2023 16:16
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 vnegi10/27c5e499de3d3b00d5f20fd1f36f722b to your computer and use it in GitHub Desktop.
Save vnegi10/27c5e499de3d3b00d5f20fd1f36f722b to your computer and use it in GitHub Desktop.
function get_loss(flux_model, x_in, y_in)
y_model = flux_model(x_in)
mse_error = Flux.mse(y_model, y_in)
return mse_error
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment