linear_regression

package
v0.0.0-...-d4c82a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL