You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen #364 in which it's said "We may extend the types of data handled by the alibi explainers in the future (e.g. working on pandas dataframes) but this is not an immediate priority as there are several potential complications with this". Has there been any progress on this in 2.5 years?
I've tried to run AnchorTabular with the CatBoostRegressor trained on a dataset containing both continuous and categorical features:
CatBoostError: 'data' is numpy array of floating point numerical type, it means no categorical features, but 'cat_features' parameter specifies nonzero number of categorical features
The above exception was the direct cause of the following exception:
PredictorCallError Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/alibi/explainers/anchors/anchor_tabular.py](https://localhost:8080/#) in _transform_predictor(self, predictor)
1010 msg = f"Predictor failed to be called on {type(x)} of shape {x.shape} and dtype {x.dtype}. " \
1011 f"Check that the parameter `feature_names` is correctly specified."
-> 1012 raise PredictorCallError(msg) from e
1013
1014 if not isinstance(prediction, np.ndarray):
PredictorCallError: Predictor failed to be called on <class 'numpy.ndarray'> of shape (1, 11) and dtype float32. Check that the parameter `feature_names` is correctly specified.
because the explainer gives
[[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]]
Is there any way to supply categorical and continuous values simultaneously?
The text was updated successfully, but these errors were encountered:
TopCoder2K
changed the title
Mixed continuous and categorical features in AnchorTabular explainers (dataset doesn't contain NaNs)
Mixed continuous and categorical features in AnchorTabular explainers (my dataset doesn't contain NaNs)
Dec 13, 2023
TopCoder2K
changed the title
Mixed continuous and categorical features in AnchorTabular explainers (my dataset doesn't contain NaNs)
Mixed continuous and categorical features in the AnchorTabular explainers (my dataset doesn't contain NaNs)
Dec 13, 2023
Hi there!
I've seen #364 in which it's said "We may extend the types of data handled by the alibi explainers in the future (e.g. working on pandas dataframes) but this is not an immediate priority as there are several potential complications with this". Has there been any progress on this in 2.5 years?
I've tried to run
AnchorTabular
with theCatBoostRegressor
trained on a dataset containing both continuous and categorical features:but got
because the explainer gives
Is there any way to supply categorical and continuous values simultaneously?
The text was updated successfully, but these errors were encountered: