Skip to content

Commit

Permalink
add regressor interface
Browse files Browse the repository at this point in the history
  • Loading branch information
fengfengqi authored and xlvector committed Dec 30, 2013
1 parent 2133a10 commit a1331bd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions regressor.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package hector

type Regressor interface {

//Set training parameters from parameter map
Init(params map[string]string)

//Train model on a given dataset
Train(dataset * DataSet)

//Predict the output of an input sample
Predict(sample * Sample) float64

SaveModel(path string)
LoadModel(path string)
}

0 comments on commit a1331bd

Please sign in to comment.