BestStep

scalation.modeling.BestStep
case class BestStep(col: Int, qof: VectorD, mod: Model_FS)(using qk: Int)(bestq: Double)

The BestStep is used to record the best improvement step found so far during feature selection. Note, best depends on whether maximizing or minimizing

Value parameters

bestq

the best QoF for metric qk so far

col

the column/variable to ADD/REMOVE for this step

mod

the model including selected features/variables for this step

qk

the index for the Quality of Fit (QoF) measure/metric used for comparison

qof

the Quality of Fit (QoF) for this step

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def better(cand: BestStep): BestStep

Return the better between this and candidate step.

Return the better between this and candidate step.

Value parameters

cand

the new candidate

Attributes

def better(j: Int, qof_j: VectorD, mod_j: Model_FS): BestStep

Return the better between this and the to be formed candidate step.

Return the better between this and the to be formed candidate step.

Value parameters

j

the index of the feature/variable

mod_j

the model with j

qof_j

the QoF for mod_j

Attributes

infix def ge(that_qof: Double): Boolean

Return whether this step is better than or equal to that step.

Return whether this step is better than or equal to that step.

Value parameters

that_qof

the QoF for that step

Attributes

infix def gt(that_qof: Double): Boolean

Return whether this step is better than that step.

Return whether this step is better than that step.

Value parameters

that_qof

the Qof for that step

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product