BestStep

scalation.modeling.BestStep
case class BestStep(col: Int = ..., qof: VectorD = ..., mod: Model_FS = ..., mod_cols: LinkedHashSet[Int] = ...)(using qk: Int)(bestq: Double = ...) extends Ordered[BestStep]

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

mod_cols

the columns selected for mod

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
trait Ordered[BestStep]
trait Comparable[BestStep]
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, mod_cols: LinkedHashSet[Int]): 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_cols

the columns selected for mod_j

mod_j

the model with j

qof_j

the QoF for mod_j

Attributes

def compare(that: BestStep): Int

Return the comparison result between this and that step.

Return the comparison result between this and that step.

Value parameters

that

the other candidate

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 <(that: BestStep): Boolean

Returns true if this is less than that

Returns true if this is less than that

Attributes

Inherited from:
Ordered
def <=(that: BestStep): Boolean

Returns true if this is less than or equal to that.

Returns true if this is less than or equal to that.

Attributes

Inherited from:
Ordered
def >(that: BestStep): Boolean

Returns true if this is greater than that.

Returns true if this is greater than that.

Attributes

Inherited from:
Ordered
def >=(that: BestStep): Boolean

Returns true if this is greater than or equal to that.

Returns true if this is greater than or equal to that.

Attributes

Inherited from:
Ordered
def compareTo(that: BestStep): Int

Result of comparing this with operand that.

Result of comparing this with operand that.

Attributes

Inherited from:
Ordered
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product