Versions in this module Expand all Collapse all v0 v0.59.0 Jan 5, 2025 v0.58.1 Dec 7, 2024 v0.58.0 Oct 6, 2024 v0.57.0 Sep 3, 2024 v0.56.0 Aug 4, 2024 v0.55.2 Jul 21, 2024 v0.55.1 Jun 19, 2024 v0.55.0 May 4, 2024 v0.54.0 Apr 4, 2024 Changes in this version + func ComputeAccuracies(tp, fp, tn, fn []int64) (accuracies []float64) + func ComputeElapsedTimes(start, end []int64) (elaps []int64) + func ComputeFMeasures(precisions, recalls []float64) (fmeasures []float64) + type CM struct + func (cm *CM) ComputeNumeric(vs, actuals, predictions []int64) + func (cm *CM) ComputeStrings(valueSpace, targets, predictions []string) + func (cm *CM) FN() int + func (cm *CM) FNIndices() []int + func (cm *CM) FP() int + func (cm *CM) FPIndices() []int + func (cm *CM) GetColumnClassError() *tabula.Column + func (cm *CM) GetFalseRate() float64 + func (cm *CM) GetTrueRate() float64 + func (cm *CM) GroupIndexPredictions(sampleListID []int, actuals, predictions []int64) + func (cm *CM) GroupIndexPredictionsStrings(sampleListID []int, actuals, predictions []string) + func (cm *CM) String() (s string) + func (cm *CM) TN() int + func (cm *CM) TNIndices() []int + func (cm *CM) TP() int + func (cm *CM) TPIndices() []int + type Runtime struct + OOBStatsFile string + PerfFile string + RunOOB bool + StatFile string + func (rt *Runtime) AddOOBCM(cm *CM) + func (rt *Runtime) AddStat(stat *Stat) + func (rt *Runtime) CloseOOBStatsFile() (e error) + func (rt *Runtime) ComputeCM(sampleListID []int, vs, actuals, predicts []string) (cm *CM) + func (rt *Runtime) ComputeStatFromCM(stat *Stat, cm *CM) + func (rt *Runtime) ComputeStatTotal(stat *Stat) + func (rt *Runtime) Finalize() (e error) + func (rt *Runtime) Initialize() error + func (rt *Runtime) OOBStats() *Stats + func (rt *Runtime) OpenOOBStatsFile() error + func (rt *Runtime) Performance(samples tabula.ClasetInterface, predicts []string, probs []float64) (perfs Stats) + func (rt *Runtime) PrintOobStat(stat *Stat, cm *CM) + func (rt *Runtime) PrintStat(stat *Stat) + func (rt *Runtime) PrintStatTotal(st *Stat) + func (rt *Runtime) StatTotal() *Stat + func (rt *Runtime) WriteOOBStat(stat *Stat) error + func (rt *Runtime) WritePerformance() error + type Stat struct + AUC float64 + Accuracy float64 + ElapsedTime int64 + EndTime int64 + FMeasure float64 + FN int64 + FP int64 + FPRate float64 + ID int64 + OobError float64 + OobErrorMean float64 + Precision float64 + StartTime int64 + TN int64 + TNRate float64 + TP int64 + TPRate float64 + func (stat *Stat) End() + func (stat *Stat) Recall() float64 + func (stat *Stat) SetAUC(v float64) + func (stat *Stat) SetFPRate(fp, n int64) + func (stat *Stat) SetPrecisionFromRate(p, n int64) + func (stat *Stat) SetTPRate(tp, p int64) + func (stat *Stat) Start() + func (stat *Stat) Sum(other *Stat) + func (stat *Stat) ToRow() (row *tabula.Row) + func (stat *Stat) Write(file string) (e error) + type Stats []*Stat + func (stats *Stats) Accuracies() (accuracies []float64) + func (stats *Stats) Add(stat *Stat) + func (stats *Stats) EndTimes() (times []int64) + func (stats *Stats) FMeasures() (fmeasures []float64) + func (stats *Stats) FPRates() (fprates []float64) + func (stats *Stats) OobErrorMeans() (oobmeans []float64) + func (stats *Stats) Precisions() (precs []float64) + func (stats *Stats) Recalls() (recalls []float64) + func (stats *Stats) StartTimes() (times []int64) + func (stats *Stats) TNRates() (tnrates []float64) + func (stats *Stats) TPRates() (tprates []float64) + func (stats *Stats) Write(file string) (e error)