FeatureSelection

scalation.modeling.FeatureSelection

The FeatureSelection trait establishes a framework for feature selection, i.e., selecting the features (e.g., variable x_j, cross term x_j x_k, or functional form x_j^2) to include in the model.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def backwardElimAll(first: Int, cross: Boolean)(using qk: Int): (LinkedHashSet[Int], MatrixD)

Perform BACKWARD ELIMINATION to find the LEAST predictive features/variables to REMOVE from the full model, returning the features/variables left and the new Quality of Fit (QoF) measures/metrics for all steps.

Perform BACKWARD ELIMINATION to find the LEAST predictive features/variables to REMOVE from the full model, returning the features/variables left and the new Quality of Fit (QoF) measures/metrics for all steps.

Value parameters

cross

whether to include the cross-validation QoF measure

first

first variable to consider for elimination

qk

index of Quality of Fit (QoF) to use for comparing quality

Attributes

See also

Fit for index of QoF measures/metrics.

def forwardSelAll(cross: Boolean)(using qk: Int): (LinkedHashSet[Int], MatrixD)

Perform FORWARD SELECTION to find the MOST predictive features/variables to ADD into the model, returning the features/variables added and the new Quality of Fit (QoF) measures/metrics for all steps.

Perform FORWARD SELECTION to find the MOST predictive features/variables to ADD into the model, returning the features/variables added and the new Quality of Fit (QoF) measures/metrics for all steps.

Value parameters

cross

whether to include the cross-validation QoF measure

qk

index of Quality of Fit (QoF) to use for comparing quality

Attributes

See also

Fit for index of QoF measures/metrics.

def stepwiseSelAll(cross: Boolean, swap: Boolean)(using qk: Int): (LinkedHashSet[Int], MatrixD)

Perform STEPWISE SELECTION to find a GOOD COMBINATION of predictive features/variables to have in the model, returning the features/variables left and the new Quality of Fit (QoF) measures/metrics for all steps. At each step, it calls forward and backward and takes the best of the two actions. Stops when neither action yields improvement.

Perform STEPWISE SELECTION to find a GOOD COMBINATION of predictive features/variables to have in the model, returning the features/variables left and the new Quality of Fit (QoF) measures/metrics for all steps. At each step, it calls forward and backward and takes the best of the two actions. Stops when neither action yields improvement.

Value parameters

cross

whether to include the cross-validation QoF measure

qk

index of Quality of Fit (QoF) to use for comparing quality

swap

whether to allow a swap step (swap out a feature for a new feature in one step)

Attributes

See also

Fit for index of QoF measures/metrics.

Concrete methods

def selectFeatures(tech: SelectionTech, cross: Boolean)(using qk: Int): (LinkedHashSet[Int], MatrixD)

Perform feature selection to find the most predictive features/variables to have in the model, returning the features/variables added and the new Quality of Fit (QoF) measures/metrics for all steps.

Perform feature selection to find the most predictive features/variables to have in the model, returning the features/variables added and the new Quality of Fit (QoF) measures/metrics for all steps.

Value parameters

cross

whether to include the cross-validation QoF measure

qk

index of Quality of Fit (QoF) to use for comparing quality

tech

the feature selection technique to apply

Attributes

See also

Fit for index of QoF measures/metrics.