back compatibility
Hi I trained a ngboost model under python 3.8, and saved the model using joblib. Now I want to migrate to python 3.12. Model retrain is not an option. I want to load the saved model under python 3.12 but got an error:
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')]
Is there anyway around it without retrain the model under the new environment?
Is this project still alive ??? :)
I am getting this error as well. SHAP 0.40.0 Transformers 4.12.3
Will try downgrading shap...
Thanks for sharing @smart-patrol , please also help to let me know if downgrading works, really appreciate it.
same here
This issue has been inactive for two years, so it's been automatically marked as 'stale'.
We value your input! If this issue is still relevant, please leave a comment below. This will remove the 'stale' label and keep it open.
If there's no activity in the next 90 days the issue will be closed.
This issue has been automatically closed due to lack of recent activity.
Your input is important to us! Please feel free to open a new issue if the problem persists or becomes relevant again.