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.")
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.")