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

Add accuracy and mean squared error #1016

Merged
merged 5 commits into from Jun 5, 2017
Merged

Add accuracy and mean squared error #1016

merged 5 commits into from Jun 5, 2017

Conversation

micyril
Copy link
Member

@micyril micyril commented Jun 2, 2017

Add the metrics accuracy and mean squared error for cross-validation.

const DataType& data,
arma::mat& responses)
{
// In the case of neural networks data should be passed without const
Copy link
Member

Choose a reason for hiding this comment

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

Fixed in 400abaa, so I think we can remove the extra function here.

Simplify the MSE implementation after merging with the master branch.
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.

Looks good to me. If you can handle the CMake comment I'll go ahead and merge.

# Define the files we need to compile
# Anything not in this list will not be compiled into mlpack.
set(SOURCES
)
Copy link
Member

Choose a reason for hiding this comment

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

Either we should add the metrics/* files here, or an add_subdirectory(metrics) call somewhere in this file so that the new files are properly added to MLPACK_SOURCES. Let me know if I can clarify anything about that.

Copy link
Member Author

@micyril micyril Jun 5, 2017

Choose a reason for hiding this comment

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

I don't have too much experience with cmake, and I was looking at src/mlpack/core/data/CMakeLists.txt as an example while writing src/mlpack/core/cv/CMakeLists.txt, since src/mlpack/core/data also has some directories. Probably we should fix src/mlpack/core/data/CMakeLists.txt too. I will fix src/mlpack/core/cv/CMakeLists.txt shortly.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, nice catch, I will commit changes for data/ shortly.

@rcurtin rcurtin merged commit d9b4b59 into mlpack:master Jun 5, 2017
@micyril micyril deleted the metrics branch June 6, 2017 13:08
@micyril micyril changed the title Metrics Add accuracy and mean squared error Aug 19, 2017
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