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