Skip to content

Commit 312526d

Browse files
committed
merge conflict resolved.
1 parent 3b97eae commit 312526d

8 files changed

+14
-14
lines changed

src/Microsoft.ML.TimeSeries/ExtensionsCatalog.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static IidChangePointEstimator IidChangePointEstimator(this TransformsCat
2828
/// Create a new instance of <see cref="IidSpikeEstimator"/>
2929
/// </summary>
3030
/// <param name="catalog">The transform's catalog.</param>
31-
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.
31+
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/></param>.
3232
/// <param name="inputColumnName">Name of column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param>
3333
/// <param name="confidence">The confidence for spike detection in the range [0, 100].</param>
3434
/// <param name="pvalueHistoryLength">The size of the sliding window for computing the p-value.</param>

src/Microsoft.ML.TimeSeries/IidAnomalyDetectionBase.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ public override Schema GetOutputSchema(Schema inputSchema)
131131

132132
private protected override void SaveModel(ModelSaveContext ctx)
133133
{
134-
Parent.SaveModel(ctx);
134+
Parent.Save(ctx);
135135
}
136136

137137
internal void SaveThis(ModelSaveContext ctx)
138138
{
139139
ctx.CheckAtModel();
140140
Host.Assert(InitialWindowSize == 0);
141-
base.Save(ctx);
141+
base.SaveModel(ctx);
142142

143143
// *** Binary format ***
144144
// <base>

src/Microsoft.ML.TimeSeries/IidChangePointDetector.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace Microsoft.ML.TimeSeriesProcessing
3232
/// <summary>
3333
/// This class implements the change point detector transform for an i.i.d. sequence based on adaptive kernel density estimation and martingales.
3434
/// </summary>
35-
public sealed class IidChangePointDetector : IidAnomalyDetectionBaseWrapper, IStatefulTransformer, ICanSaveModel
35+
public sealed class IidChangePointDetector : IidAnomalyDetectionBaseWrapper, IStatefulTransformer
3636
{
3737
internal const string Summary = "This transform detects the change-points in an i.i.d. sequence using adaptive kernel density estimation and martingales.";
3838
internal const string LoaderSignature = "IidChangePointDetector";
@@ -174,7 +174,7 @@ private IidChangePointDetector(IHostEnvironment env, IidChangePointDetector tran
174174
{
175175
}
176176

177-
private protected override void SaveModel(ModelSaveContext ctx)
177+
public override void Save(ModelSaveContext ctx)
178178
{
179179
InternalTransform.Host.CheckValue(ctx, nameof(ctx));
180180
ctx.CheckAtModel();
@@ -186,7 +186,7 @@ private protected override void SaveModel(ModelSaveContext ctx)
186186
// *** Binary format ***
187187
// <base>
188188

189-
base.SaveModel(ctx);
189+
base.Save(ctx);
190190
}
191191

192192
// Factory method for SignatureLoadRowMapper.

src/Microsoft.ML.TimeSeries/IidSpikeDetector.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private IidSpikeDetector(IHostEnvironment env, IidSpikeDetector transform)
155155
{
156156
}
157157

158-
private protected override void SaveModel(ModelSaveContext ctx)
158+
public override void Save(ModelSaveContext ctx)
159159
{
160160
InternalTransform.Host.CheckValue(ctx, nameof(ctx));
161161
ctx.CheckAtModel();
@@ -166,7 +166,7 @@ private protected override void SaveModel(ModelSaveContext ctx)
166166
// *** Binary format ***
167167
// <base>
168168

169-
base.SaveModel(ctx);
169+
base.Save(ctx);
170170
}
171171

172172
// Factory method for SignatureLoadRowMapper.

src/Microsoft.ML.TimeSeries/SequentialAnomalyDetectionTransformBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public Func<int, bool> GetDependencies(Func<int, bool> activeOutput)
350350
return col => false;
351351
}
352352

353-
public void Save(ModelSaveContext ctx) => _parent.Save(ctx);
353+
public void Save(ModelSaveContext ctx) => _parent.SaveModel(ctx);
354354

355355
public Delegate[] CreateGetters(Row input, Func<int, bool> activeOutput, out Action disposer)
356356
{

src/Microsoft.ML.TimeSeries/SsaAnomalyDetectionBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public override Schema GetOutputSchema(Schema inputSchema)
257257

258258
private protected override void SaveModel(ModelSaveContext ctx)
259259
{
260-
Parent.SaveModel(ctx);
260+
Parent.Save(ctx);
261261
}
262262

263263
internal void SaveThis(ModelSaveContext ctx)

src/Microsoft.ML.TimeSeries/SsaChangePointDetector.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ internal SsaChangePointDetector(IHostEnvironment env, ModelLoadContext ctx)
182182
InternalTransform.Host.CheckDecode(InternalTransform.IsAdaptive == false);
183183
}
184184

185-
private protected override void SaveModel(ModelSaveContext ctx)
185+
public override void Save(ModelSaveContext ctx)
186186
{
187187
InternalTransform.Host.CheckValue(ctx, nameof(ctx));
188188
ctx.CheckAtModel();
@@ -196,7 +196,7 @@ private protected override void SaveModel(ModelSaveContext ctx)
196196
// *** Binary format ***
197197
// <base>
198198

199-
base.SaveModel(ctx);
199+
base.Save(ctx);
200200
}
201201

202202
// Factory method for SignatureLoadRowMapper.

src/Microsoft.ML.TimeSeries/SsaSpikeDetector.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ internal SsaSpikeDetector(IHostEnvironment env, ModelLoadContext ctx)
164164
InternalTransform.Host.CheckDecode(InternalTransform.IsAdaptive == false);
165165
}
166166

167-
private protected override void SaveModel(ModelSaveContext ctx)
167+
public override void Save(ModelSaveContext ctx)
168168
{
169169
InternalTransform.Host.CheckValue(ctx, nameof(ctx));
170170
ctx.CheckAtModel();
@@ -177,7 +177,7 @@ private protected override void SaveModel(ModelSaveContext ctx)
177177
// *** Binary format ***
178178
// <base>
179179

180-
base.SaveModel(ctx);
180+
base.Save(ctx);
181181
}
182182

183183
// Factory method for SignatureLoadRowMapper.

0 commit comments

Comments
 (0)