46 instantiations of TimeSeriesPoint
Microsoft.ML.Samples (21)
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (9)
46
points.Add(new
TimeSeriesPoint
(200, 100, true, dic1));
52
points.Add(new
TimeSeriesPoint
(1000, 100, true, dic2));
58
points.Add(new
TimeSeriesPoint
(1200, 200, true, dic3));
64
points.Add(new
TimeSeriesPoint
(100, 100, false, dic4));
70
points.Add(new
TimeSeriesPoint
(200, 200, false, dic5));
76
points.Add(new
TimeSeriesPoint
(300, 300, false, dic6));
82
points.Add(new
TimeSeriesPoint
(1500, 500, true, dic7));
88
points.Add(new
TimeSeriesPoint
(300, 200, true, dic8));
94
points.Add(new
TimeSeriesPoint
(1200, 300, true, dic9));
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (12)
54
TimeSeriesPoints.Add(new
TimeSeriesPoint
(200, 100, true, dic1));
60
TimeSeriesPoints.Add(new
TimeSeriesPoint
(1000, 100, true, dic2));
66
TimeSeriesPoints.Add(new
TimeSeriesPoint
(1200, 200, true, dic3));
72
TimeSeriesPoints.Add(new
TimeSeriesPoint
(100, 100, false, dic4));
78
TimeSeriesPoints.Add(new
TimeSeriesPoint
(200, 200, false, dic5));
84
TimeSeriesPoints.Add(new
TimeSeriesPoint
(300, 300, false, dic6));
90
TimeSeriesPoints.Add(new
TimeSeriesPoint
(1800, 750, true, dic7));
96
TimeSeriesPoints.Add(new
TimeSeriesPoint
(1500, 450, true, dic8));
102
TimeSeriesPoints.Add(new
TimeSeriesPoint
(600, 550, false, dic9));
108
TimeSeriesPoints.Add(new
TimeSeriesPoint
(100, 100, false, dic10));
114
TimeSeriesPoints.Add(new
TimeSeriesPoint
(200, 250, false, dic11));
120
TimeSeriesPoints.Add(new
TimeSeriesPoint
(300, 350, false, dic12));
Microsoft.ML.TimeSeries (1)
RootCauseAnalyzer.cs (1)
409
TimeSeriesPoint p = new
TimeSeriesPoint
(dimension);
Microsoft.ML.TimeSeries.Tests (24)
TimeSeriesDirectApi.cs (24)
1091
points.Add(new
TimeSeriesPoint
(200, 100, true, dic1));
1097
points.Add(new
TimeSeriesPoint
(1000, 100, true, dic2));
1103
points.Add(new
TimeSeriesPoint
(1200, 200, true, dic3));
1109
points.Add(new
TimeSeriesPoint
(100, 100, false, dic4));
1115
points.Add(new
TimeSeriesPoint
(200, 200, false, dic5));
1121
points.Add(new
TimeSeriesPoint
(300, 300, false, dic6));
1127
points.Add(new
TimeSeriesPoint
(1800, 850, true, dic7));
1133
points.Add(new
TimeSeriesPoint
(500, 450, false, dic8));
1139
points.Add(new
TimeSeriesPoint
(1300, 400, true, dic9));
1145
points.Add(new
TimeSeriesPoint
(100, 100, false, dic10));
1151
points.Add(new
TimeSeriesPoint
(200, 250, false, dic11));
1157
points.Add(new
TimeSeriesPoint
(300, 350, false, dic12));
1235
points.Add(new
TimeSeriesPoint
(200, 100, true, dic1));
1241
points.Add(new
TimeSeriesPoint
(1000, 100, true, dic2));
1247
points.Add(new
TimeSeriesPoint
(1200, 200, true, dic3));
1253
points.Add(new
TimeSeriesPoint
(100, 100, false, dic4));
1259
points.Add(new
TimeSeriesPoint
(200, 200, false, dic5));
1265
points.Add(new
TimeSeriesPoint
(300, 300, false, dic6));
1271
points.Add(new
TimeSeriesPoint
(1800, 850, true, dic7));
1277
points.Add(new
TimeSeriesPoint
(500, 450, false, dic8));
1283
points.Add(new
TimeSeriesPoint
(1300, 400, true, dic9));
1289
points.Add(new
TimeSeriesPoint
(100, 100, false, dic10));
1295
points.Add(new
TimeSeriesPoint
(200, 250, false, dic11));
1301
points.Add(new
TimeSeriesPoint
(300, 350, false, dic12));
59 references to TimeSeriesPoint
Microsoft.ML.Samples (6)
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (3)
38
private static List<
TimeSeriesPoint
> GetPoints()
40
List<
TimeSeriesPoint
> points = new List<
TimeSeriesPoint
>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (3)
44
private static List<
TimeSeriesPoint
> GetTimeSeriesPoints()
46
List<
TimeSeriesPoint
> TimeSeriesPoints = new List<
TimeSeriesPoint
>();
Microsoft.ML.TimeSeries (47)
RootCauseAnalyzer.cs (43)
48
Tuple<PointTree, PointTree, Dictionary<Dictionary<string, object>,
TimeSeriesPoint
>> pointInfo = GetPointsInfo(src, dimensionInfo);
51
Dictionary<Dictionary<string, Object>,
TimeSeriesPoint
> dimPointMapping = pointInfo.Item3;
69
protected List<
TimeSeriesPoint
> GetTotalPointsForAnomalyTimestamp(RootCauseLocalizationInput src)
94
private Tuple<PointTree, PointTree, Dictionary<Dictionary<string, object>,
TimeSeriesPoint
>> GetPointsInfo(RootCauseLocalizationInput src, DimensionInfo dimensionInfo)
99
Dictionary<Dictionary<string, object>,
TimeSeriesPoint
> dimPointMapping = new Dictionary<Dictionary<string, object>,
TimeSeriesPoint
>(dc);
101
List<
TimeSeriesPoint
> totalPoints = GetTotalPointsForAnomalyTimestamp(src);
104
foreach (
TimeSeriesPoint
point in totalPoints)
125
return new Tuple<PointTree, PointTree, Dictionary<Dictionary<string, Object>,
TimeSeriesPoint
>>(pointTree, anomalyTree, dimPointMapping);
158
List<
TimeSeriesPoint
> children = null;
200
protected List<
TimeSeriesPoint
> GetTopAnomaly(List<
TimeSeriesPoint
> anomalyPoints,
TimeSeriesPoint
root, List<
TimeSeriesPoint
> totalPoints, string dimKey, bool isLeaveslevel = false)
222
List<
TimeSeriesPoint
> causeList = new List<
TimeSeriesPoint
>();
223
foreach (
TimeSeriesPoint
anomaly in anomalyPoints)
247
protected IEnumerable<BestDimension> SelectOrderedDimension(List<
TimeSeriesPoint
> totalPoints, List<
TimeSeriesPoint
> anomalyPoints, List<string> aggDim)
290
private IEnumerable<BestDimension> SelectOrderedDimensions(Dictionary<string, List<
TimeSeriesPoint
>> pointChildren, Dictionary<string, List<
TimeSeriesPoint
>> anomalyChildren, List<string> aggDim)
334
private AnomalyDirection GetRootCauseDirection(
TimeSeriesPoint
rootCausePoint)
350
private void GetRootCauseDirectionAndScore(Dictionary<Dictionary<string, Object>,
TimeSeriesPoint
> dimPointMapping, Dictionary<string, Object> anomalyRoot, RootCause dst, double beta, PointTree pointTree, AggregateType aggType, Object aggSymbol)
352
TimeSeriesPoint
anomalyPoint = GetPointByDimension(dimPointMapping, anomalyRoot, pointTree, aggType, aggSymbol);
360
TimeSeriesPoint
rootCausePoint = GetPointByDimension(dimPointMapping, item.Dimension, pointTree, aggType, aggSymbol);
384
TimeSeriesPoint
rootCausePoint = GetPointByDimension(dimPointMapping, dst.Items[0].Dimension, pointTree, aggType, aggSymbol);
401
private
TimeSeriesPoint
GetPointByDimension(Dictionary<Dictionary<string, Object>,
TimeSeriesPoint
> dimPointMapping, Dictionary<string, Object> dimension, PointTree pointTree, AggregateType aggType, Object aggSymbol)
409
TimeSeriesPoint
p = new TimeSeriesPoint(dimension);
413
foreach (
TimeSeriesPoint
leave in pointTree.Leaves)
442
private void BuildTree(PointTree tree, List<string> aggDims,
TimeSeriesPoint
point, Object aggSymbol)
467
tree.ChildrenNodes.Add(nextDim, new List<
TimeSeriesPoint
>());
562
private double GetSurpriseScore(
TimeSeriesPoint
rootCausePoint,
TimeSeriesPoint
anomalyPoint)
628
private Tuple<double, double> GetSurpriseAndExplanatoryScore(
TimeSeriesPoint
rootCausePoint,
TimeSeriesPoint
anomalyPoint)
706
private void UpdateDistribution(Dictionary<string, int> distribution, List<
TimeSeriesPoint
> points, string dimKey)
708
foreach (
TimeSeriesPoint
point in points)
755
internal
TimeSeriesPoint
ParentNode;
756
internal Dictionary<string, List<
TimeSeriesPoint
>> ChildrenNodes;
757
internal List<
TimeSeriesPoint
> Leaves;
761
Leaves = new List<
TimeSeriesPoint
>();
762
ChildrenNodes = new Dictionary<string, List<
TimeSeriesPoint
>>();
RootCauseLocalizationType.cs (4)
178
public List<
TimeSeriesPoint
> Points { get; set; }
180
public MetricSlice(DateTime timeStamp, List<
TimeSeriesPoint
> points)
189
public sealed class TimeSeriesPoint : IEquatable<
TimeSeriesPoint
>
227
public bool Equals(
TimeSeriesPoint
other)
Microsoft.ML.TimeSeries.Tests (6)
TimeSeriesDirectApi.cs (6)
1083
private static List<
TimeSeriesPoint
> GetRootCauseLocalizationPoints(object aggSymbol)
1085
List<
TimeSeriesPoint
> points = new List<
TimeSeriesPoint
>();
1227
private static List<
TimeSeriesPoint
> GetRootCauseLocalizationPointsForIntDimValue()
1229
List<
TimeSeriesPoint
> points = new List<
TimeSeriesPoint
>();