forked from mlpack/mlpack
-
Notifications
You must be signed in to change notification settings - Fork 0
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
GSoC 6-7 #8
Merged
Merged
GSoC 6-7 #8
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6cb9dd5
Setup R-directory-structure using cmake.
Yashwants19 717320f
Add documentation To .R file.
Yashwants19 e443778
Rough changes.
Yashwants19 741e82b
Bad regex.
Yashwants19 aed7887
Remove extra 'clenup'.
Yashwants19 fae1149
Resolve GH actions.
Yashwants19 962d13a
Add proper comments.
Yashwants19 83a6d92
Update size.
Yashwants19 b7c3c26
Bad rebase.
Yashwants19 2964dc7
Resolve comments.
Yashwants19 d0bc7b3
Improvement in CMake.
Yashwants19 8c5b0e0
Remove less portable flag.
Yashwants19 e1ee83c
Correct branding similar to rest of project.
Yashwants19 765172d
Resolve some final comments.
Yashwants19 f622640
Update suggested change.
Yashwants19 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,7 +108,7 @@ The example above has only shown a little bit of the functionality of mlpack. | |
Lots of other commands are available with different functionality. A full list | ||
of commands and full documentation for each can be found on the following page: | ||
|
||
- <a href="https://mlpack.org/doc/mlpack-git/cli_documentation.html">IO documentation</a> | ||
- <a href="https://mlpack.org/doc/mlpack-git/cli_documentation.html">CLI documentation</a> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahhh, thank you. Actually do you want to submit this one as a patch batch to the mlpack repository? |
||
|
||
For more information on what mlpack does, see https://www.mlpack.org/. Next, | ||
let's go through another example for providing movie recommendations with | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* @file bindings/R/get_param.hpp | ||
* @author Yashwant Singh Parihar | ||
* | ||
* Get a parameter for a R binding. | ||
* | ||
* mlpack is free software; you may redistribute it and/or modify it under the | ||
* terms of the 3-clause BSD license. You should have received a copy of the | ||
* 3-clause BSD license along with mlpack. If not, see | ||
* http://www.opensource.org/licenses/BSD-3-Clause for more information. | ||
*/ | ||
#ifndef MLPACK_BINDINGS_R_GET_PARAM_HPP | ||
#define MLPACK_BINDINGS_R_GET_PARAM_HPP | ||
|
||
#include <mlpack/prereqs.hpp> | ||
|
||
namespace mlpack { | ||
namespace bindings { | ||
namespace r { | ||
|
||
/** | ||
* All R binding types are exactly what is held in the ParamData, so no | ||
* special handling is necessary. | ||
*/ | ||
template<typename T> | ||
void GetParam(util::ParamData& d, | ||
const void* /* input */, | ||
void* output) | ||
{ | ||
*((T**) output) = const_cast<T*>(boost::any_cast<T>(&d.value)); | ||
} | ||
|
||
} // namespace r | ||
} // namespace bindings | ||
} // namespace mlpack | ||
|
||
#endif |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to do this---I know it is a bit of a tedious refactoring. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)