Reproductibility:
python src/models/predict_model.py --ensemble_strategy classification --run_id m72e4kdc 13q4uafc denrfqm6 62cf2e1k
error:
Traceback (most recent call last):
File "/Users/titou/Documents/RosIA/projets/crop-yield-estimate/src/models/predict_model.py", line 142, in
main()
File "/Users/titou/Documents/RosIA/projets/crop-yield-estimate/src/models/predict_model.py", line 35, in main
list_predict.append(predict(run_id))
File "/Users/titou/Documents/RosIA/projets/crop-yield-estimate/src/models/predict_model.py", line 95, in predict
X_train = preprocessor.fit_transform(X_train)
File "/opt/homebrew/Caskroom/miniconda/base/envs/crop-yield-estimate-env/lib/python3.10/site-packages/sklearn/utils/_set_output.py", line 157, in wrapped
data_to_wrap = f(self, X, *args, **kwargs)
File "/Users/titou/Documents/RosIA/projets/crop-yield-estimate/./src/features/preprocessing.py", line 64, in fit_transform
return self.fit(X).transform(X)
File "/opt/homebrew/Caskroom/miniconda/base/envs/crop-yield-estimate-env/lib/python3.10/site-packages/sklearn/utils/_set_output.py", line 157, in wrapped
data_to_wrap = f(self, X, *args, **kwargs)
File "/Users/titou/Documents/RosIA/projets/crop-yield-estimate/./src/features/preprocessing.py", line 56, in transform
X = self.make_consistent(X)
File "/Users/titou/Documents/RosIA/projets/crop-yield-estimate/./src/features/preprocessing.py", line 186, in make_consistent
X = X[self.out_columns]
File "/opt/homebrew/Caskroom/miniconda/base/envs/crop-yield-estimate-env/lib/python3.10/site-packages/pandas/core/frame.py", line 3902, in getitem
indexer = self.columns._get_indexer_strict(key, "columns")[1]
File "/opt/homebrew/Caskroom/miniconda/base/envs/crop-yield-estimate-env/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 6114, in _get_indexer_strict
self._raise_if_missing(keyarr, indexer, axis_name)
File "/opt/homebrew/Caskroom/miniconda/base/envs/crop-yield-estimate-env/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 6178, in _raise_if_missing
raise KeyError(f"{not_found} not in index")
KeyError: "['Acre'] not in index"