4 instantiations of TypeConvertingTransformer
Microsoft.ML.Data (4)
DataLoadSave\DataOperationsCatalog.cs (1)
566
data = new
TypeConvertingTransformer
(env, splitColumnName, DataKind.Int64, samplingKeyColumn).Transform(data);
Transforms\TypeConverting.cs (3)
247
return new
TypeConvertingTransformer
(host, ctx);
340
return new
TypeConvertingTransformer
(env, cols).MakeDataTransform(input);
614
base(Contracts.CheckRef(env, nameof(env)).Register(nameof(TypeConvertingEstimator)), new
TypeConvertingTransformer
(env, columns))
39 references to TypeConvertingTransformer
Microsoft.ML.Data (32)
Transforms\TypeConverting.cs (32)
18
[assembly: LoadableClass(
TypeConvertingTransformer
.Summary, typeof(IDataTransform), typeof(
TypeConvertingTransformer
), typeof(
TypeConvertingTransformer
.Options), typeof(SignatureDataTransform),
19
TypeConvertingTransformer
.UserName,
TypeConvertingTransformer
.ShortName, "ConvertTransform", DocName = "transform/ConvertTransform.md")]
21
[assembly: LoadableClass(
TypeConvertingTransformer
.Summary, typeof(IDataTransform), typeof(
TypeConvertingTransformer
), null, typeof(SignatureLoadDataTransform),
22
TypeConvertingTransformer
.UserName,
TypeConvertingTransformer
.LoaderSignature,
TypeConvertingTransformer
.LoaderSignatureOld)]
24
[assembly: LoadableClass(
TypeConvertingTransformer
.Summary, typeof(
TypeConvertingTransformer
), null, typeof(SignatureLoadModel),
25
TypeConvertingTransformer
.UserName,
TypeConvertingTransformer
.LoaderSignature)]
27
[assembly: LoadableClass(
TypeConvertingTransformer
.Summary, typeof(IRowMapper), typeof(
TypeConvertingTransformer
), null, typeof(SignatureLoadRowMapper),
28
TypeConvertingTransformer
.UserName,
TypeConvertingTransformer
.LoaderSignature)]
36
[TlcModule.EntryPoint(Name = "Transforms.ColumnTypeConverter", Desc =
TypeConvertingTransformer
.Summary, UserName =
TypeConvertingTransformer
.UserName, ShortName =
TypeConvertingTransformer
.ShortName)]
37
public static CommonOutputs.TransformOutput Convert(IHostEnvironment env,
TypeConvertingTransformer
.Options input)
43
var view =
TypeConvertingTransformer
.Create(h, input, input.Data);
163
loaderAssemblyName: typeof(
TypeConvertingTransformer
).Assembly.FullName);
198
/// Create a <see cref="
TypeConvertingTransformer
"/> that takes multiple pairs of columns.
201
: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(
TypeConvertingTransformer
)), GetColumnPairs(columns))
236
private static
TypeConvertingTransformer
Create(IHostEnvironment env, ModelLoadContext ctx)
386
private readonly
TypeConvertingTransformer
_parent;
392
public Mapper(
TypeConvertingTransformer
parent, DataViewSchema inputSchema)
513
/// Estimator for <see cref="
TypeConvertingTransformer
"/>. Converts the underlying input column type to a new type.
533
public sealed class TypeConvertingEstimator : TrivialEstimator<
TypeConvertingTransformer
>
630
if (!
TypeConvertingTransformer
.GetNewType(Host, col.ItemType, colInfo.OutputKind.ToInternalDataKind(), colInfo.OutputKeyCount, out PrimitiveDataViewType newType))
Microsoft.ML.Samples (2)
Dynamic\Transforms\Conversion\ConvertType.cs (1)
27
var
transformer = pipeline.Fit(data);
Dynamic\Transforms\Conversion\ConvertTypeMultiColumn.cs (1)
50
var
transformer = pipeline.Fit(data);
Microsoft.ML.TestFramework (4)
DataPipe\TestDataPipe.cs (4)
835
var argsConv = new
TypeConvertingTransformer
.Options();
847
view2 =
TypeConvertingTransformer
.Create(Env, argsConv, view2);
849
argsConv = new
TypeConvertingTransformer
.Options();
854
view2 =
TypeConvertingTransformer
.Create(Env, argsConv, view2);
Microsoft.ML.Tests (1)
Transformers\ConvertTests.cs (1)
400
var
modelNew = ML.Transforms.Conversion.ConvertType(new[] { new TypeConvertingEstimator.ColumnOptions("convertedKey",