-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
KNNClassifier has no field or method optimisedEuclideanPredict #281
Comments
hi, i think you use the wrong way to use this packages. here its the simply examples.
then you will get this
then run the command
|
I was having the same error. The library requires you to have the C compiler (cpp), I think installing it correctly you can solve this problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I am trying to run a simple example and I'm facing the error below.
❯ go run cmd/main.go
github.com/sjwhitworth/golearn/knn
../../../go/pkg/mod/github.com/sjwhitworth/[email protected]/knn/knn.go:132:16: KNN.optimisedEuclideanPredict undefined (type *KNNClassifier has no field or method optimisedEuclideanPredict)
❯ go version
go version go1.19 linux/amd64
❯ cat go.mod
module localhost/mlpipeline
go 1.19
require github.com/sjwhitworth/golearn v0.0.0-20211014193759-a8b69c276cd8
require (
github.com/gonum/blas v0.0.0-20181208220705-f22b278b28ac // indirect
github.com/gonum/lapack v0.0.0-20181123203213-e4cdc5a0bff9 // indirect
github.com/gonum/matrix v0.0.0-20181209220409-c518dec07be9 // indirect
github.com/google/go-cmp v0.4.0 // indirect
github.com/guptarohit/asciigraph v0.5.1 // indirect
github.com/mattn/go-runewidth v0.0.7 // indirect
github.com/olekukonko/tablewriter v0.0.4 // indirect
github.com/rocketlaunchr/dataframe-go v0.0.0-20201007021539-67b046771f0b // indirect
golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5 // indirect
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a // indirect
gonum.org/v1/gonum v0.8.1 // indirect
)
... code ...
The text was updated successfully, but these errors were encountered: