slds-lmu / iml-shiny-summary

Shiny Dashboard showing an interpretation summary for any model
MIT License
3 stars 2 forks source link

Local Interpretation tab, sth is wrong? #11

Open QWERTZ11 opened 4 years ago

QWERTZ11 commented 4 years ago

If input, the number of a given instance, exceeds size of a given dataset. the full dataset will be shown. And the shapley values are still can be calculated? wrong?

We can check the input with need(), but size.data is not fest here, it depends on dataset from outsides.

`validate( need(instance != "", "Please give an instance."), need(instance > 0, "Instance should be a positive integer.")

need(instance < size.data, "Instance cannot exceed data size.")

)`