mhahsler / recommenderlab

recommenderlab - Lab for Developing and Testing Recommender Algorithms - R package
213 stars 61 forks source link

Problem with `keepModel` option in `evaluationScheme.evaluate()` method #54

Closed gregreich closed 3 years ago

gregreich commented 3 years ago

It would be great if the RECOMs are stored when evaluated via evaluationScheme, for example to record the outcome of an AR mining process, etc. My understanding is that evaluate(..., keepModel = TRUE) would allow this; but it gives me an error:

AR run fold/sample [model time/prediction time]
...
[30.545sec/38.538sec] Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘getModel’ for signature ‘"numeric"’
RANDOM run fold/sample [model time/prediction time]
     1  [0.912sec/3.366sec] Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘getModel’ for signature ‘"numeric"’
Warnmeldung:
In .local(x, method, ...) : 
  Recommender 'AR1' has failed and has been removed from the results!
  Recommender 'RANDOM' has failed and has been removed from the results!
mhahsler commented 3 years ago

This looks like a bug. I will look into it.

mhahsler commented 3 years ago

This should now be fixed.

gregreich commented 3 years ago

Thank you! Works as expected now.