This would fit the model on data before the simulation start date.
(state: State)
| 41 | |
| 42 | @action(reads=["data", "simulation_start"], writes=["model"]) |
| 43 | def build_model(state: State) -> Tuple[dict, State]: |
| 44 | """This would fit the model on data before the simulation start date.""" |
| 45 | training_data = state["data"] |
| 46 | model = _fit_model(training_data, upto=state["simulation_start"]) |
| 47 | result = {"model": model} |
| 48 | return result, state.update(**result) |
| 49 | |
| 50 | |
| 51 | @action( |
nothing calls this directly
no test coverage detected