Ik heb zojuist geupdate naar de laatste versie (4.1). Ik krijg echter onderstaande fouten:
het opnieuw trainen van de ml modellen heeft het opgelost
code:
Edit: lezen is ook een kunst 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
| 2026-04-11 16:08:52 INFO: Loaded 6 secrets from ../data/secrets.json
2026-04-11 16:08:52 INFO: Validating configuration with ConfigurationV0
2026-04-11 16:08:52 info: Day Ahead Optimalisering versie: 2026.04.1
2026-04-11 16:08:52 info: Day Ahead Optimalisering gestart op: 11-04-2026 16:08:52
2026-04-11 16:08:52 info: Day Ahead Optimalisatie gestart: 11-04-2026 16:08:52 taak: calc_optimum_met_debug
2026-04-11 16:08:52 info: Debug = True
2026-04-11 16:08:52 info: Baseload uit instellingen
2026-04-11 16:08:52 fout: Er is een fout opgetreden, zie de fout-tracering
Traceback (most recent call last):
File "/root/dao/prog/da_base.py", line 694, in run_task_function
getattr(self, run_task["function"])()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/root/dao/prog/da_base.py", line 538, in calc_optimum_met_debug
dacalc.calc_optimum()
~~~~~~~~~~~~~~~~~~~^^
File "/root/dao/prog/day_ahead.py", line 288, in calc_optimum
solar_prog = self.calc_solar_predictions(
self.solar[s], start_interval_dt, end, self.interval
)
File "/root/dao/prog/da_base.py", line 587, in calc_solar_predictions
solar_prog = solar_predictor.predict_solar_device(
solar_option, vanaf, tot
)
File "/root/dao/prog/solar_predictor.py", line 1024, in predict_solar_device
prediction = self.predict(weather_data)
File "/root/dao/prog/solar_predictor.py", line 702, in predict
prediction = self.model.predict(featured_df)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 751, in inner_f
return func(**kwargs)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/sklearn.py", line 1446, in predict
predts = self.get_booster().inplace_predict(
data=X,
...<4 lines>...
validate_features=validate_features,
)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 751, in inner_f
return func(**kwargs)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 2854, in inplace_predict
self._validate_features(fns)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 3429, in _validate_features
raise ValueError(msg.format(self.feature_names, feature_names))
ValueError: feature_names mismatch: ['temperature', 'irradiance', 'day_of_week', 'hour', 'quarter', 'month', 'season', 'week_nr'] ['temperature', 'irradiance', 'windvelocity', 'day_of_week', 'hour', 'quarter', 'month', 'season', 'week_nr']
training data did not have the following fields: windvelocity
Traceback (most recent call last):
File "/root/dao/webserver/../prog/day_ahead.py", line 4709, in <module>
main()
~~~~^^
File "/root/dao/webserver/../prog/day_ahead.py", line 4680, in main
da_calc.run_task_function("calc_optimum_met_debug")
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/dao/prog/da_base.py", line 694, in run_task_function
getattr(self, run_task["function"])()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/root/dao/prog/da_base.py", line 538, in calc_optimum_met_debug
dacalc.calc_optimum()
~~~~~~~~~~~~~~~~~~~^^
File "/root/dao/prog/day_ahead.py", line 288, in calc_optimum
solar_prog = self.calc_solar_predictions(
self.solar[s], start_interval_dt, end, self.interval
)
File "/root/dao/prog/da_base.py", line 587, in calc_solar_predictions
solar_prog = solar_predictor.predict_solar_device(
solar_option, vanaf, tot
)
File "/root/dao/prog/solar_predictor.py", line 1024, in predict_solar_device
prediction = self.predict(weather_data)
File "/root/dao/prog/solar_predictor.py", line 702, in predict
prediction = self.model.predict(featured_df)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 751, in inner_f
return func(**kwargs)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/sklearn.py", line 1446, in predict
predts = self.get_booster().inplace_predict(
data=X,
...<4 lines>...
validate_features=validate_features,
)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 751, in inner_f
return func(**kwargs)
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 2854, in inplace_predict
self._validate_features(fns)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/root/dao/venv/day_ahead/lib/python3.13/site-packages/xgboost/core.py", line 3429, in _validate_features
raise ValueError(msg.format(self.feature_names, feature_names))
ValueError: feature_names mismatch: ['temperature', 'irradiance', 'day_of_week', 'hour', 'quarter', 'month', 'season', 'week_nr'] ['temperature', 'irradiance', 'windvelocity', 'day_of_week', 'hour', 'quarter', 'month', 'season', 'week_nr']
training data did not have the following fields: windvelocity |
/f/image/PvVrB3KWPoUED73auPR5Xz0A.png?f=fotoalbum_large)
:strip_exif()/f/image/YNDvE1FegabPEkdx4AKlUENR.jpg?f=fotoalbum_large)
/f/image/uYGALiffVvfG4WsqwHHl5ufY.png?f=fotoalbum_large)
/f/image/ZEbiEunWnFeNnqFlG6elhCYx.png?f=fotoalbum_large)
/f/image/f1L8LKtcCcyPGAmPyOXafpQf.png?f=fotoalbum_large)
:strip_exif()/f/image/7sD2pMcFj4OFkBK4AK4Ui1U4.jpg?f=fotoalbum_large)
/f/image/llaDkRaF1q1vSPVG3bqj6Buo.png?f=fotoalbum_large)
:strip_exif()/f/image/hM165vZvsKhiaQZKgjDN3dDS.png?f=user_large)
/f/image/DqTJIBN5N20FeOkb82DGeUrH.png?f=fotoalbum_large)
:strip_exif()/f/image/jOX9ffrweXuK5sYc6dDAjDJg.png?f=user_large)