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

Added check of standard deviation (m_sigma) in GP likelihoods #1123

Merged
merged 1 commit into from
May 23, 2013

Conversation

votjakovr
Copy link
Contributor

No description provided.

@sonney2k
Copy link
Member

heh - standard 🐹

@votjakovr
Copy link
Contributor Author

Ah, sure. I'll fix it now, i'm just confused a little bit :)

}

void CGaussianLikelihood::init()
void CGaussianLikelihood::init(float64_t sigma)
Copy link
Member

Choose a reason for hiding this comment

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

Ah I now understand what you had in mind here.

I would do this slightly differently: the init method should not have any parameters, just private void init()
It initialises with default values and registers parameters.
However, the constructors should have the REQUIRE checks, they are called by the user, so please do the checks in there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I agree with you, it will be more informative.

sonney2k pushed a commit that referenced this pull request May 23, 2013
Added check of standard deviation (m_sigma) in GP likelihoods
@sonney2k sonney2k merged commit f3f55ee into shogun-toolbox:develop May 23, 2013
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

3 participants