runtime error
ckages/sklearn/base.py:376: InconsistentVersionWarning: Trying to unpickle estimator DecisionTreeRegressor from version 1.2.2 when using version 1.5.1. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations warnings.warn( Traceback (most recent call last): File "/home/user/app/app.py", line 7, in <module> model = AutoModel.from_pretrained("GodfreyOwino/NPK_prediction_model2", config=config, trust_remote_code=True) File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 559, in from_pretrained return model_class.from_pretrained( File "/home/user/.cache/huggingface/modules/transformers_modules/GodfreyOwino/NPK_prediction_model2/58c7bce9819c1b2cd32566b37b0476198f296e85/modeling_npk.py", line 61, in from_pretrained model = cls(config) File "/home/user/.cache/huggingface/modules/transformers_modules/GodfreyOwino/NPK_prediction_model2/58c7bce9819c1b2cd32566b37b0476198f296e85/modeling_npk.py", line 19, in __init__ self._load_models() File "/home/user/.cache/huggingface/modules/transformers_modules/GodfreyOwino/NPK_prediction_model2/58c7bce9819c1b2cd32566b37b0476198f296e85/modeling_npk.py", line 27, in _load_models self.xgb_model = pickle.load(f) File "_tree.pyx", line 867, in sklearn.tree._tree.Tree.__setstate__ File "_tree.pyx", line 1573, in sklearn.tree._tree._check_node_ndarray 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')]
Container logs:
Fetching error logs...