| gareg-class | R Documentation |
S4 Class for Genetic Algorithm-Based Regression
S4 container for GA-based regression/changepoint tasks. Holds the GA backend fit and a normalized summary of the best solution.
callThe matched call that created the object.
NThe effective size of the x grid used for knot search (i.e., 'length(x_unique)'), typically the number of unique 'x'.
calllanguage. The original call.
methodcharacter. One of "varyknots", "fixknots", "subset".
Nnumeric. Length of 'x_unique' used by the GA (also 'sentinel-1').
objFuncfunctionOrNULL. Objective function used.
gaMethodcharacter. GA engine name ("cptga","cptgaisl","ga","gaisl").
gaFitBackend GA fit object (union of classes from GA and changepointGA).
ctrllistOrNULL. Control list used to run the GA (if stored by caller).
fixedknotsnumericOrNULL. Fixed number of interior knots ('m') for fixed-knots mode, or NULL.
minDistnumeric. Minimum distance between adjacent changepoints.
polydegreenumericOrNULL. Spline degree for default objectives.
typecharacter. One of 'c("ppolys", "ns", "bs")' indicating piecewise polynomials, natural cubic, or B-spline.
interceptlogical. Whether the spline basis included an intercept column.
subsetSpeclistOrNULL. Constraints for subset selection (unused for knots).
featureNamescharacter. Candidate feature names (subset tasks).
bestFitnessnumeric. Best fitness value found.
bestChromnumeric. Raw best chromosome returned by the backend (may include a sentinel equal to 'N+1' and optional padding).
bestnumbsolnumeric. Count of selected elements (e.g., 'm' for knots).
bestsolnumericOrChara. For knots: the 'm' interior indices (pre-sentinel); for subset: mask/indices/names.
[gareg_knots], [cptgaControl]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.