You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In mlpack/methods/preprocess.hpp, it is mentioned that there is a file preprocess.hpp inside folder preprocess, but I could not find any such file inside the aforementioned folder.
If I am wrong, then please correct me else please consider the issue.
Thanks in advance for reply.
The text was updated successfully, but these errors were encountered:
I agree with @Aadi-Raj but not for nmf and nystroem as their paths are indirectly included in mlpack.hpp not directly in file but on file that are included in mlpack.hpp. We can use them just by including mlpack.hpp. An example in support of my statement,
#include <mlpack.hpp>
using namespace arma;
using namespace mlpack;
using namespace mlpack::ann;
using namespace std;
int main()
{
mat w = randu<mat>(20, 12);
mat h = randu<mat>(12, 20);
mat v = w * h;
size_t r = 12;
AMF<> nmf;
nmf.Apply(v, r, w, h);
for (size_t trial = 0; trial < 3; ++trial)
{
arma::mat data;
data.randu(5, trial * 200);
GaussianKernel gk;
NystroemMethod<GaussianKernel, OrderedSelection> nm(data, gk, trial * 200);
arma::mat g;
nm.Apply(g);
// Construct exact kernel matrix.
arma::mat kernel(trial * 200, trial * 200);
for (size_t i = 0; i < trial * 200; ++i)
for (size_t j = 0; j < trial * 200; ++j)
kernel(i, j) = gk.Evaluate(data.col(i), data.col(j));
// Reconstruct approximation.
arma::mat approximation = g * g.t();
}
}
In mlpack/methods/preprocess.hpp, it is mentioned that there is a file preprocess.hpp inside folder preprocess, but I could not find any such file inside the aforementioned folder.
If I am wrong, then please correct me else please consider the issue.
Thanks in advance for reply.
The text was updated successfully, but these errors were encountered: