Share via


PcaCatalog.ProjectToPrincipalComponents Method

Definition

Initializes a new instance of PrincipalComponentAnalyzer.

public static Microsoft.ML.Transforms.PrincipalComponentAnalyzer ProjectToPrincipalComponents (this Microsoft.ML.TransformsCatalog catalog, string outputColumnName, string inputColumnName = default, string exampleWeightColumnName = default, int rank = 20, int overSampling = 20, bool ensureZeroMean = true, int? seed = default);
static member ProjectToPrincipalComponents : Microsoft.ML.TransformsCatalog * string * string * string * int * int * bool * Nullable<int> -> Microsoft.ML.Transforms.PrincipalComponentAnalyzer
<Extension()>
Public Function ProjectToPrincipalComponents (catalog As TransformsCatalog, outputColumnName As String, Optional inputColumnName As String = Nothing, Optional exampleWeightColumnName As String = Nothing, Optional rank As Integer = 20, Optional overSampling As Integer = 20, Optional ensureZeroMean As Boolean = true, Optional seed As Nullable(Of Integer) = Nothing) As PrincipalComponentAnalyzer

Parameters

catalog
TransformsCatalog

The transform's catalog.

outputColumnName
String

Name of the column resulting from the transformation of inputColumnName.

inputColumnName
String

Name of column to transform. If set to null, the value of the outputColumnName will be used as source.

exampleWeightColumnName
String

The name of the example weight column (optional).

rank
Int32

The number of principal components.

overSampling
Int32

Oversampling parameter for randomized PrincipalComponentAnalysis training.

ensureZeroMean
Boolean

If enabled, data is centered to be zero mean.

seed
Nullable<Int32>

The seed for random number generation.

Returns

Applies to