Closed malay-manglish-datasets closed 9 months ago
I can't reproduce the problem. All three widgets fork fine. Can you please provide your Orange3-Explain add-on version?
There may be a problem with the SHAP library that Orane3-explain uses (some older versions). Can you also provide a library version besides providing an add-on version? You can find those versions by opening the Orange command prompt from the Windows start menu (open the start menu and search for the Orange command prompt). Then run the command conda list
, and please paste the output to this issue.
I can't reproduce the problem. All three widgets fork fine. Can you please provide your Orange3-Explain add-on version?
0.6.4 < 0.6.8
I have reinstalled Orange, but nothing.
There may be a problem with the SHAP library that Orane3-explain uses (some older versions). Can you also provide a library version besides providing an add-on version? You can find those versions by opening the Orange command prompt from the Windows start menu (open the start menu and search for the Orange command prompt). Then run the command
conda list
, and please paste the output to this issue.
shap 0.41.0 pypi_0 pypi
the whole list:
_py-xgboost-mutex 2.0 cpu_0
It may be connected to https://github.com/shap/shap/issues/3055.
~Can you run pip install -U shap
in the same Orange command prompt you used to get versions?~
We found out that a newer version of ornage3-explain requires a newer version of SHAP so maybe it is better to just upgrade the explain addon in Orange addon dialog.
Let us know if it solves the problem.
It may be connected to shap/shap#3055.
~Can you run
pip install -U shap
in the same Orange command prompt you used to get versions?~We found out that a newer version of ornage3-explain requires a newer version of SHAP so maybe it is better to just upgrade the explain addon in Orange addon dialog.
Let us know if it solves the problem.
I ran the pip and now its working fine though it showed the below notification.
(C:\Orange) C:\Orange>pip install -U shap Requirement already satisfied: shap in c:\users\rui\appdata\roaming\python\python39\site-packages (0.43.0) Collecting shap Obtaining dependency information for shap from https://files.pythonhosted.org/packages/a4/69/d7fa1ed3a315d3e63f4d57f6c9e4523fba4f179fb5fd1dee6b2085491195/shap-0.44.0-cp39-cp39-win_amd64.whl.metadata Downloading shap-0.44.0-cp39-cp39-win_amd64.whl.metadata (24 kB) Requirement already satisfied: numpy in c:\users\rui\appdata\roaming\python\python39\site-packages (from shap) (1.21.6) Requirement already satisfied: scipy in c:\users\rui\appdata\roaming\python\python39\site-packages (from shap) (1.10.1) Requirement already satisfied: scikit-learn in c:\users\rui\appdata\roaming\python\python39\site-packages (from shap) (1.2.2) Requirement already satisfied: pandas in c:\orange\lib\site-packages (from shap) (1.5.3) Requirement already satisfied: tqdm>=4.27.0 in c:\orange\lib\site-packages (from shap) (4.65.0) Requirement already satisfied: packaging>20.9 in c:\orange\lib\site-packages (from shap) (23.1) Requirement already satisfied: slicer==0.0.7 in c:\users\rui\appdata\roaming\python\python39\site-packages (from shap) (0.0.7) Requirement already satisfied: numba in c:\orange\lib\site-packages (from shap) (0.57.1) Requirement already satisfied: cloudpickle in c:\orange\lib\site-packages (from shap) (2.2.1) Requirement already satisfied: colorama in c:\orange\lib\site-packages (from tqdm>=4.27.0->shap) (0.4.6) Requirement already satisfied: llvmlite<0.41,>=0.40.0dev0 in c:\orange\lib\site-packages (from numba->shap) (0.40.1) Requirement already satisfied: python-dateutil>=2.8.1 in c:\orange\lib\site-packages (from pandas->shap) (2.8.2) Requirement already satisfied: pytz>=2020.1 in c:\orange\lib\site-packages (from pandas->shap) (2023.3.post1) Requirement already satisfied: joblib>=1.1.1 in c:\users\rui\appdata\roaming\python\python39\site-packages (from scikit-learn->shap) (1.3.2) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\orange\lib\site-packages (from scikit-learn->shap) (3.2.0) Requirement already satisfied: six>=1.5 in c:\orange\lib\site-packages (from python-dateutil>=2.8.1->pandas->shap) (1.16.0) Downloading shap-0.44.0-cp39-cp39-win_amd64.whl (447 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 448.0/448.0 kB 5.6 MB/s eta 0:00:00 Installing collected packages: shap Attempting uninstall: shap Found existing installation: shap 0.43.0 Uninstalling shap-0.43.0: Successfully uninstalled shap-0.43.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. orange3-explain 0.6.4 requires shap==0.41.*, but you have shap 0.44.0 which is incompatible. Successfully installed shap-0.41.0
It may be connected to shap/shap#3055. ~Can you run
pip install -U shap
in the same Orange command prompt you used to get versions?~ We found out that a newer version of ornage3-explain requires a newer version of SHAP so maybe it is better to just upgrade the explain addon in Orange addon dialog. Let us know if it solves the problem.I ran the pip and now its working fine though it showed the below notification.
(C:\Orange) C:\Orange>pip install -U shap Requirement already satisfied: shap in c:\users\rui\appdata\roaming\python\python39\site-packages (0.43.0) Collecting shap Obtaining dependency information for shap from https://files.pythonhosted.org/packages/a4/69/d7fa1ed3a315d3e63f4d57f6c9e4523fba4f179fb5fd1dee6b2085491195/shap-0.44.0-cp39-cp39-win_amd64.whl.metadata Downloading shap-0.44.0-cp39-cp39-win_amd64.whl.metadata (24 kB) Requirement already satisfied: numpy in c:\users\rui\appdata\roaming\python\python39\site-packages (from shap) (1.21.6) Requirement already satisfied: scipy in c:\users\rui\appdata\roaming\python\python39\site-packages (from shap) (1.10.1) Requirement already satisfied: scikit-learn in c:\users\rui\appdata\roaming\python\python39\site-packages (from shap) (1.2.2) Requirement already satisfied: pandas in c:\orange\lib\site-packages (from shap) (1.5.3) Requirement already satisfied: tqdm>=4.27.0 in c:\orange\lib\site-packages (from shap) (4.65.0) Requirement already satisfied: packaging>20.9 in c:\orange\lib\site-packages (from shap) (23.1) Requirement already satisfied: slicer==0.0.7 in c:\users\rui\appdata\roaming\python\python39\site-packages (from shap) (0.0.7) Requirement already satisfied: numba in c:\orange\lib\site-packages (from shap) (0.57.1) Requirement already satisfied: cloudpickle in c:\orange\lib\site-packages (from shap) (2.2.1) Requirement already satisfied: colorama in c:\orange\lib\site-packages (from tqdm>=4.27.0->shap) (0.4.6) Requirement already satisfied: llvmlite<0.41,>=0.40.0dev0 in c:\orange\lib\site-packages (from numba->shap) (0.40.1) Requirement already satisfied: python-dateutil>=2.8.1 in c:\orange\lib\site-packages (from pandas->shap) (2.8.2) Requirement already satisfied: pytz>=2020.1 in c:\orange\lib\site-packages (from pandas->shap) (2023.3.post1) Requirement already satisfied: joblib>=1.1.1 in c:\users\rui\appdata\roaming\python\python39\site-packages (from scikit-learn->shap) (1.3.2) Requirement already satisfied: threadpoolctl>=2.0.0 in c:\orange\lib\site-packages (from scikit-learn->shap) (3.2.0) Requirement already satisfied: six>=1.5 in c:\orange\lib\site-packages (from python-dateutil>=2.8.1->pandas->shap) (1.16.0) Downloading shap-0.44.0-cp39-cp39-win_amd64.whl (447 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 448.0/448.0 kB 5.6 MB/s eta 0:00:00 Installing collected packages: shap Attempting uninstall: shap Found existing installation: shap 0.43.0 Uninstalling shap-0.43.0: Successfully uninstalled shap-0.43.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. orange3-explain 0.6.4 requires shap==0.41.*, but you have shap 0.44.0 which is incompatible. Successfully installed shap-0.41.0
Opps i accidentally sent before finishing.
I actually reinstalled the whole Orange plus the add ons updates but didn't work. the -U works. Thanks a lot everyone.
Thanks for trying.
The warning you get is because you have an older version of orange3-explain installed, and it requires an older version of SHAP however, there is a newer version of Explain add-on available, and you can update it from the Add-ons menu in Orange.
The newer version of Explain already requires a newer version of SHAP so the problem is already solved on our side, and therefore, I am closing this issue.
What's wrong?
Explain Model, Explain Prediction and Explain Predictions widgets show error "module numpy has no attribute int".
How can we reproduce the problem?
What's your environment?