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

Update outdated codes in cf.md and datasetmapper.md #3398

Merged
merged 9 commits into from Feb 11, 2023

Conversation

AdarshSantoria
Copy link
Contributor

No description provided.

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.

Thanks again, I love that you are going through all the documentation and finding issues like this. 👍

@@ -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);
Copy link
Member

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?

Copy link
Contributor Author

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";
Copy link
Member

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
@AdarshSantoria
Copy link
Contributor Author

AdarshSantoria commented Feb 7, 2023

One thing I want to ask src/mlpack/methods/src/cf/decomposition_policies/quic_svd_method.hpp is not there but is mentioned in documentation of cf so shall I add that file with reference to src/mlpack/methods/quic_svd.

@rcurtin
Copy link
Member

rcurtin commented Feb 8, 2023

One thing I want to ask src/mlpack/methods/src/cf/decomposition_policies/quic_svd_method.hpp is not there but is mentioned in documentation of cf so shall I add that file with reference to src/mlpack/methods/quic_svd.

Sure, if you see an easy way to hook it up, feel free! That would definitely be worth an entry in HISTORY.md, too.

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.

Thanks, just one final comment. :)

@@ -276,6 +276,9 @@ alternating least squares update rules). These include:
- `NMFALSFactorizer`
- `RegularizedSVD`
- `QUIC_SVD`
- `BiasSVD`
- `SVDPlusPlus`
- `RandomizedSVD`
Copy link
Member

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.

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.

Thanks again! 👍

@conradsnicta
Copy link
Contributor

suggest to also add a corresponding item to HISTORY.md

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. 👍

HISTORY.md Outdated Show resolved Hide resolved
Co-authored-by: Ryan Curtin <ryan@ratml.org>
@rcurtin rcurtin merged commit fe23d1d into mlpack:master Feb 11, 2023
@rcurtin
Copy link
Member

rcurtin commented Feb 11, 2023

Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants