types

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModelOutputTypeConverter = []string{
		"AbsPower", "AbsModelWeight", "AbsComponentPower", "AbsComponentModelWeight", "DynPower", "DynModelWeight", "DynComponentPower", "DynComponentModelWeight",
	}
	ModelTypeConverter = []string{
		"Ratio", "LinearRegressor", "EstimatorSidecar",
	}
)
View Source
var (
	// Define energy source
	PlatformEnergySource  = "acpi"
	ComponentEnergySource = "rapl"
)

Functions

This section is empty.

Types

type ModelConfig

type ModelConfig struct {
	// model configuration
	ModelType       ModelType
	ModelOutputType ModelOutputType
	TrainerName     string
	EnergySource    string
	SelectFilter    string
	InitModelURL    string

	IsNodePowerModel bool

	// initial samples to start the model
	ContainerFeatureNames       []string
	NodeFeatureNames            []string
	SystemMetaDataFeatureNames  []string
	SystemMetaDataFeatureValues []string
}

type ModelOutputType

type ModelOutputType int
const (
	// Power Model Output types
	// Absolute Power Model (AbsPower): is the power model trained by measured power (including the idle power)
	// Dynamic Power Model (DynPower): is the power model trained by dynamic power (AbsPower - idle power)
	AbsPower ModelOutputType = iota + 1
	DynPower
	Unsupported
)

func (ModelOutputType) String

func (s ModelOutputType) String() string

type ModelType added in v0.5.4

type ModelType int
const (
	// Power Model types
	Ratio            ModelType = iota + 1 // estimation happens within kepler without using Model Server
	LinearRegressor                       // estimation happens within kepler, but pre-trained model parameters are downloaded externally
	EstimatorSidecar                      // estimation happens in the sidecar with a loaded pre-trained power model
)

func (ModelType) String added in v0.5.4

func (s ModelType) String() string

Jump to

Keyboard shortcuts

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