Skip to content

Reformatting Featurization of Transform and Misc files in Transform to Width 85 #3950

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

Merged
merged 3 commits into from
Jul 2, 2019

Conversation

rayankrish
Copy link

Guidelines followed:
-85 characters per line
-Use 4 spaces for indentation
-Dot and open parentheses stay on same line as function
-If not a preexisting line under line that we break, add an extra line after it
-Don't indent comments
-Don't break a comment if it represents output
-Don't break links
-If applicable, break right before $
-Keep math op together

Fix for issue #3478
*Misc. refers to those files found in the Transform directory but not in another subdirectory

Copy link
Contributor

@sayanshaw24 sayanshaw24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Left a few comments.

@@ -19,7 +20,8 @@ public static void Example()
// Convert training data to IDataView.
var data = mlContext.Data.LoadFromEnumerable(samples);

// Create a pipeline to concatenate the features into a feature vector and normalize it.
// Create a pipeline to concatenate the features into a feature vector
// and normalize it.
var transformPipeline = mlContext.Transforms.Concatenate("Features",
new string[] { nameof(Data.Feature1), nameof(Data.Feature2) })
.Append(mlContext.Transforms.NormalizeMeanVariance("Features"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra spaces on line 26

@rayankrish rayankrish merged commit 0153754 into dotnet:master Jul 2, 2019
@rayankrish rayankrish deleted the transform85-3 branch July 2, 2019 23:57
Dmitry-A pushed a commit to Dmitry-A/machinelearning that referenced this pull request Jul 24, 2019
…o Width 85 (dotnet#3950)

* transform/treefeaturization formatted to 85 char

* transform files not in folder formatted to 35 char
@ghost ghost locked as resolved and limited conversation to collaborators Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants