-
Notifications
You must be signed in to change notification settings - Fork 66
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
Autodiff support #101
Comments
Wouldn't just computing knn by itself and then differentiating through the distance function give the same result? |
I'm not sure I understand what you mean. Could you please elaborate a bit more? |
I think this is still an issue. I'm trying defining a loss function as: function loss(model, x, y)
sum(nn(tree, model(x))[2] .^ 2)
end (Yes, instead of And
stacktrace
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would it make sense to be able to autodiff through
knn
s?I tried using
ForwardDiff
but due to the definition of distances
and the fact that a dual number distance is asigned to elements of that vector
I get the following error with the code above:
The text was updated successfully, but these errors were encountered: