Regression calculation for housing calculation doesn't work

code:

result:

File "C:\Users\samue\anaconda3\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 556, in _run_script
    exec(code, module.__dict__)
File "C:\Users\samue\PycharmProjects\regression boston housing\main.py", line 85, in <module>
    shap.summary_plot(shap_values, X, plot_size="bar")
File "C:\Users\samue\anaconda3\lib\site-packages\shap\plots\_beeswarm.py", line 608, in summary_legacy
    pl.gcf().set_size_inches(8, len(feature_order) * plot_size + 1.5)

Interesting.

Have you reported this problem to the people who wrote the code? What was their response?

What help would you like from the Python community about this situation?

You have some output that looks like part of a traceback, but it is missing the “Traceback” line at the start and the actual error at the end.

How are you running the code?

1 Like