Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RAI multilabel classification notebook failure by pinning #3522

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

imatiach-msft
Copy link
Contributor

Description

Fix RAI multilabel classification notebook failure by pinning
Pinned number<1.24.0 on mlflow model to resolve error in "RAI Vision Insights" component:

Traceback (most recent call last):
  File "/mnt/azureml/cr/j/a896ff0f5fcc40aca1ad9f27d606f315/exe/wd/./rai_vision_insights.py", line 540, in <module>
    main(args)
  File "/azureml-envs/responsibleai-vision/lib/python3.9/site-packages/azureml/rai/utils/telemetry/loggerfactory.py", line 153, in wrapper
    return func(*args, **kwargs)
  File "/mnt/azureml/cr/j/a896ff0f5fcc40aca1ad9f27d606f315/exe/wd/./rai_vision_insights.py", line 507, in main
    rai_vi.compute(**automl_xai_args)
  File "/azureml-envs/responsibleai-vision/lib/python3.9/site-packages/responsibleai_vision/rai_vision_insights/rai_vision_insights.py", line 303, in compute
    manager.compute(**kwargs)
  File "/azureml-envs/responsibleai-vision/lib/python3.9/site-packages/responsibleai_vision/managers/explainer_manager.py", line 180, in compute
    self.compute_single_explanation(i, **kwargs)
  File "/azureml-envs/responsibleai-vision/lib/python3.9/site-packages/responsibleai_vision/managers/explainer_manager.py", line 245, in compute_single_explanation
    explanation = self.get_shap_explanations(image, max_evals)
  File "/azureml-envs/responsibleai-vision/lib/python3.9/site-packages/responsibleai_vision/managers/explainer_manager.py", line 328, in get_shap_explanations
    explainer = shap.Explainer(self._model.predict_proba,
  File "/azureml-envs/responsibleai-vision/lib/python3.9/site-packages/shap/explainers/_explainer.py", line 184, in __init__
    explainers.Partition.__init__(self, self.model, self.masker, link=self.link, feature_names=self.feature_names, linearize_link=linearize_link, output_names=self.output_names, **kwargs)
  File "/azureml-envs/responsibleai-vision/lib/python3.9/site-packages/shap/explainers/_partition.py", line 113, in __init__
    self._mask_matrix = make_masks(self._clustering)
  File "/azureml-envs/responsibleai-vision/lib/python3.9/site-packages/shap/utils/_masked_model.py", line 413, in make_masks
    indices_row_pos = np.zeros(2 * M - 1, dtype=np.int)
  File "/azureml-envs/responsibleai-vision/lib/python3.9/site-packages/numpy/__init__.py", line 324, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Checklist

  • I have read the contribution guidelines.
  • I have coordinated with the docs team ([email protected]) if this PR deletes files or changes any file names or file extensions.
  • Pull request includes test coverage for the included changes.
  • This notebook or file is added to the CODEOWNERS file, pointing to the author or the author's team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant