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

users can disable the gradient computation [new] #2839

Merged
merged 9 commits into from
May 16, 2015

Conversation

yorkerlin
Copy link
Member

@karlnapf
take a look at this

@yorkerlin yorkerlin changed the title New users can disable the gradient computation [new] May 5, 2015
@@ -254,6 +254,7 @@ void CSGObject::update_parameter_hash()
uint32_t carry=0;
uint32_t length=0;

m_hash=0;
Copy link
Member Author

Choose a reason for hiding this comment

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

@karlnapf
the bug is mentioned at
#2838

Copy link
Member

Choose a reason for hiding this comment

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

please send a seperate PR for this fix, and add unit tests that make sure the rationale is explicit

@karlnapf
Copy link
Member

karlnapf commented May 7, 2015

How does this work from the user perspective now?

@yorkerlin
Copy link
Member Author

ref
#2817

@yorkerlin
Copy link
Member Author

@karlnapf
the gradient computation will only be activated when any of the following things:

  • gradient wrt a model parameter
  • posterior mean/cov of the training data (we do not directly use them in prediction)

are required

@karlnapf
Copy link
Member

karlnapf commented May 9, 2015

Cool thats perfpect.

As said, could you send a seperate PR with the bugfix and a unit test for the hash behavious? thanks!

@yorkerlin
Copy link
Member Author

@karlnapf
the unit tests are added.

@karlnapf
Copy link
Member

Great thanks!

karlnapf added a commit that referenced this pull request May 16, 2015
users can disable the gradient computation [new]
@karlnapf karlnapf merged commit 3f623c5 into shogun-toolbox:develop May 16, 2015
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.

None yet

2 participants