Среда:
Исходная версия: Python 3.7.3, scikit-learn 0.23.1
Текущая версия: Python 3.10, scikit-learn 1.3.2
Проблема:
При загрузке маринованной модели я получаю следующую ошибку:
Код: Выделить всё
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': ['
Подробнее здесь: [url]https://stackoverflow.com/questions/78785221/valueerror-when-loading-sklearn-decisiontreeclassifier-pickle-in-python-3-10[/url]