gareg-class: S4 Class Definition for 'gareg'

gareg-classR Documentation

S4 Class Definition for 'gareg'

Description

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.

Slots

call

The matched call that created the object.

N

The effective size of the x grid used for knot search (i.e., 'length(x_unique)'), typically the number of unique 'x'.

call

language. The original call.

method

character. One of "varyknots", "fixknots", "subset".

N

numeric. Length of 'x_unique' used by the GA (also 'sentinel-1').

objFunc

functionOrNULL. Objective function used.

gaMethod

character. GA engine name ("cptga","cptgaisl","ga","gaisl").

gaFit

Backend GA fit object (union of classes from GA and changepointGA).

ctrl

listOrNULL. Control list used to run the GA (if stored by caller).

fixedknots

numericOrNULL. Fixed number of interior knots ('m') for fixed-knots mode, or NULL.

minDist

numeric. Minimum distance between adjacent changepoints.

polydegree

numericOrNULL. Spline degree for default objectives.

type

character. One of 'c("ppolys", "ns", "bs")' indicating piecewise polynomials, natural cubic, or B-spline.

intercept

logical. Whether the spline basis included an intercept column.

subsetSpec

listOrNULL. Constraints for subset selection (unused for knots).

featureNames

character. Candidate feature names (subset tasks).

bestFitness

numeric. Best fitness value found.

bestChrom

numeric. Raw best chromosome returned by the backend (may include a sentinel equal to 'N+1' and optional padding).

bestnumbsol

numeric. Count of selected elements (e.g., 'm' for knots).

bestsol

numericOrChara. For knots: the 'm' interior indices (pre-sentinel); for subset: mask/indices/names.

See Also

[gareg_knots], [cptgaControl]


GAReg documentation built on March 29, 2026, 5:08 p.m.