ValueError: node array from the pickle has an incompatible dtype: - expected: {ânamesâ: [âleft_childâ, âright_childâ, âfeatureâ, âthresholdâ, âimpurityâ, ân_node_samplesâ, âweighted_n_node_samplesâ, âmissing_go_to_leftâ], âformatsâ: [â<i8â, â<i8â, â<i8â, â<f8â, â<f8â, â<i8â, â<f8â, âu1â], âoffsetsâ: [0, 8, 16, 24, 32, 40, 48, 56], âitemsizeâ: 64} - got : [(âleft_childâ, â<i8â), (âright_childâ, â<i8â), (âfeatureâ, â<i8â), (âthresholdâ, â<f8â), (âimpurityâ, â<f8â), (ân_node_samplesâ, â<i8â), (âweighted_n_node_samplesâ, â<f8â)]
Traceback:
File "C:\Users\Sahana K S\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in _run_script
exec(code, module.__dict__)File "C:\Users\Sahana K S\Desktop\manasa\main.py", line 8, in <module>
pipe = pickle.load(open('pipe.pkl', 'rb'))File "sklearn\\tree\\_tree.pyx", line 865, in sklearn.tree._tree.Tree.__setstate__File "sklearn\\tree\\_tree.pyx", line 1571, in sklearn.tree._tree._check_node_ndarray
```If you're creating a **debugging post**, please include the following info:
1 App is running locally
requirements
streamlit==1.23.1
scikit-learn==1.4.0
pandas==2.2.0
numpy==1.26.4
pickle-mixin==1.0.2
pickleshare==0.7.5
xgboost==2.0.3