-
Notifications
You must be signed in to change notification settings - Fork 18
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
fastknn for regression #1
Comments
I'm sorry but for now, unfortunately,
However, some methods like |
when i run : knnDecision(x.tr, y.tr, x.te, y.te, k = 15) . Error in viridisLite::viridis(256, alpha, begin, end, direction, option) : unused argument (option) |
Hi @yunxileo, I can't reproduce your problem. I need more details about your data. Have you tried the toy example in the documentation? library(fastknn)
## Load toy data
data("spirals", package = "fastknn")
## Split data for training and test
set.seed(123)
tr.idx <- which(caTools::sample.split(Y = spirals$y, SplitRatio = 0.7))
x.tr <- spirals$x[tr.idx, ]
x.te <- spirals$x[-tr.idx, ]
y.tr <- spirals$y[tr.idx]
y.te <- spirals$y[-tr.idx]
## Plot decision boundary
knnDecision(x.tr, y.tr, x.te, y.te, k = 15) Try it and let me know if the problem persists. In addition, check your version of the |
I am sorry ,but the problem persists . |
Hi @yunxileo, I'm not able to reproduce this problem on Ubuntu 16.04 x64, so I used Note that all tests returned without error, including the tests for the Unfortunately, I have no idea about the origin of your problem. Try to reinstall the If there is something else I can do to help you, please ask me! I hope you find a solution. |
Actually,after I reinstall the viridisLite package,the knnDecision() works.Thanks a lot for your help! |
Hi , I want to ask can this fastknn funcion use for regression?
The text was updated successfully, but these errors were encountered: