6 interfaces inheriting from ICanSaveModel
Microsoft.ML.Core (2)
Data\IEstimator.cs (2)
227public interface IDataLoader<in TSource> : ICanSaveModel 267public interface ITransformer : ICanSaveModel
Microsoft.ML.Data (4)
Data\ILegacyDataLoader.cs (2)
57internal interface ILegacyDataLoader : IDataView, ICanSaveModel 99internal interface IDataTransform : IDataView, ICanSaveModel
DataView\RowToRowMapperTransform.cs (1)
29internal interface IRowMapper : ICanSaveModel
Transforms\NormalizeUtils.cs (1)
58internal interface IColumnFunction : ICanSaveModel
31 implementations of ICanSaveModel
Microsoft.ML.Data (9)
Dirty\ModelParametersBase.cs (1)
14public abstract class ModelParametersBase<TOutput> : ICanSaveModel, IPredictorProducing<TOutput>
Prediction\Calibrator.cs (5)
402ValueMapperCalibratedModelParametersBase<TSubModel, TCalibrator>, ICanSaveModel 474ICanSaveModel 550ICanSaveModel 640internal sealed class SchemaBindableCalibratedModelParameters<TSubModel, TCalibrator> : CalibratedModelParametersBase<TSubModel, TCalibrator>, ISchemaBindableMapper, ICanSaveModel, 1676public sealed class PlattCalibrator : ICalibrator, IParameterMixer, ICanSaveModel, ISingleCanSavePfa, ISingleCanSaveOnnx
Scorers\FeatureContributionCalculation.cs (1)
92private sealed class BindableMapper : ISchemaBindableMapper, ICanSaveModel, IPredictor
Scorers\MulticlassClassificationScorer.cs (1)
67public sealed class LabelNameBindableMapper : ISchemaBindableMapper, ICanSaveModel, IBindableCanSavePfa,
Scorers\SchemaBindablePredictorWrapper.cs (1)
34internal abstract class SchemaBindablePredictorWrapperBase : ISchemaBindableMapper, ICanSaveModel, ICanSaveSummary,
Microsoft.ML.Ensemble (6)
OutputCombiners\BaseAverager.cs (1)
10internal abstract class BaseAverager : IBinaryOutputCombiner, ICanSaveModel
OutputCombiners\BaseMultiCombiner.cs (1)
14internal abstract class BaseMultiCombiner : IMulticlassOutputCombiner, ICanSaveModel
OutputCombiners\BaseStacking.cs (1)
16internal abstract class BaseStacking<TOutput> : IStackingTrainer<TOutput>, ICanSaveModel
OutputCombiners\Median.cs (1)
19internal sealed class Median : IRegressionOutputCombiner, IBinaryOutputCombiner, ICanSaveModel
OutputCombiners\Voting.cs (1)
16internal sealed class Voting : IBinaryOutputCombiner, ICanSaveModel
PipelineEnsemble.cs (1)
29internal abstract class SchemaBindablePipelineEnsembleBase : ICanGetTrainingLabelNames, ICanSaveModel,
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizer.cs (1)
45internal sealed class TreeEnsembleFeaturizerBindableMapper : ISchemaBindableMapper, ICanSaveModel
Microsoft.ML.Parquet (2)
PartitionedPathParser.cs (2)
69internal sealed class SimplePartitionedPathParser : IPartitionedPathParser, ICanSaveModel 205internal sealed class ParquetPartitionedPathParser : IPartitionedPathParser, ICanSaveModel
Microsoft.ML.Recommender (1)
MatrixFactorizationPredictor.cs (1)
35public sealed class MatrixFactorizationModelParameters : IPredictor, ICanSaveModel, ICanSaveInTextFormat, ISchemaBindableMapper
Microsoft.ML.StandardTrainers (2)
LdSvm\LdSvmModelParameters.cs (1)
20ICanSaveModel
Standard\ModelStatistics.cs (1)
74public class ModelStatisticsBase : ICanSaveModel
Microsoft.ML.TimeSeries (5)
IidAnomalyDetectionBase.cs (1)
17public class IidAnomalyDetectionBaseWrapper : IStatefulTransformer, ICanSaveModel
SequenceModelerBase.cs (1)
24internal abstract class SequenceModelerBase<TInput, TOutput> : ICanSaveModel
SrCnnAnomalyDetectionBase.cs (1)
15public class SrCnnAnomalyDetectionBase : IStatefulTransformer, ICanSaveModel
SsaAnomalyDetectionBase.cs (1)
86public class SsaAnomalyDetectionBaseWrapper : IStatefulTransformer, ICanSaveModel
SsaForecastingBase.cs (1)
19public class SsaForecastingBaseWrapper : IStatefulTransformer, ICanSaveModel
Microsoft.ML.Transforms (5)
Dracula\CountTable.cs (1)
34internal abstract class CountTableBase : ICountTable, ICanSaveModel
Dracula\Featurizer.cs (1)
18internal sealed class CountTargetEncodingFeaturizer : ICanSaveModel
Dracula\MultiCountTable.cs (1)
36internal abstract class MultiCountTableBase : ICanSaveModel
FourierDistributionSampler.cs (2)
123internal sealed class RandomNumberGenerator : FourierRandomNumberGeneratorBase, ICanSaveModel 244internal sealed class RandomNumberGenerator : FourierRandomNumberGeneratorBase, ICanSaveModel
85 references to ICanSaveModel
Microsoft.ML.Core (9)
Data\ModelLoading.cs (1)
15/// Signature for a repository based model loader. This is the dual of <see cref="ICanSaveModel"/>.
Data\ModelSaveContext.cs (3)
15/// implementors of <see cref="ICanSaveModel"/>. 18/// This class reduces the amount of boiler plate code needed to implement <see cref="ICanSaveModel"/>. 83/// Create a <see cref="ModelSaveContext"/> supporting saving to a repository, for implementors of <see cref="ICanSaveModel"/>.
Data\ModelSaving.cs (2)
35var sm = value as ICanSaveModel;
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)"/> 31/// saving more comprehensive and composable "model" objects, via <see cref="ICanSaveModel"/>.
Microsoft.ML.Data (35)
DataLoadSave\Binary\BinaryLoader.cs (1)
940void ICanSaveModel.Save(ModelSaveContext ctx)
DataLoadSave\CompositeDataLoader.cs (1)
91void ICanSaveModel.Save(ModelSaveContext ctx)
DataLoadSave\Database\DatabaseLoader.cs (1)
80void ICanSaveModel.Save(ModelSaveContext ctx)
DataLoadSave\LegacyCompositeDataLoader.cs (1)
503void ICanSaveModel.Save(ModelSaveContext ctx)
DataLoadSave\Text\TextLoader.cs (3)
1500void ICanSaveModel.Save(ModelSaveContext ctx) 1676void ICanSaveModel.Save(ModelSaveContext ctx) => ((ICanSaveModel)_loader).Save(ctx);
DataLoadSave\TransformerChain.cs (2)
187void ICanSaveModel.Save(ModelSaveContext ctx) 203/// The loading constructor of transformer chain. Reverse of <see cref="ICanSaveModel.Save"/>.
DataLoadSave\TransformWrapper.cs (1)
43void ICanSaveModel.Save(ModelSaveContext ctx) => throw _host.Except("Saving is not permitted.");
DataLoadSave\Transpose\TransposeLoader.cs (1)
518void ICanSaveModel.Save(ModelSaveContext ctx)
Dirty\ModelParametersBase.cs (1)
48void ICanSaveModel.Save(ModelSaveContext ctx) => Save(ctx);
Evaluators\EvaluatorBase.cs (2)
510void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx); 513/// Derived class, for example A, should overwrite <see cref="SaveModel"/> so that ((<see cref="ICanSaveModel"/>)A).Save(ctx) can correctly dump A.
Evaluators\RankingEvaluator.cs (2)
610void ICanSaveModel.Save(ModelSaveContext ctx) 614((ICanSaveModel)_transform).Save(ctx);
Prediction\Calibrator.cs (5)
460void ICanSaveModel.Save(ModelSaveContext ctx) 527void ICanSaveModel.Save(ModelSaveContext ctx) 604void ICanSaveModel.Save(ModelSaveContext ctx) 773void ICanSaveModel.Save(ModelSaveContext ctx) 1739void ICanSaveModel.Save(ModelSaveContext ctx)
Scorers\FeatureContributionCalculation.cs (1)
170void ICanSaveModel.Save(ModelSaveContext ctx)
Scorers\MulticlassClassificationScorer.cs (1)
176void ICanSaveModel.Save(ModelSaveContext ctx)
Scorers\PredictionTransformer.cs (1)
163void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx);
Scorers\SchemaBindablePredictorWrapper.cs (1)
81void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx);
Transforms\ColumnSelecting.cs (2)
443void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx); 711void ICanSaveModel.Save(ModelSaveContext ctx) => _transform.SaveModel(ctx);
Transforms\NopTransform.cs (1)
92void ICanSaveModel.Save(ModelSaveContext ctx)
Transforms\NormalizeColumn.cs (3)
416void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx); 534void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx); 665void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx);
Transforms\PerGroupTransformBase.cs (1)
134void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx);
Transforms\RowToRowTransformerBase.cs (2)
25void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx); 115void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx);
Transforms\TransformBase.cs (1)
46void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx);
Microsoft.ML.Ensemble (6)
OutputCombiners\BaseAverager.cs (1)
33void ICanSaveModel.Save(ModelSaveContext ctx)
OutputCombiners\BaseMultiCombiner.cs (1)
52void ICanSaveModel.Save(ModelSaveContext ctx)
OutputCombiners\BaseStacking.cs (1)
68void ICanSaveModel.Save(ModelSaveContext ctx)
OutputCombiners\Median.cs (1)
62void ICanSaveModel.Save(ModelSaveContext ctx)
OutputCombiners\Voting.cs (1)
60void ICanSaveModel.Save(ModelSaveContext ctx)
PipelineEnsemble.cs (1)
484void ICanSaveModel.Save(ModelSaveContext ctx)
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizer.cs (1)
443void ICanSaveModel.Save(ModelSaveContext 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.Recommender (1)
MatrixFactorizationPredictor.cs (1)
166void ICanSaveModel.Save(ModelSaveContext ctx)
Microsoft.ML.StandardTrainers (1)
Standard\ModelStatistics.cs (1)
128void ICanSaveModel.Save(ModelSaveContext ctx)
Microsoft.ML.TimeSeries (15)
IidAnomalyDetectionBase.cs (2)
64void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx); 135((ICanSaveModel)Parent).Save(ctx);
SequenceModelerBase.cs (2)
75/// Implementation of <see cref="ICanSaveModel.Save(ModelSaveContext)"/>. 77void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx);
SequentialAnomalyDetectionTransformBase.cs (1)
350void ICanSaveModel.Save(ModelSaveContext ctx) => _parent.SaveModel(ctx);
SequentialForecastingTransformBase.cs (1)
154void ICanSaveModel.Save(ModelSaveContext ctx) => _parent.SaveModel(ctx);
SequentialTransformerBase.cs (2)
415void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx); 587(_parent as ICanSaveModel).Save(ctx);
SrCnnAnomalyDetectionBase.cs (2)
60void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx); 126((ICanSaveModel)Parent).Save(ctx);
SrCnnTransformBase.cs (1)
193void ICanSaveModel.Save(ModelSaveContext ctx) => _parent.SaveModel(ctx);
SsaAnomalyDetectionBase.cs (2)
133void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx); 261((ICanSaveModel)Parent).Save(ctx);
SsaForecastingBase.cs (2)
66void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx); 185((ICanSaveModel)Parent).Save(ctx);
Microsoft.ML.Transforms (13)
CustomMappingTransformer.cs (2)
66void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx); 195void ICanSaveModel.Save(ModelSaveContext ctx)
FourierDistributionSampler.cs (2)
171void ICanSaveModel.Save(ModelSaveContext ctx) 294void ICanSaveModel.Save(ModelSaveContext ctx)
OneHotEncoding.cs (2)
139void ICanSaveModel.Save(ModelSaveContext ctx) => (_transformer as ICanSaveModel).Save(ctx);
OneHotHashEncoding.cs (2)
188void ICanSaveModel.Save(ModelSaveContext ctx) => (_transformer as ICanSaveModel).Save(ctx);
StatefulCustomMappingTransformer.cs (1)
64void ICanSaveModel.Save(ModelSaveContext ctx) => SaveModel(ctx);
SvmLight\SvmLightLoader.cs (3)
621void ICanSaveModel.Save(ModelSaveContext ctx) 795void ICanSaveModel.Save(ModelSaveContext ctx) 797((ICanSaveModel)_loader).Save(ctx);
Text\TextFeaturizingEstimator.cs (1)
708void ICanSaveModel.Save(ModelSaveContext ctx)