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

KNN.optimisedEuclideanPredict undefined (type *KNNClassifier has no field or method optimisedEuclideanPredict) #286

Open
etgcrog opened this issue Feb 20, 2023 · 6 comments

Comments

@etgcrog
Copy link

etgcrog commented Feb 20, 2023

Hello, Dear

i'm use the package knn, but received a error in 133 line, i belive that the archive knn_opt_euclidean.go don't be imported correctly.

knn.go:132:16: KNN.optimisedEuclideanPredict undefined (type *KNNClassifier has no field or method optimisedEuclideanPredict)

@riverlaker
Copy link

riverlaker commented Feb 20, 2023 via email

@etgcrog
Copy link
Author

etgcrog commented Feb 21, 2023

Sorry man, I found the error, the library requires that I have the c compiler (cpp) for it to work correctly. thank you anyway

@clambin
Copy link

clambin commented Oct 5, 2023

works if you build with CGO_ENABLED=1. kind of a bummer: I build everything with cgo disabled.

@riverlaker
Copy link

riverlaker commented Oct 5, 2023 via email

@dreaminglwj
Copy link

dreaminglwj commented Oct 5, 2023 via email

@vennarbank
Copy link

vennarbank commented Oct 10, 2023 via email

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

No branches or pull requests

5 participants