Open afrogri37 opened 3 years ago
Hello, in the example
GiniImportanceForest(RF, data2,score="PMDI22",Predictor=mean)
, I'm getting the following error:GiniImportanceForest(RF, data2,score="PMDI22",Predictor=mean)
. Is it a known bug? Do you have any suggestions on how to fix this?
I managed to resolve it by using Predictor=base::mean
when calling the function. Otherwise the evaluation of the predictor's class is not correct.
Great to hear that you were able to resolve it. It sounds though as if your namespace had a collision with the mean function, which is very surprising. If you ask for help ?mean do you see another package besides base ?
Best Markus
On Mon, 24 May 2021 at 15:10, Afroditi Grigoropoulou < @.***> wrote:
Hello, in the example GiniImportanceForest(RF, data2,score="PMDI22",Predictor=mean), I'm getting the following error: GiniImportanceForest(RF, data2,score="PMDI22",Predictor=mean). Is it a known bug? Do you have any suggestions on how to fix this?
I managed to resolve it by using Predictor=base::mean when calling the function. Otherwise the evaluation of the predictor's class is not correct.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/markusloecher/rfVarImpOOB/issues/1#issuecomment-847032185, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYDHSYYVESA4HINJD5NR4TTPJF5NANCNFSM45M64DWQ .
No, just base R, that's why I was surprised as well.
Best, Afroditi
Can you send me the full example code, so I can reproduce on my end ? Thx Markus
On Tue, 25 May 2021 at 09:12, Afroditi Grigoropoulou < @.***> wrote:
No, just base R, that's why I was surprised as well.
Best, Afroditi
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/markusloecher/rfVarImpOOB/issues/1#issuecomment-847609830, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYDHS6DDXNHFM5AXJNF2FTTPNEWNANCNFSM45M64DWQ .
Hello, in the example
GiniImportanceForest(RF, data2,score="PMDI22",Predictor=mean)
, I'm getting the following error:GiniImportanceForest(RF, data2,score="PMDI22",Predictor=mean)
. Is it a known bug? Do you have any suggestions on how to fix this?