MCPcopy Index your code
hub / github.com/statsmodels/statsmodels / update

Method update

examples/python/statespace_custom_models.py:164–169  ·  view source on GitHub ↗
(self, params, **kwargs)

Source from the content-addressed store, hash-verified

162 return unconstrained
163
164 def update(self, params, **kwargs):
165 params = super(TVRegression, self).update(params, **kwargs)
166
167 self["obs_intercept", 0, 0] = params[0]
168 self["obs_cov", 0, 0] = params[1]
169 self["state_cov"] = np.diag(params[2:4])
170
171
172# ### And then estimate it with our custom model class

Callers 5

updateMethod · 0.45
updateMethod · 0.45
beanplotFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected