golearn

github.com/sjwhitworth/golearn Developer Tools Open-source projectOpen source

For Go developers, GoLearn provides a collection of tools for machine learning.

github.com/sjwhitworth/golearn
golearn homepage screenshot

About golearn

GoLearn is an open-source machine learning library for Go, described by its maintainers as 'batteries included' and aiming for simplicity alongside customisability. Data is loaded into Instances objects that support matrix-like operations and can be passed to estimators. The library implements a scikit-learn style Fit/Predict interface, so estimators can be swapped for trial and error, and it includes helper functions such as cross validation and train/test splitting.

The repository contains modules for clustering, ensembles, evaluation, filters, k-d trees, k-nearest neighbours, linear models, naive methods, neural networks, optimisation, PCA, perceptron, trees and utilities. Practical example programs are included, along with documentation in English, Simplified Chinese and Traditional Chinese. The project is licensed under the MIT license and is described as being in active development.

Key features

  • scikit-learn style Fit/Predict interface, letting estimators be swapped out
  • Loads CSV data into Instances objects supporting matrix-like operations
  • Helper functions for cross validation and train/test splitting
  • Modules covering clustering, ensembles, trees, neural networks and PCA
  • Runnable example programs for KNN, instances and tree classifiers
  • Released as a Go module under the MIT license
Best for: Go developers who want to build and experiment with machine learning models directly inside Go programs.
Good for
  • Open source under the MIT license
  • Estimator interface modeled on scikit-learn, making it easy to try different models
  • Ships with practical, runnable examples alongside the library code
Watch out for
  • Maintainers describe the project as in active development
  • No pricing or plan information is listed for this repository

golearn at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

golearn alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423

golearn FAQ

What license is GoLearn released under?
The repository is published under the MIT license.
How does GoLearn handle data and models?
Data is loaded as Instances, which support matrix-like operations and can be passed to estimators that follow a Fit/Predict interface.
Are there example programs to try?
Yes. The examples directory includes runnable programs such as knnclassifier_iris.go, instances.go and trees.go.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing