Documentation ¶
Overview ¶
// LinearRegressionPlugin makes scaling decisions based on LinearRegression. // (NOTE this is not very effective and was use as a demo and should be replaced by a more robust machine learning algorithm)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinearRegressionPlugin ¶
type LinearRegressionPlugin struct { Name string QueueName string MinimumAmtOfData int // contains filtered or unexported fields }
func NewLinearRegressionPlugin ¶
func NewLinearRegressionPlugin(name, queueName string, threshold int) *LinearRegressionPlugin
Creates a new LinearRegressionPlugin
func (*LinearRegressionPlugin) Compute ¶
func (plugin *LinearRegressionPlugin) Compute(noOfPendingPods, noOfNodes, noOfSched float64) interfaces.ComputeResult
Compute processes the data and return a ComputeResult
Click to show internal directories.
Click to hide internal directories.