2 instantiations of ApproximatedKernelMappingEstimator
Microsoft.ML.Transforms (2)
KernelCatalog.cs (2)
47
=> new
ApproximatedKernelMappingEstimator
(CatalogUtils.GetEnvironment(catalog),
58
=> new
ApproximatedKernelMappingEstimator
(CatalogUtils.GetEnvironment(catalog), columns);
31 references to ApproximatedKernelMappingEstimator
Microsoft.ML.Core.Tests (4)
UnitTests\TestEntryPoints.cs (4)
1552
new
ApproximatedKernelMappingEstimator
.ColumnOptions("Features1", 10, false, "Features"),
1553
new
ApproximatedKernelMappingEstimator
.ColumnOptions("Features2", 10, false, "Features"),
2009
new
ApproximatedKernelMappingEstimator
.ColumnOptions("Features1", 10, false, "Features"),
2010
new
ApproximatedKernelMappingEstimator
.ColumnOptions("Features2", 10, false, "Features"),
Microsoft.ML.Samples (1)
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
31
var
approximation = mlContext.Transforms.ApproximatedKernelMap(
Microsoft.ML.Tests (7)
Transformers\RffTests.cs (7)
54
var
pipe = ML.Transforms.ApproximatedKernelMap(new[]{
55
new
ApproximatedKernelMappingEstimator
.ColumnOptions("RffA", 5, false, "A"),
56
new
ApproximatedKernelMappingEstimator
.ColumnOptions("RffB", 10, true, "A", new LaplacianKernel())
72
var
est = ML.Transforms.ApproximatedKernelMap("RffVectorFloat", "VectorFloat", 3, true);
100
var
est = ML.Transforms.ApproximatedKernelMap(new[]{
101
new
ApproximatedKernelMappingEstimator
.ColumnOptions("RffA", 5, false, "A"),
102
new
ApproximatedKernelMappingEstimator
.ColumnOptions("RffB", 10, true, "A", new LaplacianKernel())
Microsoft.ML.Transforms (19)
FourierDistributionSampler.cs (1)
38
/// <seealso cref="
ApproximatedKernelMappingEstimator
"/>.
KernelCatalog.cs (8)
17
/// Create an <see cref="
ApproximatedKernelMappingEstimator
"/> that maps input vectors to a low dimensional
40
public static
ApproximatedKernelMappingEstimator
ApproximatedKernelMap(this TransformsCatalog catalog,
43
int rank =
ApproximatedKernelMappingEstimator
.Defaults.Rank,
44
bool useCosAndSinBases =
ApproximatedKernelMappingEstimator
.Defaults.UseCosAndSinBases,
48
new[] { new
ApproximatedKernelMappingEstimator
.ColumnOptions(outputColumnName, rank, useCosAndSinBases, inputColumnName, generator, seed) });
51
/// Create an <see cref="
ApproximatedKernelMappingEstimator
"/> that maps input vectors to a low dimensional
57
internal static
ApproximatedKernelMappingEstimator
ApproximatedKernelMap(this TransformsCatalog catalog, params
ApproximatedKernelMappingEstimator
.ColumnOptions[] columns)
RandomFourierFeaturizing.cs (10)
32
/// <see cref="ITransformer"/> resulting from fitting an <see cref="
ApproximatedKernelMappingEstimator
"/>.
42
public int NewDim =
ApproximatedKernelMappingEstimator
.Defaults.Rank;
48
public bool UseSin =
ApproximatedKernelMappingEstimator
.Defaults.UseCosAndSinBases;
107
public TransformInfo(IHost host,
ApproximatedKernelMappingEstimator
.ColumnOptions column, int d, float avgDist)
236
private static (string outputColumnName, string inputColumnName)[] GetColumnPairs(
ApproximatedKernelMappingEstimator
.ColumnOptions[] columns)
253
internal ApproximatedKernelTransformer(IHostEnvironment env, IDataView input,
ApproximatedKernelMappingEstimator
.ColumnOptions[] columns)
279
private float[] GetAvgDistances(
ApproximatedKernelMappingEstimator
.ColumnOptions[] columns, IDataView input)
418
var cols = new
ApproximatedKernelMappingEstimator
.ColumnOptions[options.Columns.Length];
425
cols[i] = new
ApproximatedKernelMappingEstimator
.ColumnOptions(
709
_host = env.Register(nameof(
ApproximatedKernelMappingEstimator
));