@@ -32,5 +32,30 @@ public static RandomFourierFeaturizingEstimator CreateRandomFourierFeatures(this
32
32
/// <param name="columns">The input columns to use for the transformation.</param>
33
33
public static RandomFourierFeaturizingEstimator CreateRandomFourierFeatures ( this TransformsCatalog . ProjectionTransforms catalog , params RffTransform . ColumnInfo [ ] columns )
34
34
=> new RandomFourierFeaturizingEstimator ( CatalogUtils . GetEnvironment ( catalog ) , columns ) ;
35
+
36
+ /// <summary>
37
+ /// Initializes a new instance of <see cref="VectorWhiteningEstimator"/>.
38
+ /// </summary>
39
+ /// <param name="catalog">The transform's catalog.</param>
40
+ /// <param name="inputColumn">Name of the input column.</param>
41
+ /// <param name="outputColumn">Name of the column resulting from the transformation of <paramref name="inputColumn"/>. Null means <paramref name="inputColumn"/> is replaced. </param>
42
+ /// <param name="kind">Whitening kind (PCA/ZCA).</param>
43
+ /// <param name="eps">Whitening constant, prevents division by zero.</param>
44
+ /// <param name="maxRows">Maximum number of rows used to train the transform.</param>
45
+ /// <param name="pcaNum">In case of PCA whitening, indicates the number of components to retain.</param>
46
+ public static VectorWhiteningEstimator VectorWhiten ( this TransformsCatalog . ProjectionTransforms catalog , string inputColumn , string outputColumn ,
47
+ WhiteningKind kind = VectorWhiteningTransform . Defaults . Kind ,
48
+ float eps = VectorWhiteningTransform . Defaults . Eps ,
49
+ int maxRows = VectorWhiteningTransform . Defaults . MaxRows ,
50
+ int pcaNum = VectorWhiteningTransform . Defaults . PcaNum )
51
+ => new VectorWhiteningEstimator ( CatalogUtils . GetEnvironment ( catalog ) , inputColumn , outputColumn , kind , eps , maxRows , pcaNum ) ;
52
+
53
+ /// <summary>
54
+ /// Initializes a new instance of <see cref="VectorWhiteningEstimator"/>.
55
+ /// </summary>
56
+ /// <param name="catalog">The transform's catalog.</param>
57
+ /// <param name="columns"> Describes the parameters of the whitening process for each column pair.</param>
58
+ public static VectorWhiteningEstimator VectorWhiten ( this TransformsCatalog . ProjectionTransforms catalog , params VectorWhiteningTransform . ColumnInfo [ ] columns )
59
+ => new VectorWhiteningEstimator ( CatalogUtils . GetEnvironment ( catalog ) , columns ) ;
35
60
}
36
61
}
0 commit comments