[R] Fwd: Error in setting the parameter values of k

Neha gupta neh@@bo|ogn@90 @end|ng |rom gm@||@com
Tue Dec 29 16:26:17 CET 2020

I am using mlr3 'fast nearest neighbor' leaner i.e. fnn

Its parameter is 'k' which has a default value of 1. When I use tuning
using random search, I set the parameter of k as: lower= 0, upper=3

But it gives an error message

Error in self$assert(xs) :
  Assertion on 'xs' failed: k: Element 1 is not >= 1.

I have tried different values but the error remains.

Warm regards

	[[alternative HTML version deleted]]

More information about the R-help mailing list