Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code examples in "Getting Started" don't seem to work #174

Closed
alex-s-gardner opened this issue Aug 24, 2023 · 3 comments
Closed

Code examples in "Getting Started" don't seem to work #174

alex-s-gardner opened this issue Aug 24, 2023 · 3 comments
Labels

Comments

@alex-s-gardner
Copy link

using LossFunctions
L2DistLoss()(0.5, 1.0)

ERROR: MethodError: no method matching (::L2DistLoss)(::Float64, ::Float64)
Stacktrace:
 [1] top-level scope
   @ REPL[35]:1

Same issue for other examples as well

@alex-s-gardner
Copy link
Author

It looks like loss functions now accept vector inputs and do not use dispatch

@juliohm
Copy link
Member

juliohm commented Aug 25, 2023

Can't reproduce the error. Are you positive that you are using the latest version?

@alex-s-gardner
Copy link
Author

alex-s-gardner commented Aug 25, 2023

@juliohm you are very correct... not sure what was going on there. I must have been using an older version of LossFunctions.

It works fine with LossFunctions v0.11.1, apologies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants