Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yamashou/elm
This is an implementation of the Extreme Learning Machine in Golang
https://github.com/yamashou/elm
go golang machine-learning
Last synced: about 1 month ago
JSON representation
This is an implementation of the Extreme Learning Machine in Golang
- Host: GitHub
- URL: https://github.com/yamashou/elm
- Owner: Yamashou
- Created: 2017-11-15T18:48:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-17T02:36:21.000Z (almost 7 years ago)
- Last Synced: 2023-03-06T02:22:31.195Z (almost 2 years ago)
- Topics: go, golang, machine-learning
- Language: Go
- Homepage:
- Size: 43 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Extreme Learning Machine in Golang
This is an implementation of the Extreme Learning Machine in Golang.For explanation of ELM please refer [here](http://www.ntu.edu.sg/home/egbhuang/)
# Example
This example does three classifications of iris.
Thist is most simple example.```go
package mainimport (
"fmt"elm "github.com/Yamashou/elm"
)func main() {
// Read iris datas
X := elm.Iris()
//Split training data and test data
trainingDataSet, testDataSet := elm.TrainTestSplit(X, 0.4, 4, 3)
e := elm.ELM{}
//Trainig
e.Fit(&trainingDataSet, 10)
// Evaluate the model
fmt.Println(e.Score(&testDataSet))
// Evaluation results on feature quantity
fmt.Println(e.GetResult([]float64{7.0, 3.2, 4.7, 1.4})) // -> 2
}
```