Skip to content

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

Closed
wants to merge 0 commits into from

Conversation

artidoro
Copy link
Contributor

@artidoro artidoro commented Oct 20, 2018

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.

@artidoro artidoro added the API Issues pertaining the friendly API label Oct 20, 2018
@Zruty0 Zruty0 mentioned this pull request Oct 20, 2018
@@ -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
Copy link
Contributor

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,
Copy link
Contributor

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;
Copy link
Contributor

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
Copy link
Member

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{
Copy link
Contributor

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()
Copy link
Contributor

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?

@artidoro artidoro closed this Oct 30, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Mar 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API Issues pertaining the friendly API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Main package has MKL dependency
3 participants