BigDataWUR / AgML-CY-Bench

CY-Bench (Crop Yield Benchmark) is a comprehensive dataset and benchmark to forecast crop yields at subnational level. CY-Bench standardizes selection, processing and spatio-temporal harmonization of public subnational yield statistics with relevant predictors. Contributors include agronomers, climate scientists and machine learning researchers.
https://cybench.agml.org/
Other
9 stars 3 forks source link

trend model bug #238

Closed krsnapaudel closed 3 weeks ago

krsnapaudel commented 3 weeks ago

Bug found during benchmark run.

File "C:\PycharmProjects\AgML\AgML-CY-Bench\cybench\runs\run_benchmark.py", line 237, in run_benchmark_on_all_data
    result = run_benchmark(run_name=run_name, dataset_name=crop + "_" + cn)
  File "C:\PycharmProjects\AgML\AgML-CY-Bench\cybench\runs\run_benchmark.py", line 152, in run_benchmark
    predictions, _ = model.predict(test_dataset)
  File "C:\PycharmProjects\AgML\AgML-CY-Bench\cybench\models\model.py", line 35, in predict
    return self.predict_batch(batch, **predict_params)
  File "C:\PycharmProjects\AgML\AgML-CY-Bench\cybench\models\trend_model.py", line 97, in predict_batch
    predictions[i] = trend_est.predict(trend_x)
  File "C:\PycharmProjects\AgML\AgML_env\lib\site-packages\statsmodels\base\model.py", line 1174, in predict
    predict_results = self.model.predict(self.params, exog, *args,
  File "C:\PycharmProjects\AgML\AgML_env\lib\site-packages\statsmodels\regression\linear_model.py", line 412, in predict
    return np.dot(exog, params)
ValueError: shapes (1,2) and (1,) not aligned: 2 (dim 1) != 1 (dim 0)

Run for AO data, 2008.