mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-05-03 22:17:14 +08:00
29 lines
535 B
Go
29 lines
535 B
Go
// Package base provides base interfaces for GoLearn objects to implement.
|
|
// It also provides a raw base for those objects.
|
|
|
|
package base
|
|
|
|
// An object that can ingest some data and train on it.
|
|
type Estimator interface {
|
|
Fit()
|
|
Summarise()
|
|
}
|
|
|
|
// An object that provides predictions.
|
|
type Predictor interface {
|
|
Predict()
|
|
}
|
|
|
|
// An supervised learning object, that is possible of scoring accuracy against a test set.
|
|
type Model interface {
|
|
Score()
|
|
}
|
|
|
|
// @todo;
|
|
type BaseClassifier struct {
|
|
}
|
|
|
|
// @todo;
|
|
type BaseRegressor struct {
|
|
}
|