Hello,

If you are using function resamples from package caret, just read its help page. From ?resamples, section Arguments:

Arguments

x       
a list of two or more objects of class train, sbf or rfe with a common set of resampling indices in the control object. For sort.resamples, it is an object generated by resamples.


Your x argument is not an object of one of those classes. You are passing the function a list of 2 numeric values, not an object resembling the examples in that help page.


Hope this helps,

Rui Barradas


Às 11:35 de 24/02/20, javed khan escreveu:
Hello

I am using genetic algorithm for some optimization problem. I executed it
with 2 types of data and get results like

GA=40
GA2=60

When I combine it with resamples

Value=resamples (list (GA, GA2))

It gives me the error

$ operator is invalid for atomic vectors.

What should be the issue here?

Thanks

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to