-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Document Radical
#3787
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
Document Radical
#3787
Conversation
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.
Looks, good it was easier to review compared to what I would have thought, I just left a couple of comments
template<typename MatType = arma::mat> | ||
[[deprecated("Will be removed in mlpack 5.0.0. Use Apply() instead.")]] | ||
void DoRadical(const MatType& matX, | ||
MatType& matY, |
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.
This should have been really old,
template<typename MatType> | ||
typename MatType::elem_type DoRadical2D( | ||
const MatType& matX, | ||
const size_t m, | ||
MatType& perturbed, // auxiliary memory | ||
MatType& candidate, // auxiliary memory | ||
util::Timers& timers = IO::GetTimers()); |
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.
Can we deprecate this one in favour of Apply2D? So we have an API compatibility, especially when we are in mlpack 5 no one will understand why we have Apply and DoRadical2D
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.
You're right, that is a more consistent name. I don't consider DoRadical2D()
a "public API" function, so it's ok to change. (For this reason I didn't document it.) So I just changed DoRadical2D()
to Apply2D()
in 6a2e9cb. 👍
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.
looks good to me, the same things goes for github actions
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.
Second approval provided automatically after 24 hours. 👍
The Windows build looks to be a spurious failure unrelated to RADICAL, so I will go ahead and merge. 🚀 |
I documented the RADICAL algorithm for ICA. This one actually turned out to be very easy to do. Changes:
Radical::DoRadical()
in favor of the newRadical::Apply()
, which matches classes likePCA
and other transformations better.Radical::Apply()
so users can use dense floating-point matrix types.Radical::Apply()
function directly.m
parameter (likeradical_main.cpp
does).SEE_ALSO()
links for all the bindings I could find to point to Markdown files instead of C++ source.