2 writes to InternalTransform
Microsoft.ML.TimeSeries (2)
IidAnomalyDetectionBase.cs (2)
85InternalTransform = new IidAnomalyDetectionBase(args, name, env, this); 90InternalTransform = new IidAnomalyDetectionBase(env, ctx, name, this);
64 references to InternalTransform
Microsoft.ML.TimeSeries (64)
IidAnomalyDetectionBase.cs (9)
23bool ITransformer.IsRowToRowMapper => ((ITransformer)InternalTransform).IsRowToRowMapper; 29IStatefulTransformer IStatefulTransformer.Clone() => InternalTransform.Clone(); 35public DataViewSchema GetOutputSchema(DataViewSchema inputSchema) => InternalTransform.GetOutputSchema(inputSchema); 45=> ((ITransformer)InternalTransform).GetRowToRowMapper(inputSchema); 53=> ((IStatefulTransformer)InternalTransform).GetStatefulRowToRowMapper(inputSchema); 59public IDataView Transform(IDataView input) => InternalTransform.Transform(input); 68InternalTransform.SaveThis(ctx); 74internal IStatefulRowMapper MakeRowMapper(DataViewSchema schema) => InternalTransform.MakeRowMapper(schema); 79internal IDataTransform MakeDataTransform(IDataView input) => InternalTransform.MakeDataTransform(input);
IidChangePointDetector.cs (35)
79Source = transform.InternalTransform.InputColumnName; 80Name = transform.InternalTransform.OutputColumnName; 82WindowSize = transform.InternalTransform.WindowSize; 83Martingale = transform.InternalTransform.Martingale; 84PowerMartingaleEpsilon = transform.InternalTransform.PowerMartingaleEpsilon; 86AlertThreshold = transform.InternalTransform.AlertThreshold; 113clone.InternalTransform.StateRef = (IidAnomalyDetectionBase.State)clone.InternalTransform.StateRef.Clone(); 114clone.InternalTransform.StateRef.InitState(clone.InternalTransform, InternalTransform.Host); 121switch (InternalTransform.Martingale) 124InternalTransform.AlertThreshold = Double.MaxValue; 127InternalTransform.AlertThreshold = Math.Exp(InternalTransform.WindowSize * InternalTransform.LogPowerMartigaleBettingFunc(1 - options.Confidence / 100, InternalTransform.PowerMartingaleEpsilon)); 130InternalTransform.AlertThreshold = Math.Exp(InternalTransform.WindowSize * InternalTransform.LogMixtureMartigaleBettingFunc(1 - options.Confidence / 100)); 133throw InternalTransform.Host.ExceptParam(nameof(options.Martingale), 164InternalTransform.Host.CheckDecode(InternalTransform.ThresholdScore == AlertingScore.MartingaleScore); 165InternalTransform.Host.CheckDecode(InternalTransform.Side == AnomalySide.TwoSided); 175InternalTransform.Host.CheckValue(ctx, nameof(ctx)); 179InternalTransform.Host.Assert(InternalTransform.ThresholdScore == AlertingScore.MartingaleScore); 180InternalTransform.Host.Assert(InternalTransform.Side == AnomalySide.TwoSided); 265if (!inputSchema.TryFindColumn(Transformer.InternalTransform.InputColumnName, out var col)) 266throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", Transformer.InternalTransform.InputColumnName); 268throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", Transformer.InternalTransform.InputColumnName, "Single", col.GetTypeString()); 275resultDic[Transformer.InternalTransform.OutputColumnName] = new SchemaShape.Column( 276Transformer.InternalTransform.OutputColumnName, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Double, false, new SchemaShape(metadata));
IidSpikeDetector.cs (20)
75Source = transform.InternalTransform.InputColumnName; 76Name = transform.InternalTransform.OutputColumnName; 77Side = transform.InternalTransform.Side; 78WindowSize = transform.InternalTransform.WindowSize; 79AlertThreshold = transform.InternalTransform.AlertThreshold; 109clone.InternalTransform.StateRef = (IidAnomalyDetectionBase.State)clone.InternalTransform.StateRef.Clone(); 110clone.InternalTransform.StateRef.InitState(clone.InternalTransform, InternalTransform.Host); 146InternalTransform.Host.CheckDecode(InternalTransform.ThresholdScore == AlertingScore.PValueScore); 156InternalTransform.Host.CheckValue(ctx, nameof(ctx)); 160InternalTransform.Host.Assert(InternalTransform.ThresholdScore == AlertingScore.PValueScore); 241if (!inputSchema.TryFindColumn(Transformer.InternalTransform.InputColumnName, out var col)) 242throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", Transformer.InternalTransform.InputColumnName); 244throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", Transformer.InternalTransform.InputColumnName, "Single", col.GetTypeString()); 250resultDic[Transformer.InternalTransform.OutputColumnName] = new SchemaShape.Column( 251Transformer.InternalTransform.OutputColumnName, SchemaShape.Column.VectorKind.Vector, NumberDataViewType.Double, false, new SchemaShape(metadata));