4 interfaces inheriting from IDataTransform
Microsoft.ML.Data (4)
Commands\ScoreCommand.cs (1)
24internal interface IDataScorerTransform : IDataTransform, ITransformTemplate
Data\ILegacyDataLoader.cs (1)
109internal interface ITransformTemplate : IDataTransform
Model\Onnx\ICanSaveOnnx.cs (1)
40internal interface ITransformCanSaveOnnx : ISaveAsOnnx, IDataTransform
Model\Pfa\ICanSavePfa.cs (1)
44internal interface ITransformCanSavePfa : ISaveAsPfa, IDataTransform
5 implementations of IDataTransform
Microsoft.ML.Data (5)
Evaluators\RankingEvaluator.cs (1)
552internal sealed class RankingPerInstanceTransform : IDataTransform
Transforms\ColumnSelecting.cs (1)
653private sealed class SelectColumnsDataTransform : IDataTransform, IRowToRowMapper, ITransformTemplate, ITransformCanSaveOnnx
Transforms\NopTransform.cs (1)
24internal sealed class NopTransform : IDataTransform, IRowToRowMapper
Transforms\PerGroupTransformBase.cs (1)
21internal abstract class PerGroupTransformBase<TLabel, TScore, TState> : IDataTransform
Transforms\TransformBase.cs (1)
21internal abstract class TransformBase : IDataTransform
180 references to IDataTransform
Microsoft.ML.Data (170)
Commands\CrossValidationCommand.cs (4)
78public KeyValuePair<string, IComponentFactory<IDataView, IDataTransform>>[] PreTransforms; 166new KeyValuePair<string, IComponentFactory<IDataView, IDataTransform>>( 167"", ComponentFactoryUtils.CreateFromFunction<IDataView, IDataTransform>( 561var perInst = eval.GetPerInstanceMetrics(dataEval);
Commands\DataCommand.cs (1)
59public KeyValuePair<string, IComponentFactory<IDataView, IDataTransform>>[] Transforms;
Commands\EvaluateCommand.cs (5)
15[assembly: LoadableClass(EvaluateTransform.Summary, typeof(IDataTransform), typeof(EvaluateTransform), typeof(EvaluateTransform.Arguments), typeof(SignatureDataTransform), 104/// Return an <see cref="IDataTransform"/> containing the per-instance results. 106IDataTransform GetPerInstanceMetrics(RoleMappedData data); 146private static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input) 255var perInst = evaluator.GetPerInstanceMetrics(data);
Commands\ScoreCommand.cs (1)
70public KeyValuePair<string, IComponentFactory<IDataView, IDataTransform>>[] PostTransform;
Commands\ShowSchemaCommand.cs (2)
112var transform = view as IDataTransform;
Commands\TestCommand.cs (1)
134var perInst = evaluator.GetPerInstanceMetrics(data);
Commands\TrainCommand.cs (3)
421private static List<IDataTransform> BacktrackPipe(IDataView dataPipe, out IDataView pipeStart) 425var transforms = new List<IDataTransform>(); 426while (dataPipe is IDataTransform xf)
Commands\TrainTestCommand.cs (1)
224var perInst = evaluator.GetPerInstanceMetrics(dataEval);
Data\ILegacyDataLoader.cs (4)
83/// Signature for creating an <see cref="IDataTransform"/>. 89/// Signature for loading an <see cref="IDataTransform"/>. 95/// Interface for a data transform. An <see cref="IDataTransform"/> can save its model information 113IDataTransform ApplyToData(IHostEnvironment env, IDataView newSource);
DataLoadSave\LegacyCompositeDataLoader.cs (13)
39public KeyValuePair<string, IComponentFactory<IDataView, IDataTransform>>[] Transforms; 46public readonly IDataTransform Transform; 48public TransformEx(string tag, string argsString, IDataTransform transform) 113params KeyValuePair<string, IComponentFactory<IDataView, IDataTransform>>[] transformArgs) 124KeyValuePair<string, IComponentFactory<IDataView, IDataTransform>>[] transformArgs) 133static string GetTagData(IComponentFactory<IDataView, IDataTransform> factory) 234var cur = curDataView as IDataTransform; 394IDataTransform xf; 395ctx.LoadModel<IDataTransform, SignatureLoadDataTransform>(env, out xf, 496IDataTransform xf; 497ctx.LoadModel<IDataTransform, SignatureLoadDataTransform>(host, out xf, 520public static void SavePipe(IHostEnvironment env, ModelSaveContext ctx, Action<ModelSaveContext> loaderSaveAction, IList<IDataTransform> transforms)
DataLoadSave\TransformWrapper.cs (7)
11/// This is a shim class to present the legacy <see cref="IDataTransform"/> interface as an <see cref="ITransformer"/>. 13/// would be gradual removal of this as we do away with <see cref="IDataTransform"/> based code. 26Contracts.Check(xf is IDataTransform); 38var output = ApplyTransformUtils.ApplyTransformToData(_host, (IDataTransform)_xf, dv); 45public IDataView Transform(IDataView input) => ApplyTransformUtils.ApplyTransformToData(_host, (IDataTransform)_xf, input); 52var transform = ApplyTransformUtils.ApplyTransformToData(_host, (IDataTransform)_xf, new EmptyDataView(_host, inputSchema)) as IRowToRowMapper;
DataView\RowToRowMapperTransform.cs (3)
269IDataTransform ITransformTemplate.ApplyToData(IHostEnvironment env, IDataView newSource) 291IDataTransform newData; 292ModelLoadContext.LoadModel<IDataTransform, SignatureLoadDataTransform>(env,
EntryPoints\SchemaManipulation.cs (2)
25var xf = ColumnConcatenatingTransformer.Create(env, input, input.Data); 48var xf = ColumnCopyingTransformer.Create(env, input, input.Data);
EntryPoints\TransformModelImpl.cs (13)
84public TransformModelImpl(IHostEnvironment env, DataViewSchema schemaRoot, IDataTransform[] xfs) 95foreach (var xf in xfs) 122var xf = view as IDataTransform; 216var transform = chain as IDataTransform; 221transform = transform.Source as IDataTransform; 233var transform = _chain as IDataTransform; 240transform = transform.Source as IDataTransform; 257var transform = _chain as IDataTransform; 266transform = transform.Source as IDataTransform;
Evaluators\AnomalyDetectionEvaluator.cs (2)
112internal override IDataTransform GetPerInstanceMetricsCore(RoleMappedData data) 831var perInstanceMetrics = evaluator.GetPerInstanceMetrics(data);
Evaluators\BinaryClassifierEvaluator.cs (1)
1520var perInstanceMetrics = evaluator.GetPerInstanceMetrics(data);
Evaluators\ClusteringEvaluator.cs (1)
876var perInstanceMetrics = evaluator.GetPerInstanceMetrics(data);
Evaluators\EvaluatorBase.cs (3)
220IDataTransform IEvaluator.GetPerInstanceMetrics(RoleMappedData data) => GetPerInstanceMetricsCore(data); 223internal abstract IDataTransform GetPerInstanceMetricsCore(RoleMappedData data); 457internal override IDataTransform GetPerInstanceMetricsCore(RoleMappedData data)
Evaluators\MamlEvaluator.cs (1)
218IDataTransform IEvaluator.GetPerInstanceMetrics(RoleMappedData scoredData)
Evaluators\MulticlassClassificationEvaluator.cs (1)
1105var perInstanceMetrics = evaluator.GetPerInstanceMetrics(data);
Evaluators\MultiOutputRegressionEvaluator.cs (1)
791var perInstanceMetrics = evaluator.GetPerInstanceMetrics(data);
Evaluators\QuantileRegressionEvaluator.cs (1)
576var perInstanceMetrics = evaluator.GetPerInstanceMetrics(data);
Evaluators\RankingEvaluator.cs (2)
134internal override IDataTransform GetPerInstanceMetricsCore(RoleMappedData data) 1102var perInstanceMetrics = evaluator.GetPerInstanceMetrics(data);
Evaluators\RegressionEvaluator.cs (1)
403var perInstanceMetrics = evaluator.GetPerInstanceMetrics(data);
Model\Pfa\SavePfaCommand.cs (3)
105IDataTransform transform = source as IDataTransform; 116transform = (source = transform.Source) as IDataTransform;
Scorers\BinaryClassifierScorer.cs (1)
224private protected override IDataTransform ApplyToDataCore(IHostEnvironment env, IDataView newSource)
Scorers\ClusteringScorer.cs (1)
85private protected override IDataTransform ApplyToDataCore(IHostEnvironment env, IDataView newSource)
Scorers\GenericScorer.cs (1)
257private protected override IDataTransform ApplyToDataCore(IHostEnvironment env, IDataView newSource)
Scorers\MulticlassClassificationScorer.cs (1)
554private protected override IDataTransform ApplyToDataCore(IHostEnvironment env, IDataView newSource)
Scorers\RowToRowScorerBase.cs (2)
69private protected abstract IDataTransform ApplyToDataCore(IHostEnvironment env, IDataView newSource); 71IDataTransform ITransformTemplate.ApplyToData(IHostEnvironment env, IDataView newSource)
Transforms\ColumnConcatenatingTransformer.cs (5)
19[assembly: LoadableClass(ColumnConcatenatingTransformer.Summary, typeof(IDataTransform), typeof(ColumnConcatenatingTransformer), typeof(ColumnConcatenatingTransformer.TaggedOptions), typeof(SignatureDataTransform), 22[assembly: LoadableClass(ColumnConcatenatingTransformer.Summary, typeof(IDataTransform), typeof(ColumnConcatenatingTransformer), null, typeof(SignatureLoadDataTransform), 369internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 389internal static IDataTransform Create(IHostEnvironment env, TaggedOptions options, IDataView input) 411private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Transforms\ColumnCopying.cs (4)
17[assembly: LoadableClass(ColumnCopyingTransformer.Summary, typeof(IDataTransform), typeof(ColumnCopyingTransformer), 22[assembly: LoadableClass(ColumnCopyingTransformer.Summary, typeof(IDataTransform), typeof(ColumnCopyingTransformer), null, typeof(SignatureLoadDataTransform), 147internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 180private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Transforms\ColumnSelecting.cs (3)
16[assembly: LoadableClass(ColumnSelectingTransformer.Summary, typeof(IDataTransform), typeof(ColumnSelectingTransformer), 434private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 728IDataTransform ITransformTemplate.ApplyToData(IHostEnvironment env, IDataView newSource)
Transforms\Hashing.cs (4)
18[assembly: LoadableClass(HashingTransformer.Summary, typeof(IDataTransform), typeof(HashingTransformer), typeof(HashingTransformer.Options), typeof(SignatureDataTransform), 21[assembly: LoadableClass(HashingTransformer.Summary, typeof(IDataTransform), typeof(HashingTransformer), null, typeof(SignatureLoadDataTransform), 319private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 327private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input)
Transforms\KeyToValue.cs (4)
20[assembly: LoadableClass(typeof(IDataTransform), typeof(KeyToValueMappingTransformer), typeof(KeyToValueMappingTransformer.Options), typeof(SignatureDataTransform), 23[assembly: LoadableClass(typeof(IDataTransform), typeof(KeyToValueMappingTransformer), null, typeof(SignatureLoadDataTransform), 102internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 133private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Transforms\KeyToVector.cs (4)
19[assembly: LoadableClass(KeyToVectorMappingTransformer.Summary, typeof(IDataTransform), typeof(KeyToVectorMappingTransformer), typeof(KeyToVectorMappingTransformer.Options), typeof(SignatureDataTransform), 22[assembly: LoadableClass(KeyToVectorMappingTransformer.Summary, typeof(IDataTransform), typeof(KeyToVectorMappingTransformer), null, typeof(SignatureLoadDataTransform), 193private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 214private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Transforms\NopTransform.cs (4)
36public static IDataTransform CreateIfNeeded(IHostEnvironment env, IDataView input) 38var dt = input as IDataTransform; 152var xf = CreateIfNeeded(host, input.Data);
Transforms\NormalizeColumn.cs (11)
20[assembly: LoadableClass(NormalizeTransform.MinMaxNormalizerSummary, typeof(IDataTransform), typeof(NormalizeTransform), typeof(NormalizeTransform.MinMaxArguments), typeof(SignatureDataTransform), 23[assembly: LoadableClass(NormalizeTransform.MeanVarNormalizerSummary, typeof(IDataTransform), typeof(NormalizeTransform), typeof(NormalizeTransform.MeanVarArguments), typeof(SignatureDataTransform), 26[assembly: LoadableClass(NormalizeTransform.LogMeanVarNormalizerSummary, typeof(IDataTransform), typeof(NormalizeTransform), typeof(NormalizeTransform.LogMeanVarArguments), typeof(SignatureDataTransform), 29[assembly: LoadableClass(NormalizeTransform.BinNormalizerSummary, typeof(IDataTransform), typeof(NormalizeTransform), typeof(NormalizeTransform.BinArguments), typeof(SignatureDataTransform), 32[assembly: LoadableClass(NormalizeTransform.RobustScalingNormalizerSummary, typeof(IDataTransform), typeof(NormalizeTransform), typeof(NormalizeTransform.RobustScalingArguments), typeof(SignatureDataTransform), 47/// The normalize transform for support of normalization via the <see cref="IDataTransform"/> mechanism. 307internal static IDataTransform Create(IHostEnvironment env, MinMaxArguments args, IDataView input) 325internal static IDataTransform Create(IHostEnvironment env, MeanVarArguments args, IDataView input) 345internal static IDataTransform Create(IHostEnvironment env, LogMeanVarArguments args, IDataView input) 365internal static IDataTransform Create(IHostEnvironment env, BinArguments args, IDataView input) 386internal static IDataTransform Create(IHostEnvironment env, RobustScalingArguments args, IDataView input)
Transforms\Normalizer.cs (3)
25[assembly: LoadableClass(typeof(IDataTransform), typeof(NormalizingTransformer), null, typeof(SignatureLoadDataTransform), 664private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input) 715internal new IDataTransform MakeDataTransform(IDataView input)
Transforms\NormalizeUtils.cs (5)
87var xf = NormalizeTransform.Create(host, input, input.Data); 99var xf = NormalizeTransform.Create(host, input, input.Data); 111var xf = NormalizeTransform.Create(host, input, input.Data); 123var xf = NormalizeTransform.Create(host, input, input.Data); 135var xf = NormalizeTransform.Create(host, input, input.Data);
Transforms\SkipTakeFilter.cs (1)
120IDataTransform ITransformTemplate.ApplyToData(IHostEnvironment env, IDataView newSource)
Transforms\SlotsDroppingTransformer.cs (4)
19[assembly: LoadableClass(SlotsDroppingTransformer.Summary, typeof(IDataTransform), typeof(SlotsDroppingTransformer), typeof(SlotsDroppingTransformer.Options), typeof(SignatureDataTransform), 22[assembly: LoadableClass(SlotsDroppingTransformer.Summary, typeof(IDataTransform), typeof(SlotsDroppingTransformer), null, typeof(SignatureLoadDataTransform), 314private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 321private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Transforms\TrainAndScoreTransformer.cs (8)
14[assembly: LoadableClass(ScoringTransformer.Summary, typeof(IDataTransform), typeof(ScoringTransformer), typeof(ScoringTransformer.Arguments), typeof(SignatureDataTransform), 17[assembly: LoadableClass(TrainAndScoreTransformer.Summary, typeof(IDataTransform), typeof(TrainAndScoreTransformer), 61internal static IDataTransform Create(IHostEnvironment env, 78private static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input) 177internal static IDataTransform Create(IHostEnvironment env, 202private static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input) 214internal static IDataTransform Create(IHostEnvironment env, Arguments args, IDataView input, IComponentFactory<IPredictor, ISchemaBindableMapper> mapperFactory) 226private static IDataTransform Create(IHostEnvironment env, Arguments args, ITrainer trainer, IDataView input, IComponentFactory<IPredictor, ISchemaBindableMapper> mapperFactory)
Transforms\TypeConverting.cs (5)
18[assembly: LoadableClass(TypeConvertingTransformer.Summary, typeof(IDataTransform), typeof(TypeConvertingTransformer), typeof(TypeConvertingTransformer.Options), typeof(SignatureDataTransform), 21[assembly: LoadableClass(TypeConvertingTransformer.Summary, typeof(IDataTransform), typeof(TypeConvertingTransformer), null, typeof(SignatureLoadDataTransform), 43var view = TypeConvertingTransformer.Create(h, input, input.Data); 295internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 344private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Transforms\ValueMapping.cs (4)
19[assembly: LoadableClass(ValueMappingTransformer.Summary, typeof(IDataTransform), typeof(ValueMappingTransformer), 24[assembly: LoadableClass(ValueMappingTransformer.Summary, typeof(IDataTransform), typeof(ValueMappingTransformer), null, typeof(SignatureLoadDataTransform), 602private static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 761private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Transforms\ValueToKeyMappingTransformer.cs (4)
22[assembly: LoadableClass(ValueToKeyMappingTransformer.Summary, typeof(IDataTransform), typeof(ValueToKeyMappingTransformer), 26[assembly: LoadableClass(ValueToKeyMappingTransformer.Summary, typeof(IDataTransform), typeof(ValueToKeyMappingTransformer), null, typeof(SignatureLoadDataTransform), 267internal static IDataTransform Create(IHostEnvironment env, Options options, IDataView input) 363private static IDataTransform Create(IHostEnvironment env, ModelLoadContext ctx, IDataView input)
Utilities\ApplyTransformUtils.cs (9)
26public static IDataTransform ApplyTransformToData(IHostEnvironment env, IDataTransform transform, IDataView newSource) 47IDataTransform newData; 48ModelLoadContext.LoadModel<IDataTransform, SignatureLoadDataTransform>(env, 56/// Walks back the Source chain of the <see cref="IDataTransform"/> up to the <paramref name="oldSource"/> 83var transforms = new List<IDataTransform>(); 84IDataTransform xf; 85while ((xf = chain as IDataTransform) != null) 101foreach (var transform in transforms)
Utilities\ComponentCreation.cs (5)
125public static IDataTransform CreateTransform<TArgs>(this IHostEnvironment env, TArgs arguments, IDataView source) 130return CreateCore<IDataTransform, TArgs, SignatureDataTransform>(env, arguments, source); 136public static IDataTransform CreateTransform(this IHostEnvironment env, string settings, IDataView source) 140Type factoryType = typeof(IComponentFactory<IDataView, IDataTransform>); 141return CreateCore<IDataTransform>(env, factoryType, typeof(SignatureDataTransform), settings, source);
Microsoft.ML.EntryPoints (5)
FeatureCombiner.cs (4)
242var nop = NopTransform.CreateIfNeeded(env, input.Data); 259var xf = ValueToKeyMappingTransformer.Create(host, args, input.Data); 277var nop = NopTransform.CreateIfNeeded(env, input.Data); 299var nop = NopTransform.CreateIfNeeded(env, input.Data);
ScoreColumnSelector.cs (1)
110var newView = NopTransform.CreateIfNeeded(env, input.Data);
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizer.cs (1)
683var scoreXf = TrainAndScoreTransformer.Create(host, trainScoreArgs, labelInput, mapperFactory);
Microsoft.ML.Tests (1)
Transformers\CopyColumnEstimatorTests.cs (1)
136var term = ValueToKeyMappingTransformer.Create(env, new ValueToKeyMappingTransformer.Options()
Microsoft.ML.Transforms (3)
EntryPoints\TextAnalytics.cs (1)
72var xf = ValueToKeyMappingTransformer.Create(h, input, input.Data);
OneHotEncoding.cs (2)
388var xf = ValueToKeyMappingTransformer.Create(host, input, input.Data); 402var xf = KeyToValueMappingTransformer.Create(host, input, input.Data);