Documentation ¶
Index ¶
- func MAPE(measurementDataSet map[int64]*MeasurementData, granularity int64) (float64, error)
- func NewMeasurementDataSet(metricSamples []*datahub_common.Sample, ...) map[int64]*MeasurementData
- func NewMeasurementDataSetV2(metricSamples []*datahub_common.Row, metricCols []string, ...) map[int64]*MeasurementData
- func RMSE(measurementDataSet map[int64]*MeasurementData, ...) (float64, error)
- type MeasurementData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MAPE ¶
func MAPE(measurementDataSet map[int64]*MeasurementData, granularity int64) (float64, error)
func NewMeasurementDataSet ¶
func NewMeasurementDataSet(metricSamples []*datahub_common.Sample, predictSamples []*datahub_predictions.Sample, granularity int64) map[int64]*MeasurementData
func NewMeasurementDataSetV2 ¶
func NewMeasurementDataSetV2(metricSamples []*datahub_common.Row, metricCols []string, predictSamples []*datahub_common.Row, predictCols []string, unit *config.Unit, granularity int64) map[int64]*MeasurementData
func RMSE ¶ added in v0.9.166
func RMSE(measurementDataSet map[int64]*MeasurementData, metricType datahub_common.MetricType, granularity int64) (float64, error)
Types ¶
type MeasurementData ¶
type MeasurementData struct {
// contains filtered or unexported fields
}
func (MeasurementData) GetMetricData ¶
func (mData MeasurementData) GetMetricData() float64
func (MeasurementData) GetPredictData ¶
func (mData MeasurementData) GetPredictData() float64
Click to show internal directories.
Click to hide internal directories.