Commit Graph
13086 Commits
Author SHA1 Message Date
Marcus Edel 89fb9ec142 Style overhaul, and clarify some comments. 2015-05-04 21:13:34 +02:00
Marcus Edel 609ee9c7ad Refactor pooling connection to support 3rd order tensors. 2015-05-04 21:13:34 +02:00
Ryan Curtin 6caf31a493 Fix memory leak and bug. 2015-05-04 11:36:13 -04:00
Ryan Curtin b9d571606d Refactor to use BoundTraits. Remove nextDimension.
The extra overhead of tracking the number of tied dimensions is overkill, when that situation will happen so infrequently in practice.  It used to happen with the BallBound where all dimensions are always the same, but the BoundTraits solution is better.
2015-05-04 11:12:39 -04:00
Ryan Curtin acbf832a79 Add a BoundTraits<> class for template metaprogramming. 2015-05-04 10:20:35 -04:00
Ryan Curtin 744b3268b4 Count base cases and scores correctly. 2015-05-03 21:37:45 -04:00
Ryan Curtin 9d8c55236d Oops, did not apply changes to other overload. 2015-05-03 21:37:37 -04:00
Ryan Curtin 076156df78 This wasn't actually mean split before. Now it is. 2015-05-03 19:34:14 -04:00
Ryan Curtin 77893ce4a5 Make sure the tree doesn't split on the same dimension over and over again when there's a tie. 2015-05-03 19:12:00 -04:00
Ryan Curtin e603caa2af Refactor BinarySpaceTree to use instantiated splitter.
This isn't currently user-passable, but, maybe later.
2015-05-03 18:41:35 -04:00
Marcus Edel 174d2de995 Fix ambiguous constructor. 2015-05-03 22:14:54 +02:00
Marcus Edel d60fca25a2 Add new connection trait. 2015-05-03 22:14:54 +02:00
Marcus Edel f2dcb8fcbc Adapt new design pattern. 2015-05-03 22:14:54 +02:00
Marcus Edel f84079f191 Clean the steepest descent optimizer class and add tensor support. 2015-05-03 22:14:54 +02:00
Marcus Edel 9d714f70c0 Minor style fix. 2015-05-03 22:14:54 +02:00
Marcus Edel f9d6162b04 Swap naming convention. 2015-05-03 22:14:54 +02:00
Marcus Edel c1bfdf3266 Rename pooling connection. 2015-05-03 22:14:54 +02:00
Ryan Curtin 0f31abbdeb Allow the dual-tree traverser to be changed easily.
This probably should be done for the single-tree traverser too, but we'll start here for now.
2015-05-03 00:38:50 +00:00
Ryan Curtin 4379c3398c Revert to older Armadillo syntax. 2015-04-29 15:23:13 -04:00
Ryan Curtin e06ce8f3ac Adapt to new NeighborSearch API. 2015-04-29 14:58:19 -04:00
Ryan Curtin d0a3e9a3ae Fix merge failures. 2015-04-29 14:57:50 -04:00
HurricaneTong 182d4a629c delete obsolete paramater 2015-04-29 14:42:25 -04:00
HurricaneTong 651193842d involve mean to calculate new centroid 2015-04-29 14:42:25 -04:00
HurricaneTong 04d234b789 generate seeds as initial centroids to speed up 2015-04-29 14:39:08 -04:00
HurricaneTong f381fe8ae7 use unsafe_col to speed up 2015-04-29 14:31:09 -04:00
Ryan Curtin 823b8d755f Fix -Wreorder and simplify AllkNN type. 2015-04-29 14:29:55 -04:00
Ryan Curtin ee55885c4f Minor speedup. 2015-04-29 14:28:55 -04:00
Ryan Curtin 51248e4fdf Set radius in initialization list. 2015-04-29 14:28:55 -04:00
Ryan Curtin 12ca0b6ced Specify namespace. 2015-04-29 14:28:55 -04:00
Ryan Curtin 861260890e Style fixes for main file. Also give a bit of informational output when running. 2015-04-29 14:28:55 -04:00
Ryan Curtin 481aa091d3 Style overhaul, and clarify some comments. 2015-04-29 14:28:55 -04:00
Ryan Curtin 96d437be6d Add header guards. 2015-04-29 14:20:46 -04:00
Ryan Curtin dfc6156bc1 Remove 'metric' member; we can use it statically. 2015-04-29 14:19:33 -04:00
HurricaneTong 1df8dc04c1 remove unnecessary kernel traits
UsesSquaredDistance is unnecessary as smart complier can do the same
optimization.
2015-04-29 14:18:33 -04:00
HurricaneTong 22ef07ff7a use SquaredEuclideanDistance
avoid duplicate calculation
2015-04-29 14:16:28 -04:00
HurricaneTong 7a9485bde3 implement Gradient()
as well as GradientForSquaredDistance()
2015-04-29 14:15:49 -04:00
HurricaneTong 6e1e8a9112 only consider points within radius 2015-04-29 14:15:49 -04:00
HurricaneTong 34ac1319be make test in correct order 2015-04-29 14:15:49 -04:00
HurricaneTong 96895bd896 zero duplicate thresh test 2015-04-29 14:15:33 -04:00
HurricaneTong 8121657608 add metric 2015-04-29 14:15:33 -04:00
HurricaneTong 0347c760a3 optimization 2015-04-29 14:15:33 -04:00
HurricaneTong 1ea40f22f0 estimation of duplicate thresh 2015-04-29 14:15:33 -04:00
HurricaneTong 51a0896011 Add test case 2015-04-29 14:15:33 -04:00
HurricaneTong edbc0f1e1f template order 2015-04-29 14:15:33 -04:00
HurricaneTong cd4c0ed61b delete unused header file 2015-04-29 14:15:33 -04:00
HurricaneTong 9543f793d2 support for selecting kernel 2015-04-29 14:15:33 -04:00
HurricaneTong daf77e78f3 implement mean shift algorithm 2015-04-29 14:15:33 -04:00
HurricaneTong 6c004a86f0 Revert "xcode"
This reverts commit 73026af016efabdaa787f187e6fcafc9fa173c53.
2015-04-29 14:15:33 -04:00
HurricaneTong 1bada6d578 xcode 2015-04-29 14:15:33 -04:00
Ryan Curtin ee384655c4 Add batch Predict() method. 2015-04-27 20:24:44 -04:00