-
Notifications
You must be signed in to change notification settings - Fork 1.9k
WIP: Conversion of Whitening Transform to estimator with pigstensions #1326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -35,12 +43,12 @@ public enum WhiteningKind | |||
} | |||
|
|||
/// <include file='doc.xml' path='doc/members/member[@name="Whitening"]/*'/> | |||
public sealed class WhiteningTransform : OneToOneTransformBase | |||
public sealed class WhiteningTransform : OneToOneTransformerBase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WhiteningTransform [](start = 24, length = 18)
Tests please.
string inputColumn, | ||
string outputColumn = null, | ||
WhiteningKind kind = WhiteningKind.Zca, | ||
float eps = (float)1e-5, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(float)1e-5 [](start = 24, length = 11)
defaults class, s'll vous plait
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using Microsoft.ML.Core.Data; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use git mv instead of copying files around.
/// <summary> | ||
/// Extensions for statically typed Whitening estimator. | ||
/// </summary> | ||
public static class WhiteningExtensions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to put this into another file?
@@ -0,0 +1,8 @@ | |||
#@ TextLoader{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TextLoader [](start = 3, length = 10)
Let's put this file into Common/Text/ instead of two versions of same file in Single/Text/
@@ -772,89 +771,5 @@ public void PrincipalComponentAnalysis() | |||
var type = schema.GetColumnType(pcaCol); | |||
Assert.True(type.IsVector && type.IsKnownSizeVector && type.ItemType.IsNumber); | |||
} | |||
|
|||
[Fact] | |||
public void NAIndicatorStatic() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAIndicatorStatic [](start = 20, length = 17)
What happened here?
Ongoing work on converting the transformers to estimators (#754). This PR completes the conversion of the Whitening transform to estimator (previously a TrainedWrapperEstimator).
This also fixes #721.