https://github.com/colcarroll/golearn
Experiments in machine learning with Go
https://github.com/colcarroll/golearn
Last synced: 10 months ago
JSON representation
Experiments in machine learning with Go
- Host: GitHub
- URL: https://github.com/colcarroll/golearn
- Owner: ColCarroll
- Created: 2016-01-14T01:10:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-14T01:18:55.000Z (over 10 years ago)
- Last Synced: 2025-06-20T18:45:50.995Z (about 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# golearn
Experiments in machine learning with Go
Run
```
go run main.go
```
to see it in action. It will generate a 1000x5 matrix `A` using a uniform random distribution,
a 5x1 matrix `x` using a random normal distribution, and a matrix `y = Ax + e`, where `e` is
a 1000x1 error matrix (normally distributed with std. deviation = 0.1. The library then solves
the equation Ax=y for x using the
[Moore-Penrose pseudoinverse](https://en.wikipedia.org/wiki/Moore%E2%80%93Penrose_pseudoinverse).
It does ok! It is pretty quick!
## golearn/num
Contains a matrix struct that knows how to do *some* linear algebra
## golearn/linear
Implements linear regression.