2 writes to InternalTransform
Microsoft.ML.TimeSeries (2)
SsaAnomalyDetectionBase.cs (2)
169InternalTransform = new SsaAnomalyDetectionBase(options, name, env, this); 174InternalTransform = new SsaAnomalyDetectionBase(env, ctx, name);
69 references to InternalTransform
Microsoft.ML.TimeSeries (69)
SsaAnomalyDetectionBase.cs (9)
92bool ITransformer.IsRowToRowMapper => ((ITransformer)InternalTransform).IsRowToRowMapper; 98IStatefulTransformer IStatefulTransformer.Clone() => InternalTransform.Clone(); 104public DataViewSchema GetOutputSchema(DataViewSchema inputSchema) => InternalTransform.GetOutputSchema(inputSchema); 114=> ((ITransformer)InternalTransform).GetRowToRowMapper(inputSchema); 122=> ((IStatefulTransformer)InternalTransform).GetStatefulRowToRowMapper(inputSchema); 128public IDataView Transform(IDataView input) => InternalTransform.Transform(input); 135private protected virtual void SaveModel(ModelSaveContext ctx) => InternalTransform.SaveThis(ctx); 140internal IStatefulRowMapper MakeRowMapper(DataViewSchema schema) => InternalTransform.MakeRowMapper(schema); 145internal IDataTransform MakeDataTransform(IDataView input) => InternalTransform.MakeDataTransform(input);
SsaChangePointDetector.cs (38)
106InternalTransform.Model.Train(new RoleMappedData(input, null, InternalTransform.InputColumnName)); 122clone.InternalTransform.Model = clone.InternalTransform.Model.Clone(); 123clone.InternalTransform.StateRef = (SsaAnomalyDetectionBase.State)clone.InternalTransform.StateRef.Clone(); 124clone.InternalTransform.StateRef.InitState(clone.InternalTransform, InternalTransform.Host); 131switch (InternalTransform.Martingale) 134InternalTransform.AlertThreshold = Double.MaxValue; 137InternalTransform.AlertThreshold = Math.Exp(InternalTransform.WindowSize * InternalTransform.LogPowerMartigaleBettingFunc(1 - options.Confidence / 100, InternalTransform.PowerMartingaleEpsilon)); 140InternalTransform.AlertThreshold = Math.Exp(InternalTransform.WindowSize * InternalTransform.LogMixtureMartigaleBettingFunc(1 - options.Confidence / 100)); 143InternalTransform.Host.Assert(!Enum.IsDefined(typeof(MartingaleType), InternalTransform.Martingale)); 144throw InternalTransform.Host.ExceptUserArg(nameof(options.Martingale), "Value not defined."); 174InternalTransform.Host.CheckDecode(InternalTransform.ThresholdScore == AlertingScore.MartingaleScore); 175InternalTransform.Host.CheckDecode(InternalTransform.Side == AnomalySide.TwoSided); 176InternalTransform.Host.CheckDecode(InternalTransform.DiscountFactor == 1); 177InternalTransform.Host.CheckDecode(InternalTransform.IsAdaptive == false); 182InternalTransform.Host.CheckValue(ctx, nameof(ctx)); 186InternalTransform.Host.Assert(InternalTransform.ThresholdScore == AlertingScore.MartingaleScore); 187InternalTransform.Host.Assert(InternalTransform.Side == AnomalySide.TwoSided); 188InternalTransform.Host.Assert(InternalTransform.DiscountFactor == 1); 189InternalTransform.Host.Assert(InternalTransform.IsAdaptive == false);
SsaSpikeDetector.cs (22)
103InternalTransform.Model.Train(new RoleMappedData(input, null, InternalTransform.InputColumnName)); 135clone.InternalTransform.Model = clone.InternalTransform.Model.Clone(); 136clone.InternalTransform.StateRef = (SsaAnomalyDetectionBase.State)clone.InternalTransform.StateRef.Clone(); 137clone.InternalTransform.StateRef.InitState(clone.InternalTransform, InternalTransform.Host); 157InternalTransform.Host.CheckDecode(InternalTransform.ThresholdScore == AlertingScore.PValueScore); 158InternalTransform.Host.CheckDecode(InternalTransform.DiscountFactor == 1); 159InternalTransform.Host.CheckDecode(InternalTransform.IsAdaptive == false); 164InternalTransform.Host.CheckValue(ctx, nameof(ctx)); 168InternalTransform.Host.Assert(InternalTransform.ThresholdScore == AlertingScore.PValueScore); 169InternalTransform.Host.Assert(InternalTransform.DiscountFactor == 1); 170InternalTransform.Host.Assert(InternalTransform.IsAdaptive == false);