Runs when a model terminates.
Required Parameters
model — Helipad
The model object.
data — pandas.DataFrame
The final model data.
Agent-based modeling in Python
Runs when a model terminates.
model — Helipad
The model object.
data — pandas.DataFrame
The final model data.
charwick
Mar 26, 2020 at 18:12The
terminate
hook is a good place to do any post-model analysis, as the data will be finalized by that point. This example runs an OLS regression on two columns of model data.