-
Notifications
You must be signed in to change notification settings - Fork 18
NMFCross seeding random #330
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
NMFCross seeding random #330
Conversation
|
|
||
| using fluid::algorithm::NMFCross; | ||
| using Tensor = fluid::FluidTensor<double, 2>; | ||
| NMFCross algo; |
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.
| NMFCross algo; | |
| NMFCross algo(2); |
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.
so the algo is created at each call, with the number of iterations as a constructor variable?
| Tensor targetMag{{0.5, 0.4}, {0.1, 1.1}, {0.7, 0.8}, {0.3, 0.0}, {1.0, 0.9}, {0.2, 0.6}}; | ||
| Tensor sourceMag{{0.0, 0.4}, {0.6, 0.7}, {0.8, 0.1}, {1.0, 0.5}, {1.1, 0.2}, {0.9, 0.3}}; | ||
|
|
||
| std::vector Hs(3, Tensor(5, 2)); |
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.
| std::vector Hs(3, Tensor(5, 2)); | |
| std::vector Hs(3, Tensor(6, 6)); |
Algo is getting numFrames from the length of targetMag and the rank from the length of sourceMag
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.
With those changes, the tests pass for me. Locally, rerun cmake with -DFLUCOMA_TESTS=ON to enable
first attempt at a first UT in c++... this should work, but my test is from the hip... I'm not certain I test the right thing at the right dims