Ryan Curtin
c4d0ef41bc
Handle cases where scales are 0 correctly.
2014-01-14 20:50:23 +00:00
Ryan Curtin
4c63690e40
This wasn't actually calculating the variance correctly.
2014-01-14 20:50:03 +00:00
Ryan Curtin
3bb83801a8
svn:ignore --> 'build*' in case you have multiple build directories.
2014-01-14 20:49:06 +00:00
Ryan Curtin
1ebce66703
When using the constructors that don't specify a model, make sure we create an
...
actual valid GMM and not just random memory.
2014-01-14 17:46:13 +00:00
Ryan Curtin
2307a999f2
Increase precision of saves.
2014-01-09 17:16:32 +00:00
Ryan Curtin
bc5f91efc4
Add Mudit's name to the list of contributors.
2014-01-07 04:23:32 +00:00
Ryan Curtin
0bc57af0d5
Update copyright for the new year.
2014-01-07 04:19:56 +00:00
Ryan Curtin
e52724d388
Ignore svnversion.hpp.
2014-01-03 18:30:25 +00:00
Ryan Curtin
4a0dc43559
Fix error so that core.hpp is properly included.
2014-01-03 18:29:31 +00:00
Ryan Curtin
33e64ac417
Add svnversion.hpp to list of sources to track, if necessary.
2014-01-03 18:29:12 +00:00
Ryan Curtin
f2f1146005
Remove redundant check for working copy.
2014-01-03 18:15:11 +00:00
Ryan Curtin
1b3acf2844
Safe check for if we are in an svn repo.
2014-01-03 18:14:21 +00:00
Ryan Curtin
64dd830f21
Fix dependency on stringstream.
2014-01-03 18:00:12 +00:00
Ryan Curtin
4e508754a7
CMake scripts to find and update svnversion.hpp, if necessary.
2014-01-03 17:59:49 +00:00
Ryan Curtin
169204e562
CMake script to create svnversion.hpp, if needed.
2014-01-03 17:58:58 +00:00
Ryan Curtin
bc4bd66321
Update so that it gets compiled into libmlpack.so.
2014-01-03 16:56:41 +00:00
Marcus Edel
cb3225f42d
Fix typo: furthest <-> nearest.
2013-12-29 17:10:53 +00:00
Ryan Curtin
3928ccc273
Link to tutorial on versioning information in core.hpp.
2013-12-29 04:30:31 +00:00
Ryan Curtin
0487767b70
Oops, a typo.
2013-12-29 04:30:04 +00:00
Ryan Curtin
215a590bbd
Some documentation on versioning information.
2013-12-29 04:29:33 +00:00
Ryan Curtin
78a747d561
Add information so a version can be obtained easily during runtime and also at
...
compile time.
2013-12-29 04:17:14 +00:00
Ryan Curtin
3ff2ed2b95
I don't remember doing this, and I have no idea when it was, but hey, using
...
namespace std in cpp files is a cool idea.
2013-12-29 04:16:52 +00:00
Ryan Curtin
dbc690fc95
Add main executable for logistic regression.
2013-12-29 03:43:49 +00:00
Ryan Curtin
02535ac1ae
Don't hold the optimizer and error function since they are only needed at
...
construction time.
2013-12-29 02:05:47 +00:00
Ryan Curtin
b3d77bb973
Remove predictors and responses because they don't need to be stored by the
...
LogisticRegression class, and then add a constructor so you can pass a given set
of parameters.
2013-12-12 00:17:19 +00:00
Ryan Curtin
17d04605bf
Clarify comment.
2013-11-27 19:20:29 +00:00
Ryan Curtin
af4718ed55
Update test for positive regularization... oops...
2013-11-25 06:02:59 +00:00
Ryan Curtin
51e0a9c836
Regularization gets subtracted, not added. Thanks to Sumedh for pointing this
...
out.
2013-11-25 05:59:11 +00:00
Ryan Curtin
6818f76717
Implement FurthestPointDistance() for cover trees.
2013-11-22 18:49:34 +00:00
Ryan Curtin
61e3aa2663
Test BinarySpaceTree::FurthestPointDistance().
2013-11-22 17:02:09 +00:00
Ryan Curtin
be55f84d95
Add FurthestPointDistance() function.
2013-11-22 17:01:59 +00:00
Ryan Curtin
c19d9896ec
Update history file incrementally, because doing this all at once at release
...
time is difficult.
2013-11-21 18:40:14 +00:00
Ryan Curtin
8b4363b5cc
Test constructor that takes an instantiated optimizer.
2013-11-21 18:34:50 +00:00
Ryan Curtin
5b85eb566d
Add a constructor that allows passing an instantiated optimizer.
2013-11-21 18:34:37 +00:00
Ryan Curtin
ac9630f129
Add function to get predictors and responses.
2013-11-21 18:28:01 +00:00
Ryan Curtin
f72372a24a
Add function to get the function that is being optimized.
2013-11-21 18:27:40 +00:00
Ryan Curtin
027850970b
Goodbye, slightly misleading documentation.
2013-11-21 17:58:59 +00:00
Ryan Curtin
1293e2f857
Add tests for actual LogisticRegression object.
2013-11-21 16:57:21 +00:00
Ryan Curtin
871cd988da
Refactor LogisticRegression class. LearnModel() can be private, and we can
...
const-ize a lot of the parameters and functions. Also restore functionality to
Predict(), ComputeError(), and ComputeAccuracy(). This does not ever make a
copy of the predictors matrix and doesn't add a column for the intercept, which
is faster.
2013-11-21 15:40:40 +00:00
Ryan Curtin
2965c9f84e
Don't hold lambda in LogisticRegression because it isn't necessary. Also make
...
predictors and responses const because we don't need to modify them.
2013-11-21 14:23:02 +00:00
Ryan Curtin
fbbee5a8c1
Make predictors and responses const.
2013-11-20 16:44:30 +00:00
Ryan Curtin
2701b42569
Make predictors and responses const.
2013-11-20 16:42:09 +00:00
Ryan Curtin
78933d62dd
Refactor tests so that they do not give the extra column of ones for the
...
intercept term.
2013-11-20 16:37:50 +00:00
Ryan Curtin
ae19acebf1
Refactor functions so that they do not expect the extra column of ones for the
...
intercept term.
2013-11-20 16:37:31 +00:00
Ryan Curtin
cfdfb2fe6d
Don't print "Iteration X of 0."; just "Iteration X".
2013-11-18 20:24:34 +00:00
Ryan Curtin
7aa2f49ea9
Remove memory leak ( #310 ). Thanks to bianjiang for pointing this out.
2013-11-18 18:47:02 +00:00
Ryan Curtin
62108e0e49
And this is why I hate maintaining documentation for things that I don't
...
control; it goes out of date really quickly and people get confused...
2013-11-16 17:06:36 +00:00
Ryan Curtin
766a29b3e2
Add a test for the separable Gradient() function.
2013-11-15 18:22:39 +00:00
Ryan Curtin
18beafc912
Add test for regularization in Gradient().
2013-11-15 18:07:41 +00:00
Ryan Curtin
7267140017
No need to multiply by responses[i] or (1 - responses[i]) because those
...
quantities will always be 1.
2013-11-14 18:12:57 +00:00