nredell / shapFlex

An R package for computing asymmetric Shapley values to assess causality in any trained machine learning model
Other
71 stars 7 forks source link

shapFlex::r2 returned NaN for r2_shap #13

Closed paullevchuk closed 4 years ago

paullevchuk commented 4 years ago

I used your cool function and it worked well, but for one dataset it returned me NaN. image

nredell commented 4 years ago

Well that's no good. If you send a reproducible example we may be able to fix it.

paullevchuk commented 4 years ago

I'm sorry for disturbing you. I reran my h2o R-code and after that your function worked well.

nredell commented 4 years ago

Right on. No problem at all. Glad it's working.