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

Register parameters in tags (#4117) #4123

Closed
wants to merge 1 commit into from
Closed

Register parameters in tags (#4117) #4123

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 26, 2018

According to SGObjectAll test case, registered parameters in tags to match old parameters for all classes.

Exceptions:
For class LatentSOSVM & SVMOcas, old parameters and tag parameters don't match yet.(I am not able to find those classes, please help me find those).

@karlnapf There are many classes in this PR where static_cast on parameters preset. you asked in PR #4116 not add watch_param call & to comment add tags call in separate PR.
Would you like me to do this all together in separate PR? (I am curious what is the exact reason for that suggestion)

watch_param("count", &count);

m_parameters->add(&use_bias, "use_bias", "Indicates if bias is used.");
watch_param("use_bias", &use_bias);
Copy link
Member

Choose a reason for hiding this comment

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

Actually, we just realised that we probably want to keep the comment as well.
But that requires a minor change to the registration method .... Let me cook something up and ping you

@karlnapf
Copy link
Member

@lisitsyn Would you mind adding the possibility to add a comment in the parameters?
I would like to have that in before this one is merged so we don't have to touch everything again.
I am travelling now for a week, so cannot do it myself ... back Thursday and will continue to look into it then.

@lisitsyn
Copy link
Member

@karlnapf yes, will add that.

@lisitsyn
Copy link
Member

In #4132 I am adding parameter description. Lets rebase once it is merged and add these descriptions here as well. Otherwise the descriptions would get lost one day.

@ghost
Copy link
Author

ghost commented Jan 28, 2018

Sure. I will add descriptions in this PR.

@lisitsyn
Copy link
Member

@Guruhegde I just merged #4132 so you can rebase and add descriptions.

@ghost
Copy link
Author

ghost commented Jan 29, 2018

I added the description of scalar parameters. I will send another PR to add the description for vector and matrix type.

@ghost
Copy link
Author

ghost commented Feb 1, 2018

Remark: I ran tag parameter coverage test. Equality check with old parameter and tag parameter fails even though both lists have all & same parameters, this is because of the different order of parameter names in two lists. The solution I tried, sort old parameter names, which works.

@karlnapf
Copy link
Member

karlnapf commented Feb 2, 2018

@Guruhegde yes we need to sort. It used to be a set, but was recently changed to a vector....thats the danger of using the auto keyword to heavily :) Will fix. Thanks!

watch_param(
"pos_pseudo", &m_pos_pseudo,
AnyParameterProperties(
"pseudo count for positive class", MS_NOT_AVAILABLE,
Copy link
Member

Choose a reason for hiding this comment

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

@Guruhegde I have one more request to keep this cleaner:
Can you make the second two parameter of the AnyParameterProperties constructor have default values set to false.
And then don't put MS_NOT_AVAILABLE every time, but only the descriptions ...

Copy link
Member

Choose a reason for hiding this comment

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

This way, things will look way more neat

Copy link
Author

Choose a reason for hiding this comment

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

@karlnapf ok. That looks lot cleaner. Will modify and update.

would you like me to send a PR to set default argument in existing constructor of AnyParameterProperties? or Make new constructor(like you commented in #4132)

I guess this PR can wait till above-mentioned changes get merged.

Copy link
Member

Choose a reason for hiding this comment

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

Do a separate PR since that is very small and minimal. Then rebase this one here

@ghost
Copy link
Author

ghost commented Feb 8, 2018

@karlnapf Hi this is ready for review:)

@karlnapf
Copy link
Member

Thanks!
We unfortunately still need to hold this for a while as we need to figure out whether we want to do the downcasting to CSGObject* or not. We are in an ongoing discussion about this in IRC. The PR is really appreciated and we will merge it, but give us some time :)

@karlnapf
Copy link
Member

I think this could be re-ignited now :)

@stale
Copy link

stale bot commented Feb 26, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 26, 2020
@gf712
Copy link
Member

gf712 commented Feb 26, 2020

@karlnapf isn't this what we already do?

@stale stale bot removed the stale label Feb 26, 2020
@stale
Copy link

stale bot commented Aug 24, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 24, 2020
@karlnapf
Copy link
Member

I think this is probably still useful? Rebase and merge?

@stale stale bot removed the stale label Aug 28, 2020
@stale
Copy link

stale bot commented Feb 25, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 25, 2021
@stale
Copy link

stale bot commented Mar 4, 2021

This issue is now being closed due to a lack of activity. Feel free to reopen it.

@stale stale bot closed this Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants