3 instantiations of ModelSaveContext
Microsoft.ML.Core (3)
Data\ModelSaving.cs (3)
38
using (var ctx = new
ModelSaveContext
(rep, path, ModelLoadContext.ModelStreamName))
66
using (var ctx = new
ModelSaveContext
(writer))
84
using (var ctx = new
ModelSaveContext
(Repository, Path.Combine(Directory ?? "", dir), ModelLoadContext.ModelStreamName))
382 references to ModelSaveContext
Microsoft.ML.Core (10)
Data\ModelSaveContext.cs (2)
83
/// Create a <see cref="
ModelSaveContext
"/> supporting saving to a repository, for implementors of <see cref="ICanSaveModel"/>.
119
/// Create a <see cref="
ModelSaveContext
"/> supporting saving to a single-stream, for implementors of <see cref="ICanSaveInBinaryFormat"/>.
Data\ModelSaving.cs (5)
38
using (
var
ctx = new ModelSaveContext(rep, path, ModelLoadContext.ModelStreamName))
61
internal static void Save(BinaryWriter writer, Action<
ModelSaveContext
> fn)
66
using (
var
ctx = new ModelSaveContext(writer))
78
internal void SaveSubModel(string dir, Action<
ModelSaveContext
> fn)
84
using (
var
ctx = new ModelSaveContext(Repository, Path.Combine(Directory ?? "", dir), ModelLoadContext.ModelStreamName))
Data\Repository.cs (3)
20
/// Classes implementing <see cref="ICanSaveModel"/> should do an explicit implementation of <see cref="Save(
ModelSaveContext
)"/>.
21
/// Classes inheriting <see cref="ICanSaveModel"/> from a base class should overwrite the function invoked by <see cref="Save(
ModelSaveContext
)"/>
26
void Save(
ModelSaveContext
ctx);
Microsoft.ML.Data (162)
Commands\DataCommand.cs (1)
424
ModelSaveContext
.SaveModel(rep, loader, ModelFileUtils.DirDataLoaderModel);
Commands\TrainCommand.cs (4)
359
ModelSaveContext
.SaveModel(rep, predictor, ModelFileUtils.DirPredictor);
365
ModelSaveContext
.SaveModel(rep, dataPipe, ModelFileUtils.DirDataLoaderModel);
397
Action<
ModelSaveContext
> saveAction;
407
using (
var
ctx = ModelFileUtils.GetDataModelSavingContext(repositoryWriter))
DataLoadSave\Binary\BinaryLoader.cs (4)
940
void ICanSaveModel.Save(
ModelSaveContext
ctx)
958
private static void SaveParameters(
ModelSaveContext
ctx, int threads, Double shuffleBlocks)
975
private static void SaveSchema(IHostEnvironment env,
ModelSaveContext
ctx, DataViewSchema schema, out int[] unsavableColIndices)
1007
public static void SaveInstance(IHostEnvironment env,
ModelSaveContext
ctx, DataViewSchema schema)
DataLoadSave\CompositeDataLoader.cs (1)
91
void ICanSaveModel.Save(
ModelSaveContext
ctx)
DataLoadSave\Database\DatabaseLoader.cs (2)
80
void ICanSaveModel.Save(
ModelSaveContext
ctx)
617
internal void Save(
ModelSaveContext
ctx)
DataLoadSave\LegacyCompositeDataLoader.cs (6)
503
void ICanSaveModel.Save(
ModelSaveContext
ctx)
520
public static void SavePipe(IHostEnvironment env,
ModelSaveContext
ctx, Action<
ModelSaveContext
> loaderSaveAction, IList<IDataTransform> transforms)
538
private static void SaveCore(
ModelSaveContext
ctx, Action<
ModelSaveContext
> loaderSaveAction, TransformEx[] transforms)
554
using (
var
loaderCtx = new ModelSaveContext(ctx.Repository, Path.Combine(ctx.Directory ?? "", "Loader"), ModelLoadContext.ModelStreamName))
DataLoadSave\Text\TextLoader.cs (3)
998
internal void Save(
ModelSaveContext
ctx)
1500
void ICanSaveModel.Save(
ModelSaveContext
ctx)
1676
void ICanSaveModel.Save(
ModelSaveContext
ctx) => ((ICanSaveModel)_loader).Save(ctx);
DataLoadSave\TransformerChain.cs (2)
187
void ICanSaveModel.Save(
ModelSaveContext
ctx)
230
ModelSaveContext
.SaveModel(rep, this, TransformerChain.LoaderSignature);
DataLoadSave\TransformWrapper.cs (1)
43
void ICanSaveModel.Save(
ModelSaveContext
ctx) => throw _host.Except("Saving is not permitted.");
DataLoadSave\Transpose\TransposeLoader.cs (2)
518
void ICanSaveModel.Save(
ModelSaveContext
ctx)
538
private static void SaveSchema(IHostEnvironment env,
ModelSaveContext
ctx, DataViewSchema schema)
DataView\LambdaColumnMapper.cs (1)
142
private protected override void SaveModel(
ModelSaveContext
ctx)
DataView\LambdaFilter.cs (1)
98
private protected override void SaveModel(
ModelSaveContext
ctx)
DataView\RowToRowMapperTransform.cs (2)
131
private protected override void SaveModel(
ModelSaveContext
ctx)
284
ModelSaveContext
.SaveModel(rep, this, "model");
Deprecated\Instances\HeaderSchema.cs (1)
153
public static void Save(
ModelSaveContext
ctx, in VBuffer<ReadOnlyMemory<char>> names)
Dirty\ChooseColumnsByIndexTransform.cs (2)
142
internal void Save(
ModelSaveContext
ctx)
225
private protected override void SaveModel(
ModelSaveContext
ctx)
Dirty\ModelParametersBase.cs (3)
48
void ICanSaveModel.Save(
ModelSaveContext
ctx) => Save(ctx);
51
private protected virtual void Save(
ModelSaveContext
ctx)
59
private protected virtual void SaveCore(
ModelSaveContext
ctx)
Evaluators\BinaryClassifierEvaluator.cs (1)
1115
private protected override void SaveModel(
ModelSaveContext
ctx)
Evaluators\ClusteringEvaluator.cs (1)
630
private protected override void SaveModel(
ModelSaveContext
ctx)
Evaluators\EvaluatorBase.cs (2)
510
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
515
private protected virtual void SaveModel(
ModelSaveContext
ctx)
Evaluators\MulticlassClassificationEvaluator.cs (1)
677
private protected override void SaveModel(
ModelSaveContext
ctx)
Evaluators\MultiOutputRegressionEvaluator.cs (1)
428
private protected override void SaveModel(
ModelSaveContext
ctx)
Evaluators\QuantileRegressionEvaluator.cs (1)
326
private protected override void SaveModel(
ModelSaveContext
ctx)
Evaluators\RankingEvaluator.cs (2)
610
void ICanSaveModel.Save(
ModelSaveContext
ctx)
730
private protected override void SaveModel(
ModelSaveContext
ctx)
Evaluators\RegressionEvaluator.cs (1)
244
private protected override void SaveModel(
ModelSaveContext
ctx)
Model\ModelOperationsCatalog.cs (2)
52
ModelSaveContext
.SaveModel(rep, compositeLoader, null);
91
ModelSaveContext
.SaveModel(rep, model, CompositeDataLoader<object, ITransformer>.TransformerDirectory);
Prediction\Calibrator.cs (11)
267
private protected void SaveCore(
ModelSaveContext
ctx)
460
void ICanSaveModel.Save(
ModelSaveContext
ctx)
527
void ICanSaveModel.Save(
ModelSaveContext
ctx)
604
void ICanSaveModel.Save(
ModelSaveContext
ctx)
773
void ICanSaveModel.Save(
ModelSaveContext
ctx)
1251
ModelSaveContext
.Save(writer, SaveCore);
1254
private void SaveCore(
ModelSaveContext
ctx)
1739
void ICanSaveModel.Save(
ModelSaveContext
ctx)
1746
private void SaveCore(
ModelSaveContext
ctx)
2046
ModelSaveContext
.Save(writer, SaveCore);
2049
private void SaveCore(
ModelSaveContext
ctx)
Prediction\CalibratorCatalog.cs (2)
212
private protected override void SaveModel(
ModelSaveContext
ctx)
264
private protected override void SaveModel(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
Scorers\BinaryClassifierScorer.cs (1)
169
private protected override void SaveCore(
ModelSaveContext
ctx)
Scorers\ClusteringScorer.cs (1)
74
private protected override void SaveCore(
ModelSaveContext
ctx)
Scorers\FeatureContributionCalculation.cs (1)
170
void ICanSaveModel.Save(
ModelSaveContext
ctx)
Scorers\GenericScorer.cs (2)
116
internal override void SaveModel(
ModelSaveContext
ctx)
203
private protected override void SaveCore(
ModelSaveContext
ctx)
Scorers\MulticlassClassificationScorer.cs (3)
176
void ICanSaveModel.Save(
ModelSaveContext
ctx)
191
private void SaveCore<T>(
ModelSaveContext
ctx)
543
private protected override void SaveCore(
ModelSaveContext
ctx)
Scorers\PredictedLabelScorerBase.cs (2)
152
internal override void SaveModel(
ModelSaveContext
ctx)
324
private protected override void SaveCore(
ModelSaveContext
ctx)
Scorers\PredictionTransformer.cs (11)
163
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
165
private protected abstract void SaveModel(
ModelSaveContext
ctx);
168
private protected void SaveModelCore(
ModelSaveContext
ctx)
291
private protected sealed override void SaveModel(
ModelSaveContext
ctx)
298
private protected virtual void SaveCore(
ModelSaveContext
ctx)
353
private protected override void SaveCore(
ModelSaveContext
ctx)
445
private protected override void SaveCore(
ModelSaveContext
ctx)
537
private protected override void SaveCore(
ModelSaveContext
ctx)
591
private protected override void SaveCore(
ModelSaveContext
ctx)
639
private protected override void SaveCore(
ModelSaveContext
ctx)
691
private protected override void SaveCore(
ModelSaveContext
ctx)
Scorers\RowToRowScorerBase.cs (4)
55
private protected sealed override void SaveModel(
ModelSaveContext
ctx)
67
private protected abstract void SaveCore(
ModelSaveContext
ctx);
405
protected void SaveBase(
ModelSaveContext
ctx)
426
internal abstract void SaveModel(
ModelSaveContext
ctx);
Scorers\SchemaBindablePredictorWrapper.cs (5)
81
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
83
private protected virtual void SaveModel(
ModelSaveContext
ctx)
317
private protected override void SaveModel(
ModelSaveContext
ctx)
424
private protected override void SaveModel(
ModelSaveContext
ctx)
674
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\BootstrapSamplingTransformer.cs (1)
131
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\ColumnConcatenatingTransformer.cs (3)
175
public void Save(
ModelSaveContext
ctx)
263
private protected override void SaveModel(
ModelSaveContext
ctx)
873
private protected override void SaveModel(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
Transforms\ColumnCopying.cs (1)
187
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\ColumnSelecting.cs (3)
443
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
445
internal void SaveModel(
ModelSaveContext
ctx)
711
void ICanSaveModel.Save(
ModelSaveContext
ctx) => _transform.SaveModel(ctx);
Transforms\FeatureContributionCalculationTransformer.cs (1)
129
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\GenerateNumberTransform.cs (2)
164
internal void Save(
ModelSaveContext
ctx)
310
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\Hashing.cs (2)
299
private protected override void SaveModel(
ModelSaveContext
ctx)
1871
internal void Save(
ModelSaveContext
ctx)
Transforms\InvertHashUtils.cs (2)
379
private static void Save(IChannel ch,
ModelSaveContext
ctx, CodecFactory factory, in VBuffer<ReadOnlyMemory<char>> values)
478
public static void SaveAll(IHost host,
ModelSaveContext
ctx, int infoLim, VBuffer<ReadOnlyMemory<char>>[] keyValues)
Transforms\KeyToValue.cs (1)
142
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\KeyToVector.cs (1)
144
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\LabelConvertTransform.cs (1)
123
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\LabelIndicatorTransform.cs (1)
100
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\NAFilter.cs (1)
169
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\NopTransform.cs (1)
92
void ICanSaveModel.Save(
ModelSaveContext
ctx)
Transforms\NormalizeColumn.cs (6)
416
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
418
private protected abstract void SaveModel(
ModelSaveContext
ctx);
534
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
536
private protected abstract void SaveModel(
ModelSaveContext
ctx);
665
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
667
private protected abstract void SaveModel(
ModelSaveContext
ctx);
Transforms\NormalizeColumnDbl.cs (9)
27
public static void SaveModel(
ModelSaveContext
ctx,
195
public static void SaveModel(
ModelSaveContext
ctx, TFloat[][] binUpperBounds, bool saveText = false)
266
public static void SaveModel(
ModelSaveContext
ctx, bool useLog, TFloat[] mean, TFloat[] stddev)
692
private protected override void SaveModel(
ModelSaveContext
ctx)
752
private protected override void SaveModel(
ModelSaveContext
ctx)
1016
private protected override void SaveModel(
ModelSaveContext
ctx)
1071
private protected override void SaveModel(
ModelSaveContext
ctx)
1195
private protected override void SaveModel(
ModelSaveContext
ctx)
1281
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\NormalizeColumnSng.cs (9)
27
public static void SaveModel(
ModelSaveContext
ctx,
195
public static void SaveModel(
ModelSaveContext
ctx, TFloat[][] binUpperBounds, bool saveText = false)
266
public static void SaveModel(
ModelSaveContext
ctx, bool useLog, TFloat[] mean, TFloat[] stddev)
850
private protected override void SaveModel(
ModelSaveContext
ctx)
909
private protected override void SaveModel(
ModelSaveContext
ctx)
1176
private protected override void SaveModel(
ModelSaveContext
ctx)
1231
private protected override void SaveModel(
ModelSaveContext
ctx)
1356
private protected override void SaveModel(
ModelSaveContext
ctx)
1442
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\Normalizer.cs (2)
462
internal static void SaveType(
ModelSaveContext
ctx, DataViewType type)
679
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\OneToOneTransformerBase.cs (2)
56
private protected void SaveColumns(
ModelSaveContext
ctx)
118
private protected override void SaveModel(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
Transforms\PerGroupTransformBase.cs (2)
134
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
136
private protected virtual void SaveModel(
ModelSaveContext
ctx)
Transforms\RangeFilter.cs (1)
177
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\RowShufflingTransformer.cs (1)
162
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\RowToRowTransformerBase.cs (4)
25
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
27
private protected abstract void SaveModel(
ModelSaveContext
ctx);
115
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
117
private protected abstract void SaveModel(
ModelSaveContext
ctx);
Transforms\SkipTakeFilter.cs (1)
169
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\SlotsDroppingTransformer.cs (1)
328
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\TransformBase.cs (4)
46
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
48
private protected abstract void SaveModel(
ModelSaveContext
ctx);
412
internal void Save(
ModelSaveContext
ctx)
567
private protected void SaveBase(
ModelSaveContext
ctx)
Transforms\TypeConverting.cs (1)
206
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\ValueMapping.cs (1)
783
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\ValueToKeyMappingTransformer.cs (1)
652
private protected override void SaveModel(
ModelSaveContext
ctx)
Transforms\ValueToKeyMappingTransformerImpl.cs (3)
510
internal abstract void Save(
ModelSaveContext
ctx, IHostEnvironment host, CodecFactory codecFactory);
619
internal override void Save(
ModelSaveContext
ctx, IHostEnvironment host, CodecFactory codecFactory)
692
internal override void Save(
ModelSaveContext
ctx, IHostEnvironment host, CodecFactory codecFactory)
Utilities\ApplyTransformUtils.cs (1)
40
ModelSaveContext
.SaveModel(rep, transform, "model");
Utilities\ModelFileUtils.cs (1)
166
public static
ModelSaveContext
GetDataModelSavingContext(RepositoryWriter rep)
Microsoft.ML.Ensemble (24)
OutputCombiners\Average.cs (1)
50
protected override void SaveCore(
ModelSaveContext
ctx)
OutputCombiners\BaseAverager.cs (2)
33
void ICanSaveModel.Save(
ModelSaveContext
ctx)
40
protected virtual void SaveCore(
ModelSaveContext
ctx)
OutputCombiners\BaseMultiCombiner.cs (2)
52
void ICanSaveModel.Save(
ModelSaveContext
ctx)
59
protected virtual void SaveCore(
ModelSaveContext
ctx)
OutputCombiners\BaseStacking.cs (2)
68
void ICanSaveModel.Save(
ModelSaveContext
ctx)
76
protected virtual void SaveCore(
ModelSaveContext
ctx)
OutputCombiners\Median.cs (1)
62
void ICanSaveModel.Save(
ModelSaveContext
ctx)
OutputCombiners\MultiAverage.cs (1)
59
protected override void SaveCore(
ModelSaveContext
ctx)
OutputCombiners\MultiMedian.cs (1)
62
protected override void SaveCore(
ModelSaveContext
ctx)
OutputCombiners\MultiStacking.cs (1)
74
protected override void SaveCore(
ModelSaveContext
ctx)
OutputCombiners\MultiVoting.cs (1)
60
protected override void SaveCore(
ModelSaveContext
ctx)
OutputCombiners\MultiWeightedAverage.cs (1)
80
protected override void SaveCore(
ModelSaveContext
ctx)
OutputCombiners\RegressionStacking.cs (1)
72
protected override void SaveCore(
ModelSaveContext
ctx)
OutputCombiners\Stacking.cs (1)
71
protected override void SaveCore(
ModelSaveContext
ctx)
OutputCombiners\Voting.cs (1)
60
void ICanSaveModel.Save(
ModelSaveContext
ctx)
OutputCombiners\WeightedAverage.cs (1)
77
protected override void SaveCore(
ModelSaveContext
ctx)
PipelineEnsemble.cs (3)
214
protected override void SaveCore(
ModelSaveContext
ctx)
484
void ICanSaveModel.Save(
ModelSaveContext
ctx)
517
protected abstract void SaveCore(
ModelSaveContext
ctx);
Trainer\EnsembleDistributionModelParameters.cs (1)
130
private protected override void SaveCore(
ModelSaveContext
ctx)
Trainer\EnsembleModelParameters.cs (1)
120
private protected override void SaveCore(
ModelSaveContext
ctx)
Trainer\EnsembleModelParametersBase.cs (1)
88
private protected override void SaveCore(
ModelSaveContext
ctx)
Trainer\Multiclass\EnsembleMulticlassModelParameters.cs (1)
102
private protected override void SaveCore(
ModelSaveContext
ctx)
Microsoft.ML.FastTree (16)
FastTree.cs (1)
2896
private protected override void SaveCore(
ModelSaveContext
ctx)
FastTreeClassification.cs (1)
81
private protected override void SaveCore(
ModelSaveContext
ctx)
FastTreeRanking.cs (1)
1063
private protected override void SaveCore(
ModelSaveContext
ctx)
FastTreeRegression.cs (1)
511
private protected override void SaveCore(
ModelSaveContext
ctx)
FastTreeTweedie.cs (1)
521
private protected override void SaveCore(
ModelSaveContext
ctx)
GamClassification.cs (1)
248
private protected override void SaveCore(
ModelSaveContext
ctx)
GamModelParameters.cs (1)
166
private protected override void SaveCore(
ModelSaveContext
ctx)
GamRegression.cs (1)
193
private protected override void SaveCore(
ModelSaveContext
ctx)
RandomForestClassification.cs (1)
100
private protected override void SaveCore(
ModelSaveContext
ctx)
RandomForestRegression.cs (1)
193
private protected override void SaveCore(
ModelSaveContext
ctx)
TreeEnsemble\InternalQuantileRegressionTree.cs (1)
60
internal override void Save(
ModelSaveContext
ctx)
TreeEnsemble\InternalRegressionTree.cs (2)
332
protected void Save(
ModelSaveContext
ctx, TreeType code)
413
internal virtual void Save(
ModelSaveContext
ctx)
TreeEnsemble\InternalTreeEnsemble.cs (1)
59
internal void Save(
ModelSaveContext
ctx)
TreeEnsembleFeaturizationTransformer.cs (1)
148
private protected override void SaveModel(
ModelSaveContext
ctx)
TreeEnsembleFeaturizer.cs (1)
443
void ICanSaveModel.Save(
ModelSaveContext
ctx)
Microsoft.ML.ImageAnalytics (7)
ImageGrayscale.cs (1)
129
private protected override void SaveModel(
ModelSaveContext
ctx)
ImageLoader.cs (1)
164
private protected override void SaveModel(
ModelSaveContext
ctx)
ImagePixelExtractor.cs (2)
246
private protected override void SaveModel(
ModelSaveContext
ctx)
735
internal void Save(
ModelSaveContext
ctx)
ImageResizer.cs (1)
222
private protected override void SaveModel(
ModelSaveContext
ctx)
VectorToImageTransform.cs (2)
275
private protected override void SaveModel(
ModelSaveContext
ctx)
650
internal void Save(
ModelSaveContext
ctx)
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
224
private protected override void SaveCore(
ModelSaveContext
ctx)
Microsoft.ML.LightGbm (3)
LightGbmBinaryTrainer.cs (1)
69
private protected override void SaveCore(
ModelSaveContext
ctx)
LightGbmRankingTrainer.cs (1)
65
private protected override void SaveCore(
ModelSaveContext
ctx)
LightGbmRegressionTrainer.cs (1)
64
private protected override void SaveCore(
ModelSaveContext
ctx)
Microsoft.ML.Mkl.Components (3)
OlsLinearRegression.cs (1)
846
private protected override void SaveCore(
ModelSaveContext
ctx)
VectorWhitening.cs (2)
464
private protected override void SaveModel(
ModelSaveContext
ctx)
827
internal void Save(
ModelSaveContext
ctx)
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
417
private protected override void SaveModel(
ModelSaveContext
ctx)
613
private protected override void SaveModel(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
Microsoft.ML.Parquet (4)
ParquetLoader.cs (1)
406
void ICanSaveModel.Save(
ModelSaveContext
ctx)
PartitionedFileLoader.cs (1)
256
void ICanSaveModel.Save(
ModelSaveContext
ctx)
PartitionedPathParser.cs (2)
151
void ICanSaveModel.Save(
ModelSaveContext
ctx)
264
void ICanSaveModel.Save(
ModelSaveContext
ctx)
Microsoft.ML.PCA (3)
PcaTrainer.cs (1)
519
private protected override void SaveCore(
ModelSaveContext
ctx)
PcaTransformer.cs (2)
142
internal void Save(
ModelSaveContext
ctx)
281
private protected override void SaveModel(
ModelSaveContext
ctx)
Microsoft.ML.Recommender (2)
MatrixFactorizationPredictor.cs (2)
166
void ICanSaveModel.Save(
ModelSaveContext
ctx)
522
private protected override void SaveModel(
ModelSaveContext
ctx)
Microsoft.ML.StandardTrainers (19)
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (3)
186
private protected override void SaveCore(
ModelSaveContext
ctx)
390
/// <param name="ctx">The <see cref="
ModelSaveContext
"/> that facilitates saving to the <see cref="Repository"/>.</param>
391
private protected override void SaveModel(
ModelSaveContext
ctx)
LdSvm\LdSvmModelParameters.cs (2)
161
private protected override void SaveCore(
ModelSaveContext
ctx)
206
private void SaveVBufferArray(
ModelSaveContext
ctx, VBuffer<float>[] data)
Standard\LinearModelParameters.cs (4)
211
private protected override void SaveCore(
ModelSaveContext
ctx)
496
private protected override void SaveCore(
ModelSaveContext
ctx)
652
private protected override void SaveCore(
ModelSaveContext
ctx)
748
private protected override void SaveCore(
ModelSaveContext
ctx)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
624
private protected override void SaveCore(
ModelSaveContext
ctx)
1082
private void SaveLabelNames(
ModelSaveContext
ctx, BinaryWriter writer)
Standard\ModelStatistics.cs (3)
128
void ICanSaveModel.Save(
ModelSaveContext
ctx)
136
private protected virtual void SaveCore(
ModelSaveContext
ctx)
309
private protected override void SaveCore(
ModelSaveContext
ctx)
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
363
private protected override void SaveCore(
ModelSaveContext
ctx)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
413
private protected override void SaveCore(
ModelSaveContext
ctx)
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (1)
353
private protected override void SaveCore(
ModelSaveContext
ctx)
Standard\Simple\SimpleTrainers.cs (2)
113
private protected override void SaveCore(
ModelSaveContext
ctx)
391
private protected override void SaveCore(
ModelSaveContext
ctx)
Microsoft.ML.TensorFlow (2)
TensorflowTransform.cs (2)
433
private protected override void SaveModel(
ModelSaveContext
ctx)
674
private protected override void SaveModel(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipeBase.cs (1)
444
ModelSaveContext
.SaveModel(rep, pipe, dir);
Microsoft.ML.TimeSeries (43)
AdaptiveSingularSpectrumSequenceModeler.cs (1)
448
private protected override void SaveModel(
ModelSaveContext
ctx)
ExponentialAverageTransform.cs (1)
80
private protected override void SaveModel(
ModelSaveContext
ctx)
IidAnomalyDetectionBase.cs (4)
64
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
66
private protected virtual void SaveModel(
ModelSaveContext
ctx)
133
private protected override void SaveModel(
ModelSaveContext
ctx)
138
internal void SaveThis(
ModelSaveContext
ctx)
IidChangePointDetector.cs (1)
173
private protected override void SaveModel(
ModelSaveContext
ctx)
IidSpikeDetector.cs (1)
154
private protected override void SaveModel(
ModelSaveContext
ctx)
MovingAverageTransform.cs (1)
96
private protected override void SaveModel(
ModelSaveContext
ctx)
PercentileThresholdTransform.cs (1)
87
private protected override void SaveModel(
ModelSaveContext
ctx)
PValueTransform.cs (1)
92
private protected override void SaveModel(
ModelSaveContext
ctx)
SequenceModelerBase.cs (3)
75
/// Implementation of <see cref="ICanSaveModel.Save(
ModelSaveContext
)"/>.
77
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
79
private protected abstract void SaveModel(
ModelSaveContext
ctx);
SequentialAnomalyDetectionTransformBase.cs (2)
235
private protected override void SaveModel(
ModelSaveContext
ctx)
350
void ICanSaveModel.Save(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
SequentialForecastingTransformBase.cs (2)
83
private protected override void SaveModel(
ModelSaveContext
ctx)
154
void ICanSaveModel.Save(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
SequentialTransformBase.cs (1)
326
private protected override void SaveModel(
ModelSaveContext
ctx)
SequentialTransformerBase.cs (4)
415
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
417
private protected virtual void SaveModel(
ModelSaveContext
ctx)
585
private protected override void SaveModel(
ModelSaveContext
ctx)
793
private protected override void SaveModel(
ModelSaveContext
ctx)
SlidingWindowTransform.cs (1)
51
private protected override void SaveModel(
ModelSaveContext
ctx)
SlidingWindowTransformBase.cs (1)
109
private protected override void SaveModel(
ModelSaveContext
ctx)
SrCnnAnomalyDetectionBase.cs (4)
60
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
62
private protected virtual void SaveModel(
ModelSaveContext
ctx)
124
private protected override void SaveModel(
ModelSaveContext
ctx)
129
internal void SaveThis(
ModelSaveContext
ctx)
SRCNNAnomalyDetector.cs (1)
165
private protected override void SaveModel(
ModelSaveContext
ctx)
SrCnnTransformBase.cs (2)
120
private protected override void SaveModel(
ModelSaveContext
ctx)
193
void ICanSaveModel.Save(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
SsaAnomalyDetectionBase.cs (4)
133
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
135
private protected virtual void SaveModel(
ModelSaveContext
ctx) => InternalTransform.SaveThis(ctx);
259
private protected override void SaveModel(
ModelSaveContext
ctx)
264
internal void SaveThis(
ModelSaveContext
ctx)
SsaChangePointDetector.cs (1)
180
private protected override void SaveModel(
ModelSaveContext
ctx)
SSaForecasting.cs (1)
187
private protected override void SaveModel(
ModelSaveContext
ctx)
SsaForecastingBase.cs (4)
66
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
68
private protected virtual void SaveModel(
ModelSaveContext
ctx) => InternalTransform.SaveThis(ctx);
183
private protected override void SaveModel(
ModelSaveContext
ctx)
188
internal void SaveThis(
ModelSaveContext
ctx)
SsaSpikeDetector.cs (1)
162
private protected override void SaveModel(
ModelSaveContext
ctx)
Microsoft.ML.TorchSharp (16)
AutoFormerV2\ObjectDetectionTrainer.cs (3)
594
private protected override void SaveModel(
ModelSaveContext
ctx)
634
private void SaveLabelValues<T>(
ModelSaveContext
ctx)
983
private protected override void SaveModel(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
NasBert\NasBertTrainer.cs (3)
474
private protected abstract override void SaveModel(
ModelSaveContext
ctx);
477
private protected new void SaveBaseModel(
ModelSaveContext
ctx, VersionInfo versionInfo)
624
private protected override void SaveModel(
ModelSaveContext
ctx) => Parent.SaveModel(ctx);
NasBert\NerTrainer.cs (2)
267
private protected override void SaveModel(
ModelSaveContext
ctx)
285
private void SaveLabelValues<T>(
ModelSaveContext
ctx)
NasBert\SentenceSimilarityTrainer.cs (1)
198
private protected override void SaveModel(
ModelSaveContext
ctx)
NasBert\TextClassificationTrainer.cs (2)
203
private protected override void SaveModel(
ModelSaveContext
ctx)
221
private void SaveLabelValues<T>(
ModelSaveContext
ctx)
Roberta\QATrainer.cs (2)
641
private protected override void SaveModel(
ModelSaveContext
ctx)
937
private protected override void SaveModel(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
TorchSharpBaseTrainer.cs (3)
414
private protected abstract override void SaveModel(
ModelSaveContext
ctx);
416
private protected void SaveBaseModel(
ModelSaveContext
ctx, VersionInfo versionInfo)
551
private protected override void SaveModel(
ModelSaveContext
ctx) => Parent.SaveModel(ctx);
Microsoft.ML.Transforms (61)
CustomMappingTransformer.cs (3)
66
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
68
internal void SaveModel(
ModelSaveContext
ctx)
195
void ICanSaveModel.Save(
ModelSaveContext
ctx)
Dracula\CMCountTable.cs (1)
111
public override void Save(
ModelSaveContext
ctx)
Dracula\CountTable.cs (1)
115
public virtual void Save(
ModelSaveContext
ctx)
Dracula\CountTableTransformer.cs (1)
557
private protected override void SaveModel(
ModelSaveContext
ctx)
Dracula\CountTargetEncodingTransformer.cs (1)
352
public void Save(
ModelSaveContext
ctx)
Dracula\DictCountTable.cs (1)
91
public override void Save(
ModelSaveContext
ctx)
Dracula\Featurizer.cs (1)
96
public void Save(
ModelSaveContext
ctx)
Dracula\MultiCountTable.cs (3)
50
public abstract void Save(
ModelSaveContext
ctx);
169
public override void Save(
ModelSaveContext
ctx)
326
public override void Save(
ModelSaveContext
ctx)
ExpressionTransformer.cs (2)
384
private protected override void SaveModel(
ModelSaveContext
ctx)
989
private protected override void SaveModel(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
FourierDistributionSampler.cs (2)
171
void ICanSaveModel.Save(
ModelSaveContext
ctx)
294
void ICanSaveModel.Save(
ModelSaveContext
ctx)
GcnTransform.cs (2)
298
private protected override void SaveModel(
ModelSaveContext
ctx)
858
internal void Save(
ModelSaveContext
ctx)
GroupTransform.cs (2)
139
private protected override void SaveModel(
ModelSaveContext
ctx)
307
internal void Save(
ModelSaveContext
ctx)
HashJoiningTransform.cs (1)
289
private protected override void SaveModel(
ModelSaveContext
ctx)
KeyToVectorMapping.cs (1)
84
private protected override void SaveModel(
ModelSaveContext
ctx)
LambdaTransform.cs (1)
43
internal static void SaveCustomTransformer(IExceptionContext ectx,
ModelSaveContext
ctx, string contractName, string contractAssembly)
MissingValueDroppingTransformer.cs (1)
162
private protected override void SaveModel(
ModelSaveContext
ctx)
MissingValueIndicatorTransform.cs (1)
117
private protected override void SaveModel(
ModelSaveContext
ctx)
MissingValueIndicatorTransformer.cs (1)
134
private protected override void SaveModel(
ModelSaveContext
ctx)
MissingValueReplacing.cs (1)
495
private protected override void SaveModel(
ModelSaveContext
ctx)
OneHotEncoding.cs (1)
139
void ICanSaveModel.Save(
ModelSaveContext
ctx) => (_transformer as ICanSaveModel).Save(ctx);
OneHotHashEncoding.cs (1)
188
void ICanSaveModel.Save(
ModelSaveContext
ctx) => (_transformer as ICanSaveModel).Save(ctx);
OptionalColumnTransform.cs (2)
132
public void Save(IHostEnvironment env,
ModelSaveContext
ctx)
304
private protected override void SaveModel(
ModelSaveContext
ctx)
ProduceIdTransform.cs (2)
62
internal void Save(
ModelSaveContext
ctx)
129
private protected override void SaveModel(
ModelSaveContext
ctx)
RandomFourierFeaturizing.cs (2)
163
internal void Save(
ModelSaveContext
ctx, string directoryName)
453
private protected override void SaveModel(
ModelSaveContext
ctx)
StatefulCustomMappingTransformer.cs (3)
64
void ICanSaveModel.Save(
ModelSaveContext
ctx) => SaveModel(ctx);
66
internal void SaveModel(
ModelSaveContext
ctx)
258
private protected override void SaveModel(
ModelSaveContext
ctx)
SvmLight\SvmLightLoader.cs (2)
621
void ICanSaveModel.Save(
ModelSaveContext
ctx)
795
void ICanSaveModel.Save(
ModelSaveContext
ctx)
Text\LdaTransform.cs (4)
373
internal void Save(
ModelSaveContext
ctx)
754
private protected override void SaveModel(
ModelSaveContext
ctx)
776
private void SaveTopicWordSummary(
ModelSaveContext
ctx, int i)
1285
internal void Save(
ModelSaveContext
ctx)
Text\NgramHashingTransformer.cs (3)
254
private protected override void SaveModel(
ModelSaveContext
ctx)
603
private protected override void SaveModel(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
1048
internal void Save(
ModelSaveContext
ctx)
Text\NgramTransform.cs (2)
164
internal void Save(
ModelSaveContext
ctx)
453
private protected override void SaveModel(
ModelSaveContext
ctx)
Text\StopWordsRemovingTransformer.cs (3)
205
private protected override void SaveModel(
ModelSaveContext
ctx)
520
private protected override void SaveModel(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
936
private protected override void SaveModel(
ModelSaveContext
ctx)
Text\TextFeaturizingEstimator.cs (1)
708
void ICanSaveModel.Save(
ModelSaveContext
ctx)
Text\TextNormalizing.cs (1)
123
private protected override void SaveModel(
ModelSaveContext
ctx)
Text\TokenizingByCharacters.cs (1)
141
private protected override void SaveModel(
ModelSaveContext
ctx)
Text\WordBagTransform.cs (2)
267
private protected override void SaveModel(
ModelSaveContext
ctx)
340
private protected override void SaveModel(
ModelSaveContext
ctx)
Text\WordEmbeddingsExtractor.cs (1)
285
private protected override void SaveModel(
ModelSaveContext
ctx)
Text\WordTokenizing.cs (1)
150
private protected override void SaveModel(
ModelSaveContext
ctx)
UngroupTransform.cs (2)
140
private protected override void SaveModel(
ModelSaveContext
ctx)
367
internal void Save(
ModelSaveContext
ctx)
Microsoft.ML.Vision (3)
DnnRetrainTransform.cs (2)
671
private protected override void SaveModel(
ModelSaveContext
ctx)
843
private protected override void SaveModel(
ModelSaveContext
ctx) => _parent.SaveModel(ctx);
ImageClassificationTrainer.cs (1)
1435
private protected override void SaveCore(
ModelSaveContext
ctx)