ARNNResult._from_fit#

classmethod ARNNResult._from_fit(fit, model)[source]#

Assemble the public result from a raw fit and its specification.

Parameters:
  • fit (_NeuralAutoRegressionFit) – The raw estimator output.

  • model (_NeuralAutoRegressionModel[ARNNResult]) – The specification, read for the series, the order and the engine.

Return type:

ARNNResult

Returns:

The assembled result.

Example

>>> import numpy as np
>>> rng = np.random.default_rng(0)
>>> model = ARNN(rng.standard_normal(200), order=2)
>>> res = ARNNResult._from_fit(model._fit_family(), model)
>>> res.order, res.nobs, res.engine
(2, 198, 'NumpyMLPEngine')