runtime error
rap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/code/./main.py", line 11, in <module> model = joblib.load("gradient_boosting.joblib") File "/usr/local/lib/python3.9/site-packages/joblib/numpy_pickle.py", line 658, in load obj = _unpickle(fobj, filename, mmap_mode) File "/usr/local/lib/python3.9/site-packages/joblib/numpy_pickle.py", line 577, in _unpickle obj = unpickler.load() File "/usr/local/lib/python3.9/pickle.py", line 1212, in load dispatch[key[0]](self) File "/usr/local/lib/python3.9/site-packages/joblib/numpy_pickle.py", line 415, in load_build self.stack.append(array_wrapper.read(self)) File "/usr/local/lib/python3.9/site-packages/joblib/numpy_pickle.py", line 252, in read array = self.read_array(unpickler) File "/usr/local/lib/python3.9/site-packages/joblib/numpy_pickle.py", line 152, in read_array array = pickle.load(unpickler.file_handle) File "sklearn/tree/_tree.pyx", line 714, in sklearn.tree._tree.Tree.__setstate__ File "sklearn/tree/_tree.pyx", line 1418, 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...