ncrf.NCRFFit¶
- class ncrf.NCRFFit(model, *, solver, solver_fit, scores, voxelwise_explained_variance, cv_results, execution_context)¶
Report produced by
NCRFEstimator.fit().Bundles the fitted
NCRFwith the training-set evaluation and the fitting provenance. Model-level predictive quantities live onmodel; solver-specific state lives onsolver_fit.- solver¶
Immutable solver configuration used for the fit.
- solver_fit¶
Solver-specific fitted state and iteration history (for ChampLasso,
solver_fit.history).
- scores¶
Scores of the fitted model on the training data, keyed by name. All of them are computed in whitened sensor space and merge two sources:
The solver-independent model metrics from
NCRF.evaluate(),explained_varianceandl2_error, which compare the model’s predictions with the observed sensor data.Solver-specific scores from the
scoremethod of the solver’s fit class, typically the solver’s own objective, which can depend on fitted state beyond the TRF. ForChampLassothese arecross_fitandweighted_l2_error;ChampLassoFit.score()defines them.
Because they are computed on the data the model was fitted to, these scores describe the goodness of fit rather than predictive performance. The same scores computed on held-out data are in
CVResult, andNCRF.evaluate()scores the model metrics on an arbitrary dataset.
- voxelwise_explained_variance¶
Source-wise contributions to explained variance on the training data (
Noneunless requested at fit time).
- execution_context¶
When, how long and in which environment the model was fitted (see
NCRFExecutionContext).
Notes
Cross-validation scores are retained when the solver’s search cross-validates, and are summarized by
cv_info(). The configuration the search settled on issolveritself (for ChampLasso,solver.mu).
Methods
|
Summarize stored cross-validation scores in a table. |