BankFit#
- class pypillometry.signal.gaussmarkov.BankFit(bank, theta, loglik, n_obs, n_segments=1, prior=None, hessian=None, success=True, message='', nfev=0)[source]#
Bases:
objectResult of
fit_bank().- Attributes:
- bankTimescaleBank
- thetanp.ndarray
estimate of the parameter vector (the mode of the posterior, or the maximum of the likelihood without a prior)
- loglikfloat
restricted log-likelihood at theta (without the prior)
- n_obsint
number of valid observations
- n_segmentsint
number of segments (each with a mean per channel)
- priorGaussianPrior or None
- hessiannp.ndarray or None
Hessian of the negative log-likelihood at theta (without the prior)
- successbool
whether the optimiser converged
- messagestr
message of the optimiser
Details
- property aic: float#
Akaike information criterion,
-2 loglik + 2 k(lower is better), with the restricted log-likelihood at the estimate and the number of fitted parameters k. With an informative prior the effective number of parameters is smaller than k.
- property bic: float#
Bayesian information criterion,
-2 loglik + k log(n)(lower is better); n is the number of valid observations minus the number of estimated means.
- property cov: ndarray | None#
Approximate covariance of the estimate (Laplace approximation),
(H + prior precision)^-1with the negative eigenvalues of the Hessian H set to 0, so that it is never larger than the prior. None without a Hessian, or if the matrix is singular (parameters that the data do not determine, without a prior).
- property params: dict[str, float]#
parameters on their natural scale (see
TimescaleBank.params())