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