Skip to content
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

Update the parameters description in the summary as described in the issue 2177 #2432

Closed

Conversation

HerraHak
Copy link

@HerraHak HerraHak commented Feb 6, 2019

Fixes #2177

The description of the parameters have been updated as described by @sfilipi in issue #2177

We are excited to review your PR.

So we can do the best job, please check:

  • [X ] There's a descriptive title that will make sense to other developers some time from now.
  • [X ] There's associated issues. All PR's should have issue(s) associated - unless a trivial self-evident change such as fixing a typo. You can use the format Fixes #nnnn in your description to cause GitHub to automatically close the issue(s) when your PR is merged.
  • [X ] Your change description explains what the change does, why you chose your approach, and anything else that reviewers should know.
  • [ N/A] You have included any necessary tests in the same PR.

@HerraHak
Copy link
Author

HerraHak commented Feb 6, 2019

to be honest I don't know why the code coverage failed... Is there an issue with master?

@artidoro
Copy link
Contributor

artidoro commented Feb 6, 2019

We have sporadic failures due to the random nature of our tests, I just restarted the code coverage bot. Thanks for your PR!

@codecov
Copy link

codecov bot commented Feb 6, 2019

Codecov Report

Merging #2432 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2432      +/-   ##
==========================================
+ Coverage    71.5%    71.5%   +<.01%     
==========================================
  Files         801      801              
  Lines      142036   142033       -3     
  Branches    16151    16148       -3     
==========================================
+ Hits       101559   101560       +1     
+ Misses      36004    36002       -2     
+ Partials     4473     4471       -2
Flag Coverage Δ
#Debug 71.5% <100%> (ø) ⬆️
#production 67.79% <100%> (ø) ⬆️
#test 85.56% <ø> (ø) ⬆️

@Ivanidzo4ka
Copy link
Contributor

@sfilipi do you mean in issue to unify all column or only specific one?
Because I can see following variation in code for public classes:
/// <param name="labelColumn">The label column name.</param>
/// <param name="labelColumn">The label, or dependent variable.</param>
/// <param name="labelColumn">The labelColumn, or dependent variable.</param>
/// <param name="labelColumn">Name of the column to use for labels.</param>
/// <param name="labelColumn">The labelColumn column.</param>

@sfilipi
Copy link
Member

sfilipi commented Feb 6, 2019

@HerraHak thanks for your PR.

I have edited the original issue to describe other feedback that we have had.

this is how those parameters should look like:

/// The name of the label column.
/// The name of the feature column.
/// The name of the optional weights column.

There are many of them, through the code-base. If you don't intend to fix all of them, please don;t close the issue.

@Ivanidzo4ka does the above look good? as long as we standardize to something.
Feel free to propose different language.

/// <param name="weights">The optional weights column.</param>
/// <param name="labelColumn">The name of the label column.</param>
/// <param name="featureColumn">The name of the feature column.</param>
/// <param name="weights">The name of the optional weights column.</param>
Copy link
Member

Choose a reason for hiding this comment

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

so weightsColumnName, labelColumnName, featureColumnName.

Copy link
Author

Choose a reason for hiding this comment

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

Should we change the name of the parameters too or is a different issue?

Copy link
Contributor

Choose a reason for hiding this comment

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

If it's not hard for you.
This weights is actually weightsColumn
or weightColumn

@sfilipi why we use singular for feature column and plural for weight column?


In reply to: 254624678 [](ancestors = 254624678)

@Ivanidzo4ka
Copy link
Contributor

I'm more than happy with proposed language. I just wonder what is criteria to close issue :)


In reply to: 461206771 [](ancestors = 461206771)

@HerraHak
Copy link
Author

HerraHak commented Feb 7, 2019 via email

@dnfclas
Copy link

dnfclas commented Feb 7, 2019

CLA assistant check
All CLA requirements met.

@HerraHak
Copy link
Author

HerraHak commented Feb 7, 2019

Huh, the code coverage failed again.
Could anybody perhaps relaunch the code coverage test??

@sfilipi
Copy link
Member

sfilipi commented Feb 7, 2019

@HerraHak don't worry about the CodeCoverage, that is not blocking.

