predictions

package
v0.0.0-...-77f0b0c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPredictions

func AddPredictions(ctx context.Context, metricBuckets []*modelInputs.MetricBucket, settings modelInputs.PredictionSettings) error

Types

type PredictionDataFrame

type PredictionDataFrame struct {
	DS map[uint64]string  `json:"ds"`
	Y  map[uint64]float64 `json:"y"`
}

type PredictionInput

type PredictionInput struct {
	ChangepointPriorScale float64             `json:"changepoint_prior_scale"`
	IntervalWidth         float64             `json:"interval_width"`
	IntervalSeconds       int                 `json:"interval_seconds"`
	Input                 PredictionDataFrame `json:"input"`
}

type PredictionResult

type PredictionResult struct {
	DS        map[int]uint64  `json:"ds"`
	YHat      map[int]float64 `json:"yhat"`
	YHatLower map[int]float64 `json:"yhat_lower"`
	YHatUpper map[int]float64 `json:"yhat_upper"`
}

Jump to

Keyboard shortcuts

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