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

SG_ADD refactor #8

Merged
merged 1 commit into from
Nov 22, 2018
Merged

SG_ADD refactor #8

merged 1 commit into from
Nov 22, 2018

Conversation

gf712
Copy link
Member

@gf712 gf712 commented Nov 22, 2018

I applied the same refactoring to SG_ADD as in here.

@karlnapf
Copy link
Member

let's do it :)

SG_ADD(&m_max_iter, "m_max_iter", "max number of iterations",MS_NOT_AVAILABLE);
SG_ADD(&m_z, "m_z", "regularization constant", ParameterProperties::HYPER);
SG_ADD(&m_epsilon, "m_epsilon", "tolerance epsilon");
SG_ADD(&m_max_iter, "m_max_iter", "max number of iterations");
Copy link
Member

Choose a reason for hiding this comment

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

we should introduce an attribute for parameters like this one .... these are hyper-parameters, but not in the classical sense (as in that we want to tune them). But still free parameters ...
@vigsterkr @lisitsyn ?

@karlnapf
Copy link
Member

karlnapf commented Nov 22, 2018

ah nevermind

@karlnapf karlnapf closed this Nov 22, 2018
@karlnapf karlnapf reopened this Nov 22, 2018
@karlnapf
Copy link
Member

once this submodule update is merged, you will need to update the submodule commit hash in the main develop repo, so that it is included in the develop branch

@karlnapf karlnapf merged commit 41081d6 into shogun-toolbox:master Nov 22, 2018
@karlnapf
Copy link
Member

Minor: it would be good to write more meaningful commit messages so that we can later easily see what has happened

@gf712
Copy link
Member Author

gf712 commented Nov 26, 2018

once this submodule update is merged, you will need to update the submodule commit hash in the main develop repo, so that it is included in the develop branch

OK, I will start a PR with that.

Minor: it would be good to write more meaningful commit messages so that we can later easily see what has happened

OK! I can write something with more information with a reference to the PR to shogun. I can write that in the PR message?

@karlnapf
Copy link
Member

once this submodule update is merged, you will need to update the submodule commit hash in the main develop repo, so that it is included in the develop branch

OK, I will start a PR with that.
Single commit PR

Minor: it would be good to write more meaningful commit messages so that we can later easily see what has happened

OK! I can write something with more information with a reference to the PR to shogun. I can write that in the PR message?
in the commit hash update, I would just say: update to latest version. But in the commit hash within the gpl submodule, you write what you did with the PR

@gf712
Copy link
Member Author

gf712 commented Nov 30, 2018

How can I edit the message of the existing commit?

Just did

git commit --amend
git push origin --force

How can I push to here?

@karlnapf
Copy link
Member

Yes that’s it
You can only harm yourself (loose changes) with force pushing as you don’t have push rights to the main repo, so pretty safe

@gf712
Copy link
Member Author

gf712 commented Nov 30, 2018

So do I start a new PR with the amended commit message?

@karlnapf
Copy link
Member

Nono just amend and force push. Your pr will be overwritten/updated

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