@@ -135,7 +135,7 @@ private static VersionInfo GetVersionInfo()
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param>
/// <param name="imageWidth">Width of resized image.</param>
/// <param name="imageHeight">Height of resized image.</param>
/// <param name="inputColumnName">Name of the input column.</param>
/// <param name="inputColumnName">The name of the input column.</param>
Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka Feb 8, 2019

Choose a reason for hiding this comment

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

inputColumnName [](start = 25, length = 15)

inputColumnName [](start = 25, length = 15)

/// Name of the column to transform. If set to , the value of the will be used as source.
#Closed

@@ -45,7 +45,7 @@ internal LightGbmMulticlassTrainer(IHostEnvironment env, Options options)
/// Initializes a new instance of <see cref="LightGbmMulticlassTrainer"/>
/// </summary>
/// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param>
/// <param name="labelColumn">The name of The label column.</param>
/// <param name="labelColumn">The name of the label column.</param>
/// <param name="featureColumn">The name of the feature column.</param>
/// <param name="weights">The name for the column containing the initial weight.</param>
Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka Feb 8, 2019

Choose a reason for hiding this comment

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

The name for the column containing the initial weight. [](start = 34, length = 54)

The name for the column containing the initial weight. [](start = 34, length = 54)

/// <param name="weightsColumnName">The name of the optional weights column.</param> #Closed

@Ivanidzo4ka
Copy link
Contributor

Ivanidzo4ka commented Feb 8, 2019

    /// <param name="weightsColumn">The name of the weights column.</param>

/// <param name="weightsColumnName">The name of the optional weights column.</param> #Closed


Refers to: src/Microsoft.ML.StandardLearners/Standard/Online/OnlineGradientDescent.cs:102 in c94be09. [](commit_id = c94be09, deletion_comment = False)

@HerraHak HerraHak force-pushed the 2177-update-parameter-description branch from 6bf8a17 to 9e1b8b4 Compare February 9, 2019 23:58
/// <param name="weights">The optional weights column.</param>
/// <param name="labelColumn">The name of the label column.</param>
/// <param name="featureColumn">The name of the feature column.</param>
/// <param name="weights">The name of the optional weights column.</param>
Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka Feb 10, 2019

Choose a reason for hiding this comment

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

weights [](start = 25, length = 7)

can you update this one as well, otherwise build is not working #Closed

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I meant in whole file. We have strict rules to match parameters names in xml documentation


In reply to: 255319474 [](ancestors = 255319474)

Copy link
Author

Choose a reason for hiding this comment

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

Should be ok now

/// <param name="inputColumnName">Name of the input column.</param>
/// <param name="outputColumnName">Name of the resulting output column.</param>
/// <param name="inputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param>
/// <param name="outputColumnName">Name of column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param>
Copy link
Contributor

Choose a reason for hiding this comment

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

outputColumnName [](start = 25, length = 16)

you need to switch input and output column. Output column is resulting and input column is name of column to transform.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is how it suppose to be.

 /// <param name="outputColumnName"> Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param>
/// <param name="inputColumnName"> Name of column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param>

And now check what do you have in param name=


In reply to: 255809779 [](ancestors = 255809779)

/// <param name="weights">The weights column.</param>
/// <param name="labelColumn">The name of the label column.</param>
/// <param name="featureColumn">The name of the features column.</param>
/// <param name="weights">The name of the weights column.</param>
Copy link
Contributor

Choose a reason for hiding this comment

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

the [](start = 46, length = 3)

optional weights column

Copy link
Contributor

Choose a reason for hiding this comment

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

across whole file


In reply to: 255809893 [](ancestors = 255809893)

@Ivanidzo4ka
Copy link
Contributor

@abgoswam covered same thing in his PR.
Thank you for help!

@HerraHak
Copy link
Author

HerraHak commented Mar 1, 2019

Well it was nice trying to contribute on this. I'll pick up another issue then.

@HerraHak HerraHak deleted the 2177-update-parameter-description branch March 13, 2019 13:16
@ghost ghost locked as resolved and limited conversation to collaborators Mar 24, 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.

The parameter descriptions should distinguish between columns and column names.
5 participants