Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "Linear"
Type linear is the type of the linear predicter
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Predict ¶
type Predict struct{}
Predict provides logic for using Linear Regression to make a prediction
func (*Predict) GetIDsToRemove ¶
func (p *Predict) GetIDsToRemove(model *config.Model, evaluations []*stored.Evaluation) ([]int, error)
GetIDsToRemove provides the list of stored evaluation IDs to remove, if there are too many stored values it will remove the oldest ones
func (*Predict) GetPrediction ¶
func (p *Predict) GetPrediction(model *config.Model, evaluations []*stored.Evaluation) (int32, error)
GetPrediction uses a linear regression to predict what the replica count should be based on historical evaluations
Click to show internal directories.
Click to hide internal directories.