Commit Graph
11962 Commits
Author SHA1 Message Date
Ryan Curtin cf6bff87f8 Adapted patch from Vahab for #344: incremental algorithm for variance
calculation in Naive Bayes classifier.  This is optional and can be specified in
the NaiveBayesClassifier constructor.
2014-04-15 15:23:52 +00:00
Ryan Curtin 154cb575eb Overhaul implementation; do not use gmm::phi(). This gives serious speedup, as
high-dimensional matrix inverses are not being calculated.  The previous calls
to gmm::phi() would invert a diagonal matrix without being able to assume that
the matrix was diagonal.  This explains the very very poor benchmarking results
for nbc in mlpack.
2014-04-14 20:11:16 +00:00
Ryan Curtin 91433326f1 Don't transpose on save; one point per line. 2014-04-14 20:10:29 +00:00
Ryan Curtin 47bb810130 Get the number of classes correctly. 2014-04-14 19:26:36 +00:00
Ryan Curtin 206648b183 Don't transpose the labels upon loading; expect that they are going to be one
line per label.
2014-04-14 19:16:48 +00:00
Ryan Curtin 4817caf8c0 Minor documentation fix, and sometimes the labels need to be transposed. 2014-04-14 19:16:06 +00:00
Ryan Curtin 6013414793 Add rank parameter. This might not be applicable to when we have other
decompositions, though.
2014-04-14 18:20:22 +00:00
Ryan Curtin c5561c6965 Modify test for new RangeSearch API. 2014-04-09 22:27:19 +00:00
Ryan Curtin 0081a0056a Patch from Saheb for #301; refactor RangeSearch constructors so that leafSize is
not a parameter.
2014-04-09 22:27:08 +00:00
Ryan Curtin 262ebe29af Spelling fix; thanks Barak! 2014-04-07 22:35:04 +00:00
Ryan Curtin f200cd5a3f Update documentation due to API change. 2014-04-07 17:59:18 +00:00
Ryan Curtin ac7502e9ed Clean up implementation of GetRecommendations(). 2014-04-07 15:26:22 +00:00
Ryan Curtin 297fcc3210 Document API change in an attempt to piss people off less when their programs
are broken.
2014-04-07 15:22:54 +00:00
Ryan Curtin 4e84e9f347 Patch from Siddharth for #342. 2014-04-07 15:19:24 +00:00
Ryan Curtin 58f92ce883 Actually catch all of the instances where single quotes start lines. 2014-04-07 14:41:28 +00:00
Ryan Curtin 0d106c9efd Doxygen fix so that local paths aren't included in the built documentation. 2014-04-07 14:20:21 +00:00
Ryan Curtin dde19f38a6 Use const reference parameter so it works with temporaries too. 2014-03-31 15:19:23 +00:00
Ryan Curtin 93beaa816f Whatever bug used to be here before isn't here now. 2014-03-31 13:51:10 +00:00
Ryan Curtin e1fdb81761 Add new contributor. 2014-03-28 16:59:47 +00:00
Ryan Curtin 4e1d178dc7 Annotate changes to LRSDP. 2014-03-28 15:53:35 +00:00
Ryan Curtin 57b9be5f35 Better ToString() output. 2014-03-28 15:53:27 +00:00
Ryan Curtin cc8bfb95dd Refactor LRSDP into the main class and a separate function (LRSDPFunction).
This is a patch from Abhishek Laddha for #318.
2014-03-28 15:38:26 +00:00
Ryan Curtin 0618cdd415 Fix minor error that I didn't correct last time. 2014-03-25 14:09:10 +00:00
Ryan Curtin bd1ff33580 Don't use the squared Euclidean distance. 2014-03-25 14:03:12 +00:00
Ryan Curtin b272f363c3 Don't use the SquaredEuclideanDistance. 2014-03-25 14:02:42 +00:00
Ryan Curtin 23fc3acb6b Make parameter const because const-correctness is a good thing. 2014-03-25 12:47:57 +00:00
Ryan Curtin ad4ae0afe1 Add new contributor. 2014-03-24 20:31:58 +00:00
Yash Vadalia a2feea8ccd Incorporate patch from yashdv to move splitting procedure to a different class. 2014-03-24 18:52:43 +00:00
Ryan Curtin 7973e83f94 Update documentation to reflect changes in RangeSearch. 2014-03-13 15:07:38 +00:00
birm dba130cdb3 Fixed arma_traits by removing duplicate template instantiation, so that visual studio would be able to use it too. 2014-03-12 03:51:08 +00:00
Ryan Curtin bc49c7f967 Through the magic of regular expressions, I've refactored this test to use
kd-trees with one-point leaves.
2014-03-11 18:53:34 +00:00
Ryan Curtin 4539ee95d5 Oops, use single-tree for the second iteration. 2014-03-11 18:43:15 +00:00
Ryan Curtin a3cb786fe9 Make the ExhaustiveSyntheticTest use kd-trees with a leafSize of 1. This
changeset brought to you by the magic of regular expressions, which mostly
worked...
2014-03-11 16:39:00 +00:00
Ryan Curtin d095f52188 Fix to go with patch from Saheb... forgot to check this in earlier. 2014-03-11 15:42:28 +00:00
Ryan Curtin b8747ec7df Modified patch from Saheb for #301; this unifies the constructors for
NeighborSearch so they work with all tree types.  The modifications I've made
make it so that the referenceCopy and queryCopy matrices aren't full copies of
the referenceSet and querySet matrices when the tree doesn't modify them (in the
case where they aren't modified, it's not necessary to copy them, that's just a
waste of memory).
2014-03-10 21:15:41 +00:00
Ryan Curtin 1c88d1e896 What was I thinking? This is a _far_ better solution than r16359. 2014-03-10 12:20:38 +00:00
Ryan Curtin aa321b0765 Better rule, which forces the score to 0 for AllkNN. Not sure if it'll work for AllkFN. Also, I think there may be a bug in the traversal info handling for the BinarySpaceTree DualTreeTraverser. 2014-03-10 11:51:37 +00:00
Ryan Curtin cd286caca1 Remove incorrect comments. 2014-03-09 17:21:52 +00:00
Ryan Curtin b49848a2b6 Ok, handle NaNs correctly, and also check this in in trunk, not in the tags... 2014-03-09 05:13:00 +00:00
Ryan Curtin 83ea01d4bb Actually use the right parameter name. 2014-03-05 18:36:00 +00:00
Ryan Curtin bb171e3ee2 Fix regression in r16308, which slowed down cover tree traversals by potentially
up to 50% (at least, that's the slowdown I saw...).
2014-03-03 13:47:31 +00:00
Ryan Curtin efda5e0463 Patch from Siddharth: templatize CF to accept arbitrary types of factorizers. 2014-03-02 04:39:49 +00:00
Ryan Curtin bf2ad9c99e Remove numberOfPrunes variable, and initialize baseCase (#336). 2014-03-01 19:38:10 +00:00
Ryan Curtin a330d5f151 Initialize uninitialized variable (#336). 2014-03-01 19:37:38 +00:00
Ryan Curtin 4421441c0e The maxLeafSize parameter is unused (other than an assert) so remove it
entirely.
2014-03-01 19:37:19 +00:00
Ryan Curtin 48116d2412 Remove numPrunes -- it isn't used. 2014-03-01 19:04:41 +00:00
Ryan Curtin 1d8bfc6649 Remove using directive that has been there for six years. Sigh... 2014-02-28 01:48:03 +00:00
Ryan Curtin fd7a16298b Explicitly use namespace mlpack::neighbor. 2014-02-28 01:47:07 +00:00
Ryan Curtin 3784abf328 Some changes to LaTeX options in the Doxyfile. 2014-02-28 01:06:23 +00:00
Ryan Curtin 906b91f460 Update for changed CF API (patch from Siddharth). 2014-02-22 15:55:34 +00:00