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