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
Update outdated codes in cf.md and datasetmapper.md #3398
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.
Thanks again, I love that you are going through all the documentation and finding issues like this. 👍
doc/tutorials/cf.md
Outdated
@@ -255,7 +255,7 @@ extern size_t rank; | |||
// Build the CF object and perform the decomposition. | |||
// The constructor takes a default-constructed factorizer, which, by default, | |||
// is of type NMFALSFactorizer. | |||
CF cf(data, NMFALSFactorizer(), neighborhood, rank); | |||
CFType cf(data, NMFPolicy(), neighborhood, rank); |
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.
I thought that CF
was typedef'ed to CFType<>
(the default), but it seems like that code is not actually there in src/mlpack/methods/cf/cf.hpp
! Do you want to instead add that typedef, and then this change shouldn't be needed?
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.
Yes, I had added that typedef.
std::cout << info.UnmapValue("T", 2) << "\n"; | ||
std::cout << info.UnmapValue("F", 2) << "\n"; | ||
std::cout << info.UnmapValue("True", 2) << "\n"; | ||
std::cout << info.UnmapValue("False", 2) << "\n"; |
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, nice catch on this one. 👍
Change inorder to make CF typedef from CFType
One thing I want to ask |
Sure, if you see an easy way to hook it up, feel free! That would definitely be worth an entry in |
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, just one final comment. :)
doc/tutorials/cf.md
Outdated
@@ -276,6 +276,9 @@ alternating least squares update rules). These include: | |||
- `NMFALSFactorizer` | |||
- `RegularizedSVD` | |||
- `QUIC_SVD` | |||
- `BiasSVD` | |||
- `SVDPlusPlus` | |||
- `RandomizedSVD` |
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.
I took a look and I think these names don't actually correspond to what's used in the code. So instead of RandomizedSVD
, we should have RandomizedSVDPolicy
, etc.; I think there are errors in what was already there before too.
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 again! 👍
suggest to also add a corresponding item to HISTORY.md |
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. 👍
Co-authored-by: Ryan Curtin <ryan@ratml.org>
Thanks so much! |
No description provided.