config

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0, BSD-2-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const TargetKindNode = "Node"

Variables

This section is empty.

Functions

This section is empty.

Types

type AlgorithmModelConfig

type AlgorithmModelConfig struct {
	UpdateInterval time.Duration
}

type Config

type Config struct {
	InitMode   *ModelInitMode
	DSP        *v1alpha1.DSP
	Percentile *v1alpha1.Percentile
}

type ModelInitMode added in v0.5.0

type ModelInitMode string
const (
	// means recover or init the algorithm model directly from history datasource, this process may block because it is time consuming for data fetching & model gen
	ModelInitModeHistory ModelInitMode = "history"
	// means recover or init the algorithm model from real time datasource async, predictor can not do predicting before the data is accumulating to window length
	// this is more safe to do some data accumulating and make the prediction data is robust.
	ModelInitModeLazyTraining ModelInitMode = "lazytraining"
	// means recover or init the model from a checkpoint, it can be restored directly and immediately to do predict.
	ModelInitModeCheckpoint ModelInitMode = "checkpoint"
)

Jump to

Keyboard shortcuts

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