ncrf.SolverFit

class ncrf.SolverFit(theta)

Fitted state from one solver execution.

The generic fit contains the coefficient matrix consumed by NCRF. Concrete solvers can add optimizer-specific state, diagnostics, and scores without coupling those details to the predictive model.

Parameters:

theta (numpy._typing._array_like.NDArray[numpy.float64]) – Coefficients of the TRFs over the Gaussian basis atoms, shape (n_sources, n_coefficients) with one column per basis atom and stimulus channel (see TRFDesign.n_coefficients). This is not the response function itself: the covariates were projected onto the basis before fitting, so the TRF is recovered by multiplying the coefficients with the basis. Use ncrf.NCRF.h (or ncrf.NCRF.h_scaled for original stimulus units) to get the expanded response functions.

Methods

score(forward, data)

Solver-specific scores for data, keyed by name.

Attributes

theta