9 instantiations of ColumnCopyingTransformer
Microsoft.ML.Data (9)
Evaluators\AnomalyDetectionEvaluator.cs (1)
772overall = new ColumnCopyingTransformer(Host, cols).Transform(overall);
Evaluators\BinaryClassifierEvaluator.cs (1)
1389fold = new ColumnCopyingTransformer(Host, cols).Transform(fold);
Evaluators\MamlEvaluator.cs (1)
264idv = new ColumnCopyingTransformer(Host, cols.ToArray()).Transform(idv);
Evaluators\MulticlassClassificationEvaluator.cs (2)
1001input = new ColumnCopyingTransformer(Host, (string.Format(TopKAccuracyFormat, _outputTopKAcc), MulticlassClassificationEvaluator.TopKAccuracy)).Transform(input); 1007input = new ColumnCopyingTransformer(Host, (TopKAccuracyFormat, MulticlassClassificationEvaluator.AllTopKAccuracy)).Transform(input);
Transforms\ColumnCopying.cs (3)
64: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(ColumnCopyingEstimator)), new ColumnCopyingTransformer(env, columns)) 152var transformer = new ColumnCopyingTransformer(env, options.Columns.Select(x => (x.Name, x.Source)).ToArray()); 176return new ColumnCopyingTransformer(env, columns);
Transforms\ValueMapping.cs (1)
1003var view = new ColumnCopyingTransformer(host, cols.ToArray()).Transform(lookup);
56 references to ColumnCopyingTransformer
Microsoft.ML.Data (27)
EntryPoints\SchemaManipulation.cs (4)
41[TlcModule.EntryPoint(Name = "Transforms.ColumnCopier", Desc = "Duplicates columns from the dataset", UserName = ColumnCopyingTransformer.UserName, ShortName = ColumnCopyingTransformer.ShortName)] 42public static CommonOutputs.TransformOutput CopyColumns(IHostEnvironment env, ColumnCopyingTransformer.Options input) 48var xf = ColumnCopyingTransformer.Create(env, input, input.Data);
Transforms\ColumnCopying.cs (23)
17[assembly: LoadableClass(ColumnCopyingTransformer.Summary, typeof(IDataTransform), typeof(ColumnCopyingTransformer), 18typeof(ColumnCopyingTransformer.Options), typeof(SignatureDataTransform), 19ColumnCopyingTransformer.UserName, "CopyColumns", "CopyColumnsTransform", ColumnCopyingTransformer.ShortName, 22[assembly: LoadableClass(ColumnCopyingTransformer.Summary, typeof(IDataTransform), typeof(ColumnCopyingTransformer), null, typeof(SignatureLoadDataTransform), 23ColumnCopyingTransformer.UserName, ColumnCopyingTransformer.LoaderSignature)] 25[assembly: LoadableClass(ColumnCopyingTransformer.Summary, typeof(ColumnCopyingTransformer), null, typeof(SignatureLoadModel), 26ColumnCopyingTransformer.UserName, ColumnCopyingTransformer.LoaderSignature)] 28[assembly: LoadableClass(typeof(IRowMapper), typeof(ColumnCopyingTransformer), null, typeof(SignatureLoadRowMapper), 29ColumnCopyingTransformer.UserName, ColumnCopyingTransformer.LoaderSignature)] 34/// <see cref="IEstimator{TTransformer}"/> for the <see cref="ColumnCopyingTransformer"/>. 54public sealed class ColumnCopyingEstimator : TrivialEstimator<ColumnCopyingTransformer> 112loaderAssemblyName: typeof(ColumnCopyingTransformer).Assembly.FullName); 116: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(ColumnCopyingTransformer)), columns) 152var transformer = new ColumnCopyingTransformer(env, options.Columns.Select(x => (x.Name, x.Source)).ToArray()); 157private static ColumnCopyingTransformer Create(IHostEnvironment env, ModelLoadContext ctx) 206internal Mapper(ColumnCopyingTransformer parent, DataViewSchema inputSchema, (string outputColumnName, string inputColumnName)[] columns)
Microsoft.ML.DnnImageFeaturizer.AlexNet (3)
AlexNetExtension.cs (3)
26public static EstimatorChain<ColumnCopyingTransformer> AlexNet(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName) 37public static EstimatorChain<ColumnCopyingTransformer> AlexNet(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName, string modelDir) 39var modelChain = new EstimatorChain<ColumnCopyingTransformer>();
Microsoft.ML.DnnImageFeaturizer.ResNet101 (3)
ResNet101Extension.cs (3)
26public static EstimatorChain<ColumnCopyingTransformer> ResNet101(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName) 37public static EstimatorChain<ColumnCopyingTransformer> ResNet101(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName, string modelDir) 39var modelChain = new EstimatorChain<ColumnCopyingTransformer>();
Microsoft.ML.DnnImageFeaturizer.ResNet18 (3)
ResNet18Extension.cs (3)
26public static EstimatorChain<ColumnCopyingTransformer> ResNet18(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName) 37public static EstimatorChain<ColumnCopyingTransformer> ResNet18(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName, string modelDir) 39var modelChain = new EstimatorChain<ColumnCopyingTransformer>();
Microsoft.ML.DnnImageFeaturizer.ResNet50 (3)
ResNet50Extension.cs (3)
26public static EstimatorChain<ColumnCopyingTransformer> ResNet50(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName) 37public static EstimatorChain<ColumnCopyingTransformer> ResNet50(this DnnImageModelSelector dnnModelContext, IHostEnvironment env, string outputColumnName, string inputColumnName, string modelDir) 39var modelChain = new EstimatorChain<ColumnCopyingTransformer>();
Microsoft.ML.OnnxTransformer (7)
DnnImageFeaturizerTransform.cs (6)
18/// <seealso cref="OnnxCatalog.DnnFeaturizeImage(TransformsCatalog, string, Func{DnnImageFeaturizerInput, EstimatorChain{ColumnCopyingTransformer}}, string)"/> 82/// <seealso cref="OnnxCatalog.DnnFeaturizeImage(TransformsCatalog, string, Func{DnnImageFeaturizerInput, EstimatorChain{ColumnCopyingTransformer}}, string)"/> 83public sealed class DnnImageFeaturizerEstimator : IEstimator<TransformerChain<ColumnCopyingTransformer>> 85private readonly EstimatorChain<ColumnCopyingTransformer> _modelChain; 98internal DnnImageFeaturizerEstimator(IHostEnvironment env, string outputColumnName, Func<DnnImageFeaturizerInput, EstimatorChain<ColumnCopyingTransformer>> modelFactory, string inputColumnName = null) 107public TransformerChain<ColumnCopyingTransformer> Fit(IDataView input)
OnnxCatalog.cs (1)
495Func<DnnImageFeaturizerInput, EstimatorChain<ColumnCopyingTransformer>> modelFactory,
Microsoft.ML.Tests (8)
OnnxConversionTest.cs (2)
1726var mlmodel = mlpipeline.Fit(dataView); 1792var model = pipeline2.Fit(reloadedData);
Transformers\CopyColumnEstimatorTests.cs (6)
51var transformer = est.Fit(dataView); 65var transformer = est.Fit(dataView); 82var transformer = est.Fit(dataView); 100var transformer = est.Fit(dataView); 118var transformer = est.Fit(dataView); 141var transformer = est.Fit(term);
Microsoft.ML.TimeSeries (1)
SlidingWindowTransformBase.cs (1)
72$"If {args.Lag}=0 and {args.WindowSize}=1, the transform just copies the column. Use {ColumnCopyingTransformer.LoaderSignature} transform instead.");
Microsoft.ML.Transforms (1)
Text\SentimentAnalyzingTransform.cs (1)
83var copyTransformer = new ColumnCopyingTransformer(env, (ModelInputColumnName, args.Source));