MCPcopy Index your code
hub / github.com/cdipaolo/goml

github.com/cdipaolo/goml @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
370 symbols 1,447 edges 34 files 260 documented · 70%
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

Model (Interface)
Model is an interface that can Train based on a 2D array of data (called x) and an array (y) of solution data. Model tra [8 …
base/model.go
Tokenizer (Interface)
Tokenizer accepts a sentence as input and breaks it down into a slice of tokens [1 implementers]
text/bayes.go
DistanceMeasure (FuncType)
DistanceMeasure is any function that maps two vectors of float64s to a float64. Used for vector distance calculations
base/distance.go
Ascendable (Interface)
Ascendable is an interface that can be used with batch gradient descent where the parameter vector theta is in one dimen [3 …
base/model.go
StochasticAscendable (Interface)
StochasticAscendable is an interface that can be used with stochastic gradient descent where the parameter vector theta [3 …
base/model.go
OnlineModel (Interface)
OnlineModel differs from Model because the learning can take place in a goroutine because the data is passed through a c [1 …
base/model.go
OnlineTextModel (Interface)
OnlineTextModel holds the interface for text classifiers. They have the refular learn & predict functions, but don't inc [1 …
base/model.go

Core symbols most depended-on inside this repo

Len
called by 67
text/tfidf.go
Predict
called by 36
cluster/kmeans.go
Predict
called by 36
cluster/triangle_kmeans.go
NormalizePoint
called by 32
base/munge.go
NewLogistic
called by 30
linear/logistic.go
NewLeastSquares
called by 25
linear/linear.go
NewSoftmax
called by 24
linear/softmax.go
Learn
called by 24
linear/logistic.go

Shape

Function 198
Method 141
Struct 21
Interface 6
TypeAlias 3
FuncType 1

Languages

Go100%

Modules by API surface

base/model.go30 symbols
linear/logistic_test.go25 symbols
text/bayes.go23 symbols
linear/linear_test.go21 symbols
linear/softmax_test.go20 symbols
cluster/kmeans.go18 symbols
linear/softmax.go17 symbols
linear/linear.go17 symbols
linear/logistic.go16 symbols
cluster/triangle_kmeans.go16 symbols
linear/local_linear.go13 symbols
perceptron/kernel_perceptron_test.go12 symbols

For agents

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

⬇ download graph artifact