Documentation ¶
Overview ¶
Package change implements change detection in benchmark timeseries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultDetector = &Detector{
WindowSize: 20,
MinEffectSize: 3,
M: 15,
K: 3,
PercentThreshold: 4,
Context: 2,
}
DefaultDetector has sensible default parameter choices.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct { // Adaptive Kolmogorov-Zurbenko pass. M, K int // KZA parameters PercentThreshold float64 // threshold for KZA pass Context int // number of points to consider either side // Distribution comparison. WindowSize int // window to consider either side MinEffectSize float64 // Cohen's d threshold }
Detector is a change detector.
Uses a hybrid approach. A first pass Adaptive Kolmogorov-Zurbenko (KZA) filter is applied to identify structural breaks in the timeseries. This is effective at identifiying regions of interest, but imprecise at pinpointing the exact change point. For each candidates from the KZA pass, we inspect a few points around the candidate and compare distributions of a windows either size. The point with the largest effect size (Cohen's d) is taken as the change point.
type Type ¶
type Type int
Type of a change: improvement or regression.
Supported change types.
func TypeString ¶
TypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
Directories ¶
Path | Synopsis |
---|---|
Package changetest provides utilities for change detection testing.
|
Package changetest provides utilities for change detection testing. |