2 instantiations of PrincipalComponentAnalyzer
Microsoft.ML.PCA (2)
PCACatalog.cs (2)
36
=> new
PrincipalComponentAnalyzer
(CatalogUtils.GetEnvironment(catalog),
44
=> new
PrincipalComponentAnalyzer
(CatalogUtils.GetEnvironment(catalog), columns);
22 references to PrincipalComponentAnalyzer
Microsoft.ML.PCA (18)
PCACatalog.cs (8)
19
/// <summary>Initializes a new instance of <see cref="
PrincipalComponentAnalyzer
"/>.</summary>
28
public static
PrincipalComponentAnalyzer
ProjectToPrincipalComponents(this TransformsCatalog catalog,
32
int rank =
PrincipalComponentAnalyzer
.Defaults.Rank,
33
int overSampling =
PrincipalComponentAnalyzer
.Defaults.Oversampling,
34
bool ensureZeroMean =
PrincipalComponentAnalyzer
.Defaults.EnsureZeroMean,
39
/// <summary>Initializes a new instance of <see cref="
PrincipalComponentAnalyzer
"/>.</summary>
43
internal static
PrincipalComponentAnalyzer
ProjectToPrincipalComponents(this TransformsCatalog catalog, params
PrincipalComponentAnalyzer
.ColumnOptions[] columns)
PcaTransformer.cs (10)
44
public string ExampleWeightColumnName =
PrincipalComponentAnalyzer
.Defaults.WeightColumn;
47
public int Rank =
PrincipalComponentAnalyzer
.Defaults.Rank;
50
public int Oversampling =
PrincipalComponentAnalyzer
.Defaults.Oversampling;
53
public bool Center =
PrincipalComponentAnalyzer
.Defaults.EnsureZeroMean;
56
public int Seed =
PrincipalComponentAnalyzer
.Defaults.Seed;
204
internal PrincipalComponentAnalysisTransformer(IHostEnvironment env, IDataView input,
PrincipalComponentAnalyzer
.ColumnOptions[] columns)
254
var cols = options.Columns.Select(item => new
PrincipalComponentAnalyzer
.ColumnOptions(
294
private static (string outputColumnName, string inputColumnName)[] GetColumnPairs(
PrincipalComponentAnalyzer
.ColumnOptions[] columns)
300
private void Train(
PrincipalComponentAnalyzer
.ColumnOptions[] columns, TransformInfo[] transformInfos, IDataView trainingData)
802
_host = env.Register(nameof(
PrincipalComponentAnalyzer
));
Microsoft.ML.Tests (4)
OnnxConversionTest.cs (1)
975
var
pipeline = ML.Transforms.ProjectToPrincipalComponents("pca", "features", rank: 5, seed: 1, ensureZeroMean: zeroMean);
Transformers\PcaTests.cs (3)
41
var
est = ML.Transforms.ProjectToPrincipalComponents("pca", "features", rank: 4, seed: 10);
44
var
estNonDefaultArgs = ML.Transforms.ProjectToPrincipalComponents("pca", "features", rank: 3, exampleWeightColumnName: "weight", overSampling: 2, ensureZeroMean: false);
58
var
est = ML.Transforms.ProjectToPrincipalComponents("pca", "features", rank: 5, seed: 1);