MCPcopy Create free account

hub / github.com/MaxHalford/xgp / functions

Functions428 in github.com/MaxHalford/xgp

↓ 60 callersMethodRun
(t *testing.T)
metrics/metric_test_case.go:22
↓ 45 callersMethodSimplify
()
op/operator.go:17
↓ 24 callersMethodArity
()
op/operator.go:14
↓ 23 callersMethodEval
(X [][]float64)
op/operator.go:13
↓ 21 callersMethodApply
( minHeight uint, maxHeight uint, newOp func(leaf bool, rng *rand.Rand) op.Operator, rng *rand.Rand,
init.go:11
↓ 18 callersMethodDiff
(i uint)
op/operator.go:18
↓ 17 callersMethodApply
(yTrue, yPred, weights []float64)
metrics/metric.go:7
↓ 17 callersMethodName
()
op/operator.go:19
↓ 17 callersMethodString
()
op/operator.go:20
↓ 15 callersFunctionMakeConfusionMatrix
MakeConfusionMatrix returns a ConfusionMatrix from a slice of true classes and another slice of predicted classes.
metrics/confusion_matrix.go:132
↓ 13 callersMethodClasses
Classes returns a slice of classes included in a ConfusionMatrix. The result is ordered in ascending order.
metrics/confusion_matrix.go:21
↓ 12 callersMethodOperand
(i uint)
op/operator.go:15
↓ 11 callersFunctionparenthesize
(op Operator)
op/display.go:90
↓ 10 callersFunctionwalk
walk performs tree traversal on an Operator and applies a given function to each suboperator. The given function specifies if the traversal should sto
op/operator.go:26
↓ 9 callersMethodTruePositives
TruePositives returns the number of times a class was correctly predicted.
metrics/confusion_matrix.go:35
↓ 8 callersMethodPredict
(X [][]float64, proba bool)
cmd/xgp/cmd/model.go:4
↓ 8 callersMethodSetOperand
(i uint, op Operator)
op/operator.go:16
↓ 8 callersMethodString
()
metrics/metric.go:11
↓ 7 callersMethodBestProgram
BestProgram returns the GP's best obtained Program.
gp.go:48
↓ 7 callersMethodClassification
()
metrics/metric.go:8
↓ 7 callersMethodNeedsProbabilities
()
metrics/metric.go:10
↓ 7 callersFunctionnewRand
newRand returns a new random number generator with a random seed.
util.go:11
↓ 6 callersMethodFalseNegatives
FalseNegatives returns the number of times a class was wrongly not predicted.
metrics/confusion_matrix.go:61
↓ 5 callersFunctionCount
Count returns the number of Operators that match a condition.
op/operator.go:63
↓ 5 callersMethodFalsePositives
FalsePositives returns the number of times a class was wrongly predicted.
metrics/confusion_matrix.go:45
↓ 5 callersMethodNewGP
NewGP returns an GP from a GPConfig.
gp_config.go:82
↓ 4 callersMethodFit
Fit an GP to a dataset.
gp.go:108
↓ 4 callersMethodMutate
Mutate is required to implement eaopt.Genome.
ga.go:36
↓ 4 callersFunctiondataFrameToFloat64
dataFrameToFloat64 converts a dataframe.DataFrame to a slice of float64 slices.
cmd/xgp/cmd/util.go:29
↓ 4 callersFunctionfmtScore
(score float64)
metrics/metric_test_case.go:18
↓ 4 callersFunctionreadFile
readFile loads a file with the appropriate method based on the file's extension.
cmd/xgp/cmd/io.go:23
↓ 4 callersFunctionsafeDiv
(a, b float64)
op/inv.go:5
↓ 3 callersMethodApply
(Operator)
op/display.go:10
↓ 3 callersMethodEvaluate
Evaluate is required to implement eaopt.Genome.
ga.go:12
↓ 3 callersFunctionNewDefaultGPConfig
NewDefaultGPConfig returns a GPConfig with default values.
gp_config.go:195
↓ 3 callersFunctionexpit
Logistic function.
meta/gradient_boosting.go:70
↓ 3 callersFunctionreadModel
(path string)
cmd/xgp/cmd/io.go:79
↓ 3 callersFunctionremoveString
removeString is a pure function to remove a slice from a slice.
cmd/xgp/cmd/util.go:6
↓ 2 callersMethodBiggerIsBetter
()
metrics/metric.go:9
↓ 2 callersFunctionCountOps
CountOps returns the number of Operators in an Operator.
op/operator.go:75
↓ 2 callersMethodGradients
(yTrue, yPred []float64)
metrics/metric.go:17
↓ 2 callersMethodNClasses
NClasses returns the number of classes in a ConfusionMatrix.
metrics/confusion_matrix.go:15
↓ 2 callersFunctionParseFunc
ParseFunc parses a name and returns the corresponding Operator.
op/serial.go:10
↓ 2 callersMethodPredict
Predict predicts the output of a slice of features.
program.go:35
↓ 2 callersFunctionSelect
Select returns the nth Operator in an Operator.
op/operator.go:111
↓ 2 callersMethodSolve
(f func(x float64) float64)
meta/line_search.go:10
↓ 2 callersFunctionclip
(f, min, max float64)
metrics/util.go:51
↓ 2 callersFunctioncontainsString
containsString checks if a string is in a slice.
cmd/xgp/cmd/util.go:18
↓ 2 callersFunctioncountDistinct
countDistinct returns the number of unique elements in a slice of float64s.
util.go:34
↓ 2 callersFunctionfmtDuration
fmtDuration the "hours:minutes:seconds" representation of a time.Duration.
util.go:45
↓ 2 callersFunctionfmtDuration
fmtDuration the "hours:minutes:seconds" representation of a time.Duration.
meta/util.go:18
↓ 2 callersFunctionmunge
(data)
cmd/xgp/examples/titanic/create_datasets.py:7
↓ 2 callersMethodnewOperator
(rng *rand.Rand)
gp.go:228
↓ 2 callersMethodnewVar
(rng *rand.Rand)
gp.go:212
↓ 2 callersFunctionpolishProgram
(prog Program, rng *rand.Rand)
polish.go:12
↓ 2 callersMethodprogress
(start time.Time)
gp.go:55
↓ 2 callersFunctionrandomInts
Sample k unique integers in range [min, max) using reservoir sampling, specifically Vitter's Algorithm R.
meta/util.go:30
↓ 2 callersFunctionselectCols
(X [][]float64, cols []int)
meta/util.go:44
↓ 2 callersMethodshouldMonitor
(round uint)
meta/gradient_boosting.go:88
↓ 2 callersFunctionsign
(y []float64)
meta/gradient_boosting.go:78
↓ 2 callersMethodsimplify
The Add operator is symmetric so we have to check u+v as well as v+u.
op/add.go:49
↓ 2 callersMethodsimplify
The Mul operator is symmetric so we have to check u*v as well as v*u.
op/mul.go:49
↓ 1 callersFunctionCalcHeight
CalcHeight returns the height of an Operator. The height of an Operator is the height of it's root node. The height of a node is the number of edges o
op/operator.go:51
↓ 1 callersMethodCrossover
Crossover is required to implement eaopt.Genome.
ga.go:59
↓ 1 callersMethodError
()
cmd/xgp/cmd/errors.go:9
↓ 1 callersMethodFit
Fit iteratively trains a GP on the gradient of the loss.
meta/gradient_boosting.go:116
↓ 1 callersFunctionGetConsts
GetConsts returns the Consts contained in an Operator. Pre-order traversal is used.
op/operator.go:191
↓ 1 callersMethodMarshalJSON
MarshalJSON serializes a Program.
program.go:74
↓ 1 callersMethodName
Name of Const is it's value.
op/const.go:47
↓ 1 callersMethodName
Name of Var is "xi" where i is the Var's Index.
op/var.go:47
↓ 1 callersMethodPredict
Predict accumulates the predictions of each stored Program.
meta/gradient_boosting.go:309
↓ 1 callersMethodPredictPartial
PredictPartial is a convenience function on top of Predict to make predictions on a single instance.
gp.go:198
↓ 1 callersFunctionReplace
Replace replaces an Operator if a given condition is met.
op/operator.go:153
↓ 1 callersFunctionReplaceAt
ReplaceAt replaces op's suboperator at position pos.
op/operator.go:178
↓ 1 callersFunctionSample
Sample returns a random suboperator.
op/operator.go:127
↓ 1 callersFunctionSetConsts
SetConsts sets the value of each Const. Pre-order traversal is used.
op/operator.go:206
↓ 1 callersMethodTrueNegatives
TrueNegatives returns the number of times a class was correctly not predicted.
metrics/confusion_matrix.go:78
↓ 1 callersMethodUnmarshalJSON
UnmarshalJSON parses a Program.
program.go:82
↓ 1 callersMethodValidate
Validate is necessary to implement eaopt.Model.
ga.go:112
↓ 1 callersMethodbestRound
bestRound returns the number of the round where the validation score is the lowest. If there are no validation scores then the number of the round wit
meta/gradient_boosting.go:95
↓ 1 callersMethodclassification
Classification determines if the Program has to perform classification or not. It does so by looking at the GP's LossMetric.
program.go:25
↓ 1 callersFunctionmean
mean computes the mean of a float64 slice.
meta/util.go:10
↓ 1 callersMethodmutateOperator
(operator op.Operator, rng *rand.Rand)
gp.go:252
↓ 1 callersMethodnewConst
(rng *rand.Rand)
gp.go:206
↓ 1 callersFunctionnewFitCmd
()
cmd/xgp/cmd/fit.go:235
↓ 1 callersMethodnewFunction
(rng *rand.Rand)
gp.go:216
↓ 1 callersMethodnewFunctionOfArity
(arity uint, rng *rand.Rand)
gp.go:220
↓ 1 callersFunctionnewPredictCmd
()
cmd/xgp/cmd/predict.go:75
↓ 1 callersMethodnewProgram
(rng *rand.Rand)
gp.go:245
↓ 1 callersFunctionnewScoreCmd
()
cmd/xgp/cmd/score.go:60
↓ 1 callersFunctionnewToDOTCmd
()
cmd/xgp/cmd/todot.go:67
↓ 1 callersMethodpolishBest
polishBest takes the best Program and polishes it.
gp.go:88
↓ 1 callersFunctionrandInt
randInt returns a random int in [min, max].
util.go:16
↓ 1 callersFunctionreadCSV
readCSV loads a CSV file.
cmd/xgp/cmd/io.go:38
↓ 1 callersFunctionselectRows
(X [][]float64, rows []int)
meta/util.go:52
↓ 1 callersFunctionwriteGradientBoosting
(gb *meta.GradientBoosting, path string)
cmd/xgp/cmd/io.go:67
↓ 1 callersFunctionwriteProgram
(prog xgp.Program, path string)
cmd/xgp/cmd/io.go:55
MethodApply
Apply FullInit returns an Operator of height maxHeight, hence minHeight is not taken into account.
init.go:24
MethodApply
Apply GrowInit.
init.go:43
MethodApply
Apply RampedHaldAndHalfInit.
init.go:68
next →1–100 of 428, ranked by callers