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