Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shivam5992/linear-go
Simple linear regression in Go
https://github.com/shivam5992/linear-go
Last synced: 20 days ago
JSON representation
Simple linear regression in Go
- Host: GitHub
- URL: https://github.com/shivam5992/linear-go
- Owner: shivam5992
- Created: 2017-10-12T03:29:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-12T03:31:38.000Z (over 7 years ago)
- Last Synced: 2024-06-20T03:57:53.018Z (7 months ago)
- Language: Go
- Size: 2.22 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.MD
Awesome Lists containing this project
README
# Simple Linear Regression - Go
Simple Linear Regression implementation using Gradient Descent in Go
## Install
`go get github.com/shivam5992/linear-go`
## Usage
```
x := []float64{1,2,3}
y := []float64{1,3,3}
test := []float64{5,6}
pred := linear_regression(x, y, test)
```