MCPcopy Create free account

hub / github.com/MaxHalford/xgp / functions

Functions428 in github.com/MaxHalford/xgp

MethodDiff
Diff computes the following derivative: (u - v)' = u' - v'
op/sub.go:86
MethodDiff
Diff computes the following derivative: (u + v)' = u' + v'
op/add.go:89
MethodDiff
Diff computes the following derivative: x' = 1. However if i not equal to the Var's Index then a 0 Const is returned.
op/var.go:39
MethodDiff
Diff computes the following derivative: (uv)' = u'v + uv'
op/mul.go:95
MethodDiff
Diff compute the following derivative: (1 / u)' = -u' / u².
op/inv.go:62
MethodDiff
Diff compute the following derivative: (1 / u)' = -u' / u².
op/if.go:73
MethodDiff
Diff compute the following derivative: |u|' = uu' / |u|.
op/abs.go:61
MethodDiff
Diff computes the following derivative: (u / v)' = (u'v - uv') / v²
op/div.go:100
MethodError
()
metrics/errors.go:10
MethodError
()
metrics/errors.go:18
MethodError
()
metrics/errors.go:26
MethodEval
Eval computes the opposite of each value.
op/neg.go:11
MethodEval
Eval computes the square of each value.
op/square.go:14
MethodEval
Eval computes the cosine of each value.
op/cos.go:14
MethodEval
Eval computes the sine of each value.
op/sin.go:14
MethodEval
Eval takes the minimum along aligned values.
op/min.go:11
MethodEval
Eval returns the same value.
op/const.go:15
MethodEval
Eval takes the maximum along aligned values.
op/max.go:11
MethodEval
Eval computes the difference between Left and Right.
op/sub.go:15
MethodEval
Eval sums aligned values.
op/add.go:15
MethodEval
Eval returns the ith column of a matrix.
op/var.go:11
MethodEval
Eval multiplies aligned values.
op/mul.go:15
MethodEval
Eval computes the inverse of each value.
op/inv.go:18
MethodEval
Eval computes
op/if.go:13
MethodEval
Eval computes the absolute value of each value.
op/abs.go:14
MethodEval
Eval divides aligned values.
op/div.go:11
FunctionExampleCodeDisplay
()
op/display_test.go:36
FunctionExampleDiff
From https://stats.stackexchange.com/questions/224140/step-by-step-example-of-reverse-mode-automatic-differentiation.
op/examples_test.go:6
FunctionExampleDirDisplay
()
op/display_test.go:5
FunctionExampleGPConfig
()
gp_config_test.go:9
FunctionExampleGraphvizDisplay
()
op/display_test.go:18
FunctionExecute
Execute RootCmd and catch error.
cmd/xgp/cmd/root.go:25
FunctionGetVars
GetVars returns the Vars contained in an Operator. Pre-order traversal is used.
op/operator.go:231
MethodGradients
Gradients computes sign(yPred[i] - yTrue[i]).
metrics/mae.go:53
MethodGradients
Gradients computes 2 * (yPred[i] - yTrue[i]).
metrics/mse.go:54
MethodGradients
Gradients computes yPred[i] - yTrue[i].
metrics/log_loss.go:59
MethodMarshalJSON
MarshalJSON serializes a GradientBoosting.
meta/gradient_boosting.go:357
MethodName
Name of Neg is "neg".
op/neg.go:58
MethodName
Name of Square is "square".
op/square.go:61
MethodName
Name of Cos is "cos".
op/cos.go:59
MethodName
Name of Sin is "sin".
op/sin.go:59
MethodName
Name of Min is "min".
op/min.go:79
MethodName
Name of Max is "max".
op/max.go:79
MethodName
Name of Sub is "sub".
op/sub.go:91
MethodName
Name of Add is "add".
op/add.go:94
MethodName
Name of Mul is "mul".
op/mul.go:100
MethodName
Name of Inv is "inv".
op/inv.go:67
MethodName
Name of If is "if".
op/if.go:78
MethodName
Name of Abs is "abs".
op/abs.go:66
MethodName
Name of Div is "div".
op/div.go:110
MethodNeedsProbabilities
NeedsProbabilities method of MAE.
metrics/mae.go:43
MethodNeedsProbabilities
NeedsProbabilities method of Accuracy.
metrics/accuracy.go:47
MethodNeedsProbabilities
NeedsProbabilities method of R2.
metrics/r2.go:62
MethodNeedsProbabilities
NeedsProbabilities method of Precision.
metrics/precision.go:36
MethodNeedsProbabilities
NeedsProbabilities method of MicroPrecision.
metrics/precision.go:77
MethodNeedsProbabilities
NeedsProbabilities method of MacroPrecision.
metrics/precision.go:115
MethodNeedsProbabilities
NeedsProbabilities method of WeightedPrecision.
metrics/precision.go:161
MethodNeedsProbabilities
NeedsProbabilities method of RMSE.
metrics/rmse.go:28
MethodNeedsProbabilities
NeedsProbabilities method of MSE.
metrics/mse.go:44
MethodNeedsProbabilities
NeedsProbabilities method of Negative.
metrics/negative.go:30
MethodNeedsProbabilities
NeedsProbabilities method of ROCAUC.
metrics/roc_auc.go:66
MethodNeedsProbabilities
NeedsProbabilities method of Recall.
metrics/recall.go:36
MethodNeedsProbabilities
NeedsProbabilities method of MicroRecall.
metrics/recall.go:77
MethodNeedsProbabilities
NeedsProbabilities method of MacroRecall.
metrics/recall.go:115
MethodNeedsProbabilities
NeedsProbabilities method of WeightedRecall.
metrics/recall.go:161
MethodNeedsProbabilities
NeedsProbabilities method of AbsolutePearson.
metrics/correlation.go:37
MethodNeedsProbabilities
NeedsProbabilities method of F1.
metrics/f1.go:38
MethodNeedsProbabilities
NeedsProbabilities method of MicroF1.
metrics/f1.go:75
MethodNeedsProbabilities
NeedsProbabilities method of MacroF1.
metrics/f1.go:112
MethodNeedsProbabilities
NeedsProbabilities method of WeightedF1.
metrics/f1.go:158
MethodNeedsProbabilities
NeedsProbabilities method of LogLoss.
metrics/log_loss.go:49
FunctionNewGradientBoosting
NewGradientBoosting returns a GradientBoosting.
meta/gradient_boosting.go:36
MethodOperand
Operand returns Neg's operand or nil.
op/neg.go:25
MethodOperand
Operand returns Square's operand or nil.
op/square.go:28
MethodOperand
Operand returns Cos's operand or nil.
op/cos.go:28
MethodOperand
Operand returns Sin's operand or nil.
op/sin.go:28
MethodOperand
Operand returns one of Min's operands, or nil.
op/min.go:28
MethodOperand
Operand returns nil.
op/const.go:27
MethodOperand
Operand returns one of Max's operands, or nil.
op/max.go:28
MethodOperand
Operand returns one of Sub's operands, or nil.
op/sub.go:27
MethodOperand
Operand returns one of Add's operands, or nil.
op/add.go:27
MethodOperand
Operand returns nil.
op/var.go:23
MethodOperand
Operand returns one of Mul's operands, or nil.
op/mul.go:27
MethodOperand
Operand returns Inv's operand or nil.
op/inv.go:32
MethodOperand
Operand returns If's operand or nil.
op/if.go:32
MethodOperand
Operand returns Abs's operand or nil.
op/abs.go:28
MethodOperand
Operand returns one of Div's operands, or nil.
op/div.go:26
FunctionParseFuncs
ParseFuncs parses a string into a slice of Operators.
op/serial.go:33
FunctionParseMetric
ParseMetric returns a Metric from it's String representation.
metrics/util.go:6
FunctionParseOp
(serial SerialOp)
op/serial.go:73
MethodPredict
Predict makes predictions with the best obtained Program as so far.
gp.go:188
MethodPredictPartial
PredictPartial is a convenience function on top of Predict to make predictions on a single instance.
program.go:56
FunctionSerializeOp
(op Operator)
op/serial.go:51
MethodSetOperand
SetOperand replaces Neg's operand if i is equal to 0.
op/neg.go:33
MethodSetOperand
SetOperand replaces Square's operand if i is equal to 0.
op/square.go:36
MethodSetOperand
SetOperand replaces Cos's operand if i is equal to 0.
op/cos.go:36
MethodSetOperand
SetOperand replaces Sin's operand if i is equal to 0.
op/sin.go:36
MethodSetOperand
SetOperand replaces one of Min's operands if i is equal to 0 or 1.
op/min.go:40
MethodSetOperand
SetOperand returns the Const without any modifications.
op/const.go:32
MethodSetOperand
SetOperand replaces one of Max's operands if i is equal to 0 or 1.
op/max.go:40
← previousnext →201–300 of 428, ranked by callers