Ryan Curtin
952cca271b
Update regexes to correctly parse version information for older versions of Armadillo.
2010-11-18 22:12:10 +00:00
Ryan Curtin
a93c694cb7
First pass at version requirements for Armadillo. One thing left to do; when looking at version.hpp (not arma_version.hpp) the syntax is different, so I need to rewrite the regular expressions.
2010-11-18 19:56:32 +00:00
gcolon7
ca61cfa603
Undid a horrible mistake
2010-11-18 19:00:57 +00:00
gcolon7
a329202aef
changed math::Pow for std::pow wherever it was called in the mlpack and contrib directories
2010-11-17 20:53:08 +00:00
gcolon7
825270e1fe
Missed a math::Pow to std::pow in optimization/lbfgs/optimization_utils.h
2010-11-17 20:14:11 +00:00
gcolon7
012b3724f8
Fixed optimization/lbfgs/lbfgs_impl.h & optimization_utils.h so that they use std::pow instead of math::Pow. Also added a cmath include in fastlib.h
2010-11-17 20:12:20 +00:00
Ryan Curtin
a5cd1457cc
Fix "translation" errors in DeflationGaussUpdate_() and fix spelling in comment.
2010-11-15 19:05:48 +00:00
Ryan Curtin
aaf45a7d79
Remove some amount of debugging output. Fix DeflationLogCoshUpdate_() (was missing a "- n" term) so that FastICA now performs nearly identically to the trunk implementation.
...
Sometimes signs of output components will be different, but any other differences are trivial; it extracts independent components successfully.
2010-11-15 17:03:40 +00:00
Ryan Curtin
424f749c1a
Apply changes from r5648 to fastlib-stl branch (allow selection of number of independent components).
2010-11-01 20:00:34 +00:00
Ryan Curtin
e95f4ec8c7
Include arma_extend files in build and then install them to the include/ directory.
2010-11-01 03:53:33 +00:00
Ryan Curtin
14af8cb147
Apply use of unsafe_col() to allnn and allkfn for speed improvements.
2010-10-27 21:47:25 +00:00
Ryan Curtin
e7909a2d9d
Improve speed of AllkNN methods by using new armadillo mat::unsafe_col() method (returns an arma::vec alias which uses shared memory from the matrix).
...
The code now requires armadillo-0.9.90, since that function was new as of that version.
2010-10-27 20:46:16 +00:00
Ryan Curtin
a241f43683
Speed improvements for MinDistanceSq().
2010-10-27 20:44:55 +00:00
Ryan Curtin
b7ddec5249
Significantly improve (by a factor of 1.5 or more) DistanceSqEuclidean function.
2010-10-26 18:32:10 +00:00
ssharfraz3
9c28da0de6
2010-10-20 16:23:21 +00:00
ssharfraz3
38803c0d60
2010-10-20 13:07:42 +00:00
ssharfraz3
f4d43965c8
2010-10-20 12:37:01 +00:00
ssharfraz3
848718dc30
2010-10-20 12:05:47 +00:00
ssharfraz3
52445dd863
2010-10-20 04:15:59 +00:00
James Cline
6b6d0a31fe
Uses data::Save to save as a CSV file
2010-10-07 16:32:13 +00:00
James Cline
84057f3d60
Works correctly now, just need to get the output to be in csv format.
2010-10-05 19:21:25 +00:00
James Cline
f515b272d2
naive_bayes compiles now. Currently untested. Could also possibly use some cleaning up still.
...
Changed out Matrix -> arma::mat, Vector -> arma::vec, added std::vector where appropriate. Some std::vectors might should be changed to arma::vec.
No longer need math_functions.h for this.
2010-09-30 18:05:37 +00:00
Ryan Curtin
3b3502bc06
FastICA now compiles, but I'm sure it doesn't work, and it hasn't been tested. The vast majority of methods from lin_alg.h have been pruned as they are no longer necessary.
2010-09-22 15:53:31 +00:00
James Cline
27d9f5cb2d
assert() undefined, added #include <assert.h>
2010-09-22 14:10:49 +00:00
Ryan Curtin
ab03ff3233
Rewrite FastICA Orthogonalize() method and write a test for it.
2010-09-16 18:08:51 +00:00
Ryan Curtin
5b6bd24750
Extend functionality of Armadillo; cov() operates like Octave, but what we want is
...
cov(trans()). However, that incurs a speed penalty with trans(), so I wrote ccov()
(column-based covariance) which does what we want without that speed penalty. I'll
submit the patch to Armadillo sometime, but for now we'll just include it with
arma_extend.h.
2010-09-16 18:07:26 +00:00
Ryan Curtin
074c8e6495
Rewrite WhitenUsingEig(). Fix simple (yet fatal) bug in Center(). Test case for WhitenUsingEig() also added, but perhaps at some point should be made more thorough.
2010-09-08 21:56:38 +00:00
Ryan Curtin
38176998dc
No. We will not be outputting BLACK text. No.
2010-09-02 17:30:33 +00:00
James Cline
9c336105b9
Switched over kernel_pca stuff to use arma & std.
...
Does not compile, needs changes to be made to la and SparseMatrix.
2010-08-24 15:31:48 +00:00
James Cline
7935acce6d
Make parameter passing to SMO::InitPara sane.
2010-07-27 18:50:30 +00:00
James Cline
1413db1d5f
The svm_r learner now "works" for linear and gaussian kernels for training and testing.
...
After fixing the runtime error in trunk, the results were verified to be identical.
2010-07-27 16:45:45 +00:00
James Cline
a9313711c8
Works for svm_c learner, linear or gaussian kernels for training and testing.
...
svm_r learner is broken, even in trunk, it seems.
2010-07-27 15:37:02 +00:00
James Cline
e04ee20e36
Fixed memory leak.
2010-07-16 13:29:34 +00:00
James Cline
e4efc7eb33
Incorrect matrix access via [] instead of (x,y).
...
Why did this even compile?
2010-07-13 19:43:59 +00:00
James Cline
fa6f9505ab
Added some bounds checking
2010-07-13 14:28:36 +00:00
James Cline
3ae08c385d
A couple comment updates to reflect ArrayList -> std::vector change
2010-07-07 14:57:53 +00:00
James Cline
c05622f441
Passes its test now.
...
Removed pointless \0 checks, unless they are explicitly in the file (why would they be?) this is unecessary.
Changed from manually resizing vectors to just clearing them.
2010-07-07 14:55:37 +00:00
James Cline
0338a1df20
The textfile_test now passes.
2010-06-30 18:45:56 +00:00
Ryan Curtin
c6b583e301
Convert linalg__private::Center() to armadillo. Created unit test file, because damn, these things get complex and I want to know that they're working right.
2010-06-25 23:31:08 +00:00
Ryan Curtin
811eac3886
Remove Vector and Matrix and ArrayList uses from emst method. There is no test for emst, so that will have to be done.
2010-06-25 00:19:08 +00:00
Ryan Curtin
3076fa66a6
Build union_find_test target
2010-06-25 00:18:39 +00:00
Ryan Curtin
53cae8db56
Fix main executable to stop using Matrix or Vector or ArrayList entirely.
2010-06-24 00:13:01 +00:00
Ryan Curtin
bc1baefb05
Fix allkfn to not use Matrix or Vector anywhere. This one was very easy because it's so similar to allknn. Could it be... time for refactoring into a sensible hierarchy to maximize code reuse and minimize the codebase? Well... not yet...
2010-06-24 00:10:31 +00:00
Ryan Curtin
64d5a146d7
We require different modifiable input matrices as input to AllkNN for now. That will have to be changed. (tree generation modifies the matrix)
2010-06-23 23:52:00 +00:00
Ryan Curtin
80513dfd59
THIS IS YOUR BRAIN ON DRUGS
2010-06-23 23:50:43 +00:00
Ryan Curtin
fe5e17f822
Propagate change from trunk CMakeLists.txt to branch... properly use DEBUG definition when told to
2010-06-23 23:09:16 +00:00
Ryan Curtin
66300a0d06
Add debug option to stl branch
2010-06-23 21:17:21 +00:00
Ryan Curtin
ad8d868ca7
Remove Matrix, Vector, and ArrayList classes from allknn. Compiles, but test does not pass.
2010-06-23 21:17:05 +00:00
Ryan Curtin
6dde3d21e3
Remove last references and uses of Matrix from AllNN class.
2010-06-23 21:03:52 +00:00
Ryan Curtin
b3ff9d9bdd
Function specialization is no longer necessary
2010-06-23 21:02:29 +00:00