Skip to content

Commit

Permalink
Make sampling consistent with evaluation
Browse files Browse the repository at this point in the history
Use near nodes to decide which row samples to exclude from sampling instead of
pruning neighbors.
  • Loading branch information
JamesLevitt committed Dec 18, 2018
1 parent 0bf4851 commit e8926d4
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 270 deletions.
26 changes: 13 additions & 13 deletions artifact/sc17gofmm/artifact_sc17gofmm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,19 @@ void test_gofmm_setup
switch ( metric )
{
case GEOMETRY_DISTANCE:
{
assert( X );
/** using geometric splitters from hmlp::tree */
using SPLITTER = tree::centersplit<N_CHILDREN, T>;
using RKDTSPLITTER = tree::randomsplit<N_CHILDREN, T>;
/** GOFMM tree splitter */
SPLITTER splitter;
/** randomized tree splitter */
RKDTSPLITTER rkdtsplitter;
test_gofmm<SPLITTER, RKDTSPLITTER, T>
( X, K, NN, metric, splitter, rkdtsplitter, n, m, k, s, stol, budget, nrhs );
break;
}
//{
// assert( X );
// /** using geometric splitters from hmlp::tree */
// using SPLITTER = tree::centersplit<N_CHILDREN, T>;
// using RKDTSPLITTER = tree::randomsplit<N_CHILDREN, T>;
// /** GOFMM tree splitter */
// SPLITTER splitter;
// /** randomized tree splitter */
// RKDTSPLITTER rkdtsplitter;
// test_gofmm<SPLITTER, RKDTSPLITTER, T>
// ( X, K, NN, metric, splitter, rkdtsplitter, n, m, k, s, stol, budget, nrhs );
// break;
//}
case KERNEL_DISTANCE:
case ANGLE_DISTANCE:
{
Expand Down
Loading

0 comments on commit e8926d4

Please sign in to comment.