Skip to content

problems with extractPrediction in package caret

3 messages · "Häring, Tim (LWF)", Uwe Ligges, Max Kuhn

#
H?ring, Tim (LWF) wrote:
I cannot reproduce it (not having your data) and I doubt you are using 
the most recent version which is 3.51.
Anyway, *if* it is a bug, then please report to the package maintainer.

Best,
Uwe Ligges
#
The issue is the usage of extractPrediction.

   expred <- extractPrediction(rftrain)

should really be

   expred <- extractPrediction(list(rftrain))

Since this function is intended to get predictions across multiple
models, the man file has a description of the first argument to teh
funtion being "a list of objects of the class train."