You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Mon, Jan 8, 2024 at 11:47 AM ggrothendieck ***@***.***> wrote:
This gives the error shown.
library(qeML)
set.seed(123)
ix <- sample(10, 15, replace = TRUE) + seq(1, 150, 10) - 1
iris.ix <- iris[ix, 1:4]
qeKNN(iris.ix, "Petal.Length", k = 1)
## Error in `[.data.frame`(tst, , ycol) : undefined columns selected
Note that this works without error:
library(qeML)
set.seed(123)
qeKNN(iris[1:4], "Petal.Length", k = 1)
# ...snip...
and this too:
library(FNN)
set.seed(123)
ix <- sample(10, 15, replace = TRUE) + seq(1, 150, 10) - 1
iris.ix <- iris[ix, 1:4]
knn.reg(iris.ix[-4], y = iris.ix[[4]], k = 1)
## PRESS = 0.44
## R2-Predict = 0.9511979
—
Reply to this email directly, view it on GitHub
<#12>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZ34ZN6RYZU54PQJ7RPML3YNRENVAVCNFSM6AAAAABBR7KG72VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3TCMJRGUYTEOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
This gives the error shown.
Note that this works without error:
and this too:
The text was updated successfully, but these errors were encountered: