Ryan Curtin
554f12cdad
Create separate target for moving mlpack headers. This should fix #322 .
2014-07-02 19:01:41 +00:00
Ryan Curtin
fdd7d39214
Move LaplaceDistribution to mlpack::distribution and expand upon it, but then
...
remove MoveDistributionType template parameter from SA class because really, the
MoveControl() function is written specifically to work with the Laplace
distribution. I was incorrect to think it could be templatized so easily. The
implementation of the Laplace distribution has been inlined, too, which may help
it be a little faster.
2014-07-02 18:49:11 +00:00
andrewmw94
dc22914528
commit to ease debugging
2014-07-02 18:36:35 +00:00
andrewmw94
81c458495c
fix build
2014-07-02 17:50:26 +00:00
andrewmw94
e496a4c1e4
rectangle tree traverser
2014-07-02 17:28:23 +00:00
Ryan Curtin
87748e7280
Minor refactoring for brevity.
2014-07-02 13:18:07 +00:00
Ryan Curtin
b617669430
Initial commit of simulated annealing optimizer from Zhihao Lou.
2014-07-02 12:36:20 +00:00
Ryan Curtin
56210009c6
Very simple change to fix build on i386.
2014-07-01 18:20:34 +00:00
andrewmw94
e40fc56cd4
change the tree to store size_t in the nodes and keep the dataset together. Other misc changes.
2014-07-01 16:11:31 +00:00
Udit Saxena
a0b3a94174
Fixed subvec calls.
2014-06-30 18:13:50 +00:00
Udit Saxena
469984022f
Rewinding the code review
2014-06-30 18:13:29 +00:00
Siddharth Agrawal
79fd529120
Combined CosineNode and CosineTree classes.
2014-06-30 15:25:43 +00:00
andrewmw94
bf0e0239e9
memory leak fix
2014-06-30 13:31:15 +00:00
andrewmw94
432fdc011d
Rectangle tree and tests. Construction seems to work.
2014-06-27 15:30:54 +00:00
Siddharth Agrawal
c866e89b43
Adding new cosine_tree code.
2014-06-27 08:28:07 +00:00
Siddharth Agrawal
23a109957c
Removing old cosine_tree code.
2014-06-27 06:48:51 +00:00
sumedhghaisas
c0d7b85e9b
* Changes in AMF abstraction, Termination policy is made first template parameter
...
* fixed minor formatting issues
2014-06-27 00:16:05 +00:00
Ryan Curtin
5800c8adf6
Remove oneClass and defaultClass variables. There is a shortcut that can be taken when all the labels are the same, but the Entropy() function does not appear to be working correctly.
2014-06-26 23:21:07 +00:00
Ryan Curtin
92b60b381e
Document minor fix.
2014-06-26 22:43:10 +00:00
Ryan Curtin
fa80c3f809
Easy fix for #355 .
2014-06-26 22:39:06 +00:00
Marcus Edel
ab276666e1
Fix ambiguous math reference error, to pass the test clang.
2014-06-26 14:33:53 +00:00
Marcus Edel
6624a42112
Assume the response to be the last column of the input file, as pointed out in the description.
2014-06-26 14:25:46 +00:00
sumedhghaisas
835cb662c5
* Templatized termination of AMF matrix factorization
...
* added 3 termination policies
1) SimpleResidueTermination
2) SimpleToleranceTermination
3) ValidationRMSETermination
2014-06-25 22:26:51 +00:00
Ryan Curtin
48ef3f9c67
Remove classLabels; it isn't necessary for the DecisionStump class to hold it.
2014-06-25 19:27:19 +00:00
Ryan Curtin
3b82032a3f
Oops, missed one unused variable.
2014-06-25 00:32:43 +00:00
Ryan Curtin
c2cfc11250
Remove unused variables.
2014-06-25 00:31:35 +00:00
Ryan Curtin
8e76f8f451
For clarity, use separate split and binLabels objects instead of storing the label in the split matrix. No casting is necessary anymore.
2014-06-25 00:22:09 +00:00
Ryan Curtin
0b56b07ad6
Use const double where possible instead of having a variable used throughout the
...
function. This is only for clarity and consistency and is not likely to make
any runtime difference.
2014-06-24 23:29:08 +00:00
Udit Saxena
796acc7e08
Decision Stump test fixed
2014-06-24 18:17:55 +00:00
Ryan Curtin
4ecf78854a
Minor changes to test. const-correctness and comment normalization for Doxygen.
2014-06-24 16:39:28 +00:00
andrewmw94
94f830892d
bug fix. had n_rows when I needed n_cols
2014-06-24 16:07:18 +00:00
andrewmw94
d881abd25e
bug fixes for memory leaks
2014-06-24 16:04:58 +00:00
Udit Saxena
501ef6b14d
Perceptron Added
2014-06-24 06:58:46 +00:00
Ryan Curtin
b3b1d55773
Use bool instead of int.
2014-06-24 05:23:01 +00:00
Ryan Curtin
92ad00f925
First pass: comment standardization, fix header guard names, move .cpp to .hpp
...
because it's all templated functions.
2014-06-24 00:03:24 +00:00
Ryan Curtin
c6baea9dd8
Remove backup file from emacs or some other inferior editor that isn't vim.
2014-06-23 22:26:02 +00:00
Ryan Curtin
dbe8ccb1f9
Significant refactoring of NMF tests. The sparse tests were generally invalid
...
because NMF is not guaranteed to produce a unique decomposition. Instead, now
we test the Frobenius norm. Also, the tolerances needed to be significantly
adjusted because of the new convergence criteria in the AMF class. Lastly, the
SparseNMFRandomDiv test and SparseNMFDefaultTest have been removed because those
update rules seem to often result in NaNs when sparse matrices are used as
input.
2014-06-23 21:45:46 +00:00
Ryan Curtin
6e9ef0e95f
Make a note that this set of update rules often creates lots of NaNs when sparse
...
matrices are used.
2014-06-23 21:39:03 +00:00
Ryan Curtin
d559ce3d83
Fix for convergence, because sometimes the residue may increase (especially with
...
ALS update rules).
2014-06-23 21:38:42 +00:00
Ryan Curtin
452d68a70a
Link against libstd++ when using Clang, and also use -Wall.
2014-06-23 21:06:24 +00:00
andrewmw94
46d0d013f2
bug fixes
2014-06-23 18:49:01 +00:00
andrewmw94
ea8ff93178
keep the root node at the same address.
2014-06-19 20:34:24 +00:00
andrewmw94
661958bab7
more bug fixes
2014-06-19 15:17:29 +00:00
Udit Saxena
5405420117
Fixed armadillo issues, along with removing uninitialized and unused variables
2014-06-13 18:47:39 +00:00
andrewmw94
44bf754ffb
More bug fixes.
2014-06-13 16:40:16 +00:00
Ryan Curtin
bd7aef7910
Fix #334 by ensuring vector accesses don't go out of bounds.
2014-06-12 20:57:22 +00:00
Udit Saxena
4e62dfc67b
Decision Stump added
2014-06-12 20:46:35 +00:00
Ryan Curtin
65f76de712
Remove leafSize parameter from DTB constructor.
2014-06-12 20:15:48 +00:00
Ryan Curtin
304e256207
Inline the simple R tree descent heuristic.
2014-06-11 20:23:37 +00:00
andrewmw94
c380e58c35
more of the same.
2014-06-11 20:12:16 +00:00