pyeeg.models.TRFEstimator.copy
- TRFEstimator.copy()
Return a copy of the estimator.
All constructor parameters are preserved so that refitting the returned instance reproduces the original model configuration (same solver, loss, robust settings, intercept, regularization, caching, etc.). The
solverinstance, when present, is shared by reference rather than deep-copied; this is safe because thepyeeg.solvers.Solvercontract is stateless acrosssolve()calls. Fitted attributes (coef_,intercept_, lag/feature/channel metadata, and statistics) are carried over so the copy is immediately usable like the original.- Returns:
trf – New fitted instance with the same coefficients, intercept, feature names and lag configuration as
self.- Return type: