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

GH-16420: change default values from -1 to the actual default values. #16421

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wendycwong
Copy link
Contributor

Here is the issue: #16420

Previous thoughts are:
There are two sets of parameters to set for each infogram mode: for fairness or for core.

Hence, I set the parameters to -1 to indicate that users have not set more parameters than they should.

However, thinking back here, it is more important to set the parameters to the correct values than reprimanding them if they set more parameters than they should. Hence, I just go in and set the parameters to their default values instead of -1.

Copy link
Contributor

@maurever maurever left a comment

Choose a reason for hiding this comment

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

Thanks, @wendycwong, for this PR. I have just one question. Otherwise LGTM.

@@ -134,44 +132,43 @@ public static final class InfogramParametersV3 extends ModelParametersSchemaV3<I
level = API.Level.secondary, gridable=true)
public String[] protected_columns;

@API(help = "A number between 0 and 1 representing a threshold for total information, defaulting to 0.1. " +
@API(help = "A number between 0 and 1 representing a threshold for total information. " +
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you should keep information about the default value.

Or what is the reason for removing it from this doc string in InfogramV3?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maurever : I just notice this new thing. If you set it to a value in InfogramModel.java in the parameters, the default will will apear.

image

I just took a picture of infogram.R.

If I add "default o 0.1", then in infogram.R, you will see two default values settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants