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

[docs] generate parameters description from config file. Stage 1 #1409

Merged
merged 9 commits into from
Jun 2, 2018

Conversation

StrikerRUS
Copy link
Collaborator

This is the continuation of #1381.

@guolinke It seems that helper\parameter_generator.py cannot handle links in params' descriptions (desc and descl2 fields) due to this:

https://github.com/Microsoft/LightGBM/blob/28832d9e55e016d02c157e541293b39b18dc44af/helper/parameter_generator.py#L27

Can we hotfix it? Maybe three forward slashes?

@guolinke
Copy link
Collaborator

@StrikerRUS
Copy link
Collaborator Author

@guolinke
Sorry, didn't get it.

Did you mean this:

tokens = '//'.join(line.split("//")[1:]).split("=")

@guolinke
Copy link
Collaborator

guolinke commented Jun 1, 2018

@StrikerRUS yeah, Or just
line.strip()[2:].stripe() ,
which can remove the first two chars.

@StrikerRUS
Copy link
Collaborator Author

@guolinke OK, thank you!

Copy link
Collaborator Author

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

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

@guolinke Don't you mind to merge this PR? I think it's easier to review one PR - one section of params.

// default=none
// alias = random_seed
// desc = this seed is used to generate other seeds, e.g. ``data_random_seed``, ``feature_fraction_seed``
// desc = will be overridden, if you set other seeds
int seed = 0;
Copy link
Collaborator Author

@StrikerRUS StrikerRUS Jun 1, 2018

Choose a reason for hiding this comment

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

Why it was default=none?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it is a typo.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had the same thoughts, so deleted it.

What is your opinion about it #1409 (review) ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Rolled back in #1872.

@StrikerRUS StrikerRUS changed the title [WIP][docs] generate parameters description from config file [docs] generate parameters description from config file Jun 1, 2018
@StrikerRUS StrikerRUS requested a review from guolinke June 1, 2018 17:41
@StrikerRUS StrikerRUS changed the title [docs] generate parameters description from config file [docs] generate parameters description from config file. Stage 1 Jun 1, 2018
@guolinke guolinke merged commit 713f5e6 into master Jun 2, 2018
@StrikerRUS StrikerRUS deleted the auto-params branch June 2, 2018 09:33
@lock lock bot locked as resolved and limited conversation to collaborators Mar 11, 2020
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.

2 participants