Commit Graph
10952 Commits
Author SHA1 Message Date
Ryan Curtin 21f8f3da99 Remove extraneous spaces 2012-07-04 17:20:19 +00:00
Ryan Curtin 189a7c801f Move RemoveRows() out of class definitions. 2012-07-04 17:19:23 +00:00
Ryan Curtin 630a5ec9c2 Include linear algebra utilities. 2012-07-04 17:18:45 +00:00
Ryan Curtin bf83278e2c Move RemoveRows() to the linear algebra utility section since it's used in more
than one place.
2012-07-04 17:18:26 +00:00
Ryan Curtin 647cd0c164 Clean up and optimize code. 2012-07-04 16:07:48 +00:00
Ryan Curtin 54a983f78b Comment out testing procedure for now because it doesn't work (yet). 2012-07-03 19:57:05 +00:00
Ryan Curtin dbd59cef45 Update test cases for different cosine distance. 2012-07-03 19:56:43 +00:00
Ryan Curtin 3d9d6177e3 Fix inaccurate comment. 2012-07-03 19:46:04 +00:00
Ryan Curtin e6943e332e Change DoLCC() to Encode() and some cleanups and fixes in Encode(). Reduce
number of redundant class variables.
2012-07-03 17:06:09 +00:00
Ryan Curtin 2bcaad459b More consistent comparisons 2012-06-29 16:37:24 +00:00
Ryan Curtin f1cc9d6ceb Oops, this isn't necessary anymore. 2012-06-29 16:23:00 +00:00
Ryan Curtin 569617b4de Clean up formatting of output, and stop using arma::uword (prefer size_t
instead).
2012-06-28 21:17:06 +00:00
Ryan Curtin 7f0c7a2a24 Update for new API with better matrix names. 2012-06-28 20:46:48 +00:00
Ryan Curtin b2ac85ba43 Change matX to data, matD to dictionary, and matZ to codes. 2012-06-28 20:46:21 +00:00
Ryan Curtin 96742d0419 Make OBJ_TOL and NEWTON_TOL parameters to the methods. 2012-06-27 20:21:28 +00:00
Ryan Curtin 4c455e9458 Update for new LCC API, and fix style violations. 2012-06-27 19:57:06 +00:00
Ryan Curtin b5a9c30005 Template LocalCoordinateCoding to accept different kinds of dictionary
initialization.  The loading dictionaries from file feature is temporarily
broken for the LCC executable, but this will be fixed soon.
2012-06-27 19:56:53 +00:00
Ryan Curtin 25ac4e4c7f Clean style violations in main executable. 2012-06-27 18:39:40 +00:00
Ryan Curtin 97d04bbf4a Clean up style violations. 2012-06-27 18:29:07 +00:00
Ryan Curtin d16b92a630 Avoid unnecessary initialization of dictionary when the user passes a dictionary
already.
2012-06-26 20:00:21 +00:00
Ryan Curtin 4dcca104b7 Fail on failure to load dictionary. 2012-06-26 19:55:44 +00:00
Ryan Curtin 8f5f239bdd Clean up main executable. Avoid unnecessary copies. 2012-06-26 19:42:50 +00:00
Ryan Curtin e3c6a9a208 Avoid a matrix copy for matActiveZ and potentially speed up gradient calculation
by avoiding instantiation of arma::ones<arma::vec> (Armadillo may have already
been smart enough to avoid that anyway).
2012-06-26 19:16:29 +00:00
Ryan Curtin f431411d6f Stop using activeAtoms because it isn't necessary (minor speed boost). Clean up
code just a little more.
2012-06-26 19:10:40 +00:00
Ryan Curtin 499ec076ae Clean up code. Use std::pow(x, 2.0) not x * x. A couple of formatting fixes,
and some changes to make some code more efficient.
2012-06-25 20:23:35 +00:00
Ryan Curtin 030b1c5fd4 Formatting fix, and handle things a little more carefully. 2012-06-25 20:22:39 +00:00
Ryan Curtin 7e473c2a85 Fix some syntax errors I introduced, and print the matrices. The test does not
appear to be working correctly...?
2012-06-20 14:16:43 +00:00
Ryan Curtin 5f4c21f9d2 Minor style changes. 2012-06-20 01:23:06 +00:00
mohanrajendran a74054a66f Unit test for NMF added successfully. Validation conditions need to be tuned 2012-06-14 22:59:04 +00:00
Ryan Curtin be7a6c39ec Rename DoSparseCoding() to more flowing Encode(). 2012-06-13 21:47:04 +00:00
Ryan Curtin 4ee0ebf03e We don't need to set the reference -- this line is now implicit. 2012-06-13 21:46:45 +00:00
Ryan Curtin 159f9bb86c Clean up comments, and store a reference to the data, instead of copying it. 2012-06-13 21:42:44 +00:00
mohanrajendran 0a1d9c6d10 Revert to PCA CMake configuration 2012-06-13 16:21:25 +00:00
mohanrajendran 109643f7db Move NMF out of PCA 2012-06-13 16:20:58 +00:00
mohanrajendran dc407783d4 Move everything into the NMF directory from PCA 2012-06-13 16:20:50 +00:00
mohanrajendran d0702479d0 Add nmf directory 2012-06-13 16:20:14 +00:00
mohanrajendran 5bdb3cb6ea Basic implementation of NMF 2012-06-13 16:18:45 +00:00
mohanrajendran 238f0ce792 Added a compilable version of NMF code. Test cases need to be written 2012-06-13 14:01:14 +00:00
Ryan Curtin 07a11a706f A couple more tutorials now exist. 2012-06-13 00:25:09 +00:00
Ryan Curtin 8c87df97cb A couple of formatting fixes. 2012-06-13 00:24:27 +00:00
Parikshit Ram c3335a059e RandInt() and Random() sped up by just using randomUniformDist 2012-06-12 20:25:57 +00:00
Ryan Curtin 6f308e1ca0 Change tests to respect new SparseCoding template parameters. 2012-06-11 20:10:33 +00:00
Ryan Curtin ef1abf596d Refactor SparseCoding to initialize the dictionary as a template parameter. 2012-06-11 20:10:20 +00:00
Ryan Curtin cb4e932e3b Clean up comments for no good reason. 2012-06-11 19:23:47 +00:00
Ryan Curtin e78c2f56c4 Stop timer for early exit. 2012-06-11 19:09:07 +00:00
Ryan Curtin 2d6e0a71a4 Clean up documentation slightly. 2012-06-11 19:04:00 +00:00
Ryan Curtin f6c77ece51 Add some timers for loading and saving operations. 2012-06-11 19:01:45 +00:00
Ryan Curtin d9cbadfe77 CLI::GetParam<bool> seems to crash, and, add a timer. 2012-06-11 18:59:42 +00:00
Ryan Curtin 0d0b7f8d92 This check changes because we're loading X and not transposing. 2012-06-11 18:40:29 +00:00
Ryan Curtin c9f5c1b693 Clean up LARS executable. 2012-06-11 18:36:49 +00:00