Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MaxHalford/xgp
/ types & classes
Types & classes
75 in github.com/MaxHalford/xgp
⨍
Functions
428
◇
Types & classes
75
Struct
Abs
The Abs operator.
op/abs.go:9
Struct
AbsolutePearson
AbsolutePearson measures the ROC AUC score.
metrics/correlation.go:10
Struct
Accuracy
Accuracy measures the fraction of matches between true classes and predicted classes.
metrics/accuracy.go:5
Struct
Add
The Add operator.
op/add.go:10
Struct
CodeDisplay
CodeDisplay outputs an code-like representation of an Operator.
op/display.go:66
TypeAlias
ConfusionMatrix
A ConfusionMatrix stores true positives (TP), true negatives (TN), false positives (FP) and false negatives (FN).
metrics/confusion_matrix.go:12
Struct
Const
The Const operator always returns the same value.
op/const.go:10
Struct
Cos
The Cos operator.
op/cos.go:9
Interface
Crossover
A Crossover takes two Operators and combines them in order to produce two new Operators.
crossover.go:11
Interface
DiffMetric
A DiffMetric is a Metric that can compute element-wise gradients.
metrics/metric.go:15
Struct
DirDisplay
DirDisplay outputs a directory like representation of an Operator.
op/display.go:14
Interface
Displayer
A Displayer outputs a string representation of a Operator.
op/display.go:9
Struct
Div
The Div operator.
op/div.go:6
Struct
F1
F1 measures the F1-score.
metrics/f1.go:4
Struct
FullInit
FullInit can generate an Operator of height maxHeight.
init.go:20
Struct
GP
An GP links all the different components together and can be used to train Programs on a dataset. You shouldn't instantiate this struct directly; inst
gp.go:19
Struct
GPConfig
A GPConfig contains all the information needed to instantiate an GP.
gp_config.go:17
Struct
GoldenLineSearch
GoldenLineSearch implements Golden-section line-search.
meta/line_search.go:14
Struct
GradientBoosting
GradientBoosting implements gradient boosting on top of genetic programming.
meta/gradient_boosting.go:15
Struct
GraphvizDisplay
GraphvizDisplay outputs a Graphviz representation of an Operator. Each branch is indexed with a global counter and is labelled with the Operator's Nam
op/display.go:42
Struct
GrowInit
GrowInit can generate an Operator who's depth lies in [MinHeight, MaxHeight].
init.go:38
Struct
HoistMutation
HoistMutation replaces an Operator by of it's operands.
mutation.go:32
Struct
If
The If operator.
op/if.go:6
Interface
Initializer
An Initializer generates a random Operator with random operands.
init.go:10
Struct
Inv
The Inv operator.
op/inv.go:13
Interface
LineSearcher
A LineSearcher finds a good enough step size to a gradient descent problem. f is the function we want to minimize given a step size.
meta/line_search.go:9
Struct
LogLoss
LogLoss implementes logistic loss.
metrics/log_loss.go:8
Struct
MAE
MAE measures the mean absolute error (MAE).
metrics/mae.go:6
Struct
MSE
MSE measures the mean squared error (MSE).
metrics/mse.go:6
Struct
MacroF1
MacroF1 measures the global F1 score.
metrics/f1.go:85
Struct
MacroPrecision
MacroPrecision measures the unweighted average precision across all classes. This does not take class imbalance into account.
metrics/precision.go:88
Struct
MacroRecall
MacroRecall measures the unweighted average recall across all classes. This does not take class imbalance into account.
metrics/recall.go:88
Struct
Max
The Max operator.
op/max.go:6
Interface
Metric
A Metric metricuates the performance of a predictive model. yTrue, yPred, and weights should all have the same length. If weights is nil then uniform
metrics/metric.go:6
Struct
MicroF1
MicroF1 measures the global F1 score.
metrics/f1.go:48
Struct
MicroPrecision
MicroPrecision measures the global precision by using the total true positives and false positives.
metrics/precision.go:47
Struct
MicroRecall
MicroRecall measures the global recall by using the total true positives and false negatives.
metrics/recall.go:47
Struct
Min
The Min operator.
op/min.go:6
Struct
Mul
The Mul operator.
op/mul.go:10
Interface
Mutator
A Mutator takes an Operator and returns a modified version of it.
mutation.go:10
Struct
Neg
The Neg operator.
op/neg.go:6
Struct
Negative
A Negative returns the negative output of a given Metric.
metrics/negative.go:6
Interface
Operator
An Operator is a mathematical operator. It has operands that are themselves Operators.
op/operator.go:12
Struct
PointMutation
PointMutation randomly replaces Operators.
mutation.go:15
Struct
Precision
Precision measures the fraction of times a class was correctly predicted.
metrics/precision.go:4
Struct
Program
A Program is a thin layer on top of an Operator.
program.go:13
Struct
R2
R2 measures the coefficient of determination.
metrics/r2.go:6
Struct
RMSE
RMSE measures the root mean squared error (RMSE).
metrics/rmse.go:6
Struct
ROCAUC
ROCAUC measures the ROC AUC score.
metrics/roc_auc.go:11
Struct
RampedHaldAndHalfInit
RampedHaldAndHalfInit randomly uses GrowInit and FullInit. If it uses FullInit then it uses a random height.
init.go:61
Struct
Recall
Recall measures the fraction of times a true class was predicted.
metrics/recall.go:4
Struct
SerialOp
op/serial.go:45
Struct
Sin
The Sin operator.
op/sin.go:9
Struct
Square
The Square operator.
op/square.go:9
Struct
Sub
The Sub operator.
op/sub.go:10
Struct
SubtreeCrossover
SubtreeCrossover applies subtree crossover to two Operators.
crossover.go:16
Struct
SubtreeMutation
SubtreeMutation selects a suboperator at random and replaces it with a new Operator.
mutation.go:47
Struct
Var
The Var operator.
op/var.go:6
Struct
WeightedF1
WeightedF1 measures the weighted average F1 score across all classes. This does take class imbalance into account.
metrics/f1.go:123
Struct
WeightedPrecision
WeightedPrecision measures the weighted average precision across all classes. This does take class imbalance into account.
metrics/precision.go:126
Struct
WeightedRecall
WeightedRecall measures the weighted average recall across all classes. This does take class imbalance into account.
metrics/recall.go:126
Struct
errClassNotFound
metrics/errors.go:14
Struct
errMismatchedLengths
metrics/errors.go:5
Struct
errUnknownFlavor
cmd/xgp/cmd/errors.go:5
Struct
errUnknownMetric
metrics/errors.go:22
Struct
fitCmd
cmd/xgp/cmd/fit.go:16
Struct
gaModel
Custom genetic algorithm model.
ga.go:74
Struct
metricTestCase
metrics/metric_test_case.go:9
Interface
model
cmd/xgp/cmd/model.go:3
Struct
predictCmd
cmd/xgp/cmd/predict.go:14
Struct
scoreCmd
cmd/xgp/cmd/score.go:10
Struct
serialGradientBoosting
meta/gradient_boosting.go:341
Struct
serialModel
cmd/xgp/cmd/model.go:7
Struct
serialProgram
program.go:68
Struct
toDOTCmd
cmd/xgp/cmd/todot.go:13