MCPcopy Create free account
hub / github.com/apache/burr / build_model

Function build_model

examples/simulation/application.py:43–48  ·  view source on GitHub ↗

This would fit the model on data before the simulation start date.

(state: State)

Source from the content-addressed store, hash-verified

41
42@action(reads=["data", "simulation_start"], writes=["model"])
43def 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(

Callers

nothing calls this directly

Calls 2

_fit_modelFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected