Skip to content

Conversation

shrit
Copy link
Member

@shrit shrit commented Jan 19, 2024

Hopefully this passes on Windows

shrit added 15 commits January 19, 2024 13:03
@rcurtin
Copy link
Member

rcurtin commented Jan 20, 2024

The test failure on OS X looks unrelated (it's that RADICAL test failure I haven't been able to pin down). 👍

@shrit
Copy link
Member Author

shrit commented Jan 22, 2024

Okay, I see, do I restart the tests?

@rcurtin
Copy link
Member

rcurtin commented Jan 23, 2024

No need, I know your changes did not cause that.

Copy link
Member

@rcurtin rcurtin left a comment

Choose a reason for hiding this comment

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

I'm surprised that there wasn't a problem on Windows with arma::pow -> pow, since there is also std::pow. But, it works, so, it looks good to me. There are a lot of places where the lines were shorter; I know it is a really pedantic comment to point it out over and over again (and also tedious), so I did my best to provide easy-to-click suggestions, but there were some places where Github wouldn't allow me to do that.

@@ -44,7 +44,7 @@ template<typename DataType>
DataType NormalDistribution<DataType>::LogProbability(
const DataType& observation) const
{
const DataType v1 = arma::log(sigma) + std::log(std::sqrt(2 * M_PI));
const DataType v1 = log(sigma) + std::log(std::sqrt(2 * M_PI));
Copy link
Member

Choose a reason for hiding this comment

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

If you wanted to make this all ADL, you could remove the std:: too, but up to you; to me it doesn't make a difference either way.

Copy link
Member Author

Choose a reason for hiding this comment

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

nope, I agree, let us for once make the Windows compiler happy

shrit and others added 15 commits January 27, 2024 16:28
@shrit
Copy link
Member Author

shrit commented Jan 27, 2024

Thanks, I had to click on all the suggestions, I'm so sorry if you have received 35 emails, it is easier rather than going through each one of them with vim
Yes, I am surprised that this was not an issue on Windows, but if it is passed then it is okay for now

Copy link

@mlpack-bot mlpack-bot bot left a comment

Choose a reason for hiding this comment

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

Second approval provided automatically after 24 hours. 👍

@shrit shrit merged commit 15f7326 into mlpack:master Jan 28, 2024
@rcurtin
Copy link
Member

rcurtin commented Jan 28, 2024

Thanks, I had to click on all the suggestions, I'm so sorry if you have received 35 emails, it is easier rather than going through each one of them with vim

No worries, easy enough to quickly go through the emails and see what happened 👍

This was referenced May 26, 2024
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