FitC

scalation.modeling.classifying.FitC
See theFitC companion trait
object FitC

The FitC companion object records the indices and labels for the base Quality of Fit (QoF) metrics/measures for the classification techniques.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
FitC.type

Members list

Value members

Concrete methods

def fitLabel_v: Seq[String]

Return the labels for the Vector Quality of Fit (QoF) micro-measures.

Return the labels for the Vector Quality of Fit (QoF) micro-measures.

Attributes

def help: String

Return the help string that describes the Quality of Fit (QoF) measures provided by the FitC trait. The QoF measures are divided into four groups: general, ordinary, micro (per class) vectors and means of the micro vectors. Ordinary are values of the last element in the micro vectors and can be interpreted as, say the precision for the last class value/label, e.g., y = hasCancer in {no, yes}, is the precision of the yes prediction and is most meaningful when the number of class values/labels (k) is 2.

Return the help string that describes the Quality of Fit (QoF) measures provided by the FitC trait. The QoF measures are divided into four groups: general, ordinary, micro (per class) vectors and means of the micro vectors. Ordinary are values of the last element in the micro vectors and can be interpreted as, say the precision for the last class value/label, e.g., y = hasCancer in {no, yes}, is the precision of the yes prediction and is most meaningful when the number of class values/labels (k) is 2.

Attributes

See also

en.wikipedia.org/wiki/Precision_and_recall

en.wikipedia.org/wiki/Cohen%27s_kappa

def qofStatTable: Array[Statistic]

Create a table to store statistics for QoF measures, where each row corresponds to the statistics on a particular QoF measure, e.g., acc

Create a table to store statistics for QoF measures, where each row corresponds to the statistics on a particular QoF measure, e.g., acc

Attributes

def qofVector(fit: VectorD, cv_fit: Array[Statistic]): VectorD

Collect QoF results for a model and return them in a vector.

Collect QoF results for a model and return them in a vector.

Value parameters

cv_fit

the fit array of statistics for cross-validation (upon test sets)

fit

the fit vector with regard to the training set

Attributes

def test(fc: FitC, y_: VectorI, yp: VectorI, k: Int): Unit

Test and report the confusion matrix and associate QoF measures.

Test and report the confusion matrix and associate QoF measures.

Value parameters

fc

the FitC object

k

the number of class labels {0, 1, ... , k-1}

y_

the actual class values

yp

the predicted class values

Attributes

def test(fc: FitC, y_: VectorD, yp: VectorD): Unit

Test and report the confusion matrix and associate QoF measures.

Test and report the confusion matrix and associate QoF measures.

Value parameters

fc

the FitC object

y_

the actual class values

yp

the predicted class values // * @param k the number of class labels {0, 1, ... , k-1}

Attributes

Concrete fields

val MIN_FOLDS: Int
val index_f1_v: Int
val index_p_v: Int
val index_r_v: Int
val index_s_v: Int