MCPcopy Index your code
hub / github.com/MaxHalford/xgp

github.com/MaxHalford/xgp @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
503 symbols 1,310 edges 98 files 372 documented · 74%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

Initializer (Interface)
An Initializer generates a random Operator with random operands. [32 implementers]
init.go
Crossover (Interface)
A Crossover takes two Operators and combines them in order to produce two new Operators. [32 implementers]
crossover.go
Mutator (Interface)
A Mutator takes an Operator and returns a modified version of it. [32 implementers]
mutation.go
Metric (Interface)
A Metric metricuates the performance of a predictive model. yTrue, yPred, and weights should all have the same length. I [21 …
metrics/metric.go
Displayer (Interface)
A Displayer outputs a string representation of a Operator. [32 implementers]
op/display.go
Operator (Interface)
An Operator is a mathematical operator. It has operands that are themselves Operators. [15 implementers]
op/operator.go
LineSearcher (Interface)
A LineSearcher finds a good enough step size to a gradient descent problem. f is the function we want to minimize given [1 …
meta/line_search.go
DiffMetric (Interface)
A DiffMetric is a Metric that can compute element-wise gradients. [3 implementers]
metrics/metric.go

Core symbols most depended-on inside this repo

Run
called by 60
metrics/metric_test_case.go
Simplify
called by 45
op/operator.go
Arity
called by 24
op/operator.go
Eval
called by 23
op/operator.go
Apply
called by 21
init.go
Diff
called by 18
op/operator.go
Apply
called by 17
metrics/metric.go
Name
called by 17
op/operator.go

Shape

Method 311
Function 117
Struct 65
Interface 9
TypeAlias 1

Languages

Go100%
Python1%

Modules by API surface

op/operator.go24 symbols
metrics/recall.go24 symbols
metrics/precision.go24 symbols
metrics/f1.go24 symbols
gp.go15 symbols
meta/gradient_boosting.go11 symbols
op/operator_test.go10 symbols
op/mul.go10 symbols
op/inv.go10 symbols
op/add.go10 symbols
op/var.go9 symbols
op/sub.go9 symbols

For agents

$ claude mcp add xgp \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact