Fix includes.
This commit is contained in:
@@ -7,7 +7,10 @@
|
||||
#ifndef __MLPACK_CORE_TREE_BINARY_SPACE_TREE_HPP
|
||||
#define __MLPACK_CORE_TREE_BINARY_SPACE_TREE_HPP
|
||||
|
||||
#include <mlpack/core.hpp>
|
||||
#include "bounds.hpp"
|
||||
#include "binary_space_tree/midpoint_split.hpp"
|
||||
#include "binary_space_tree/mean_split.hpp"
|
||||
#include "binary_space_tree/binary_space_tree.hpp"
|
||||
#include "binary_space_tree/single_tree_traverser.hpp"
|
||||
#include "binary_space_tree/single_tree_traverser_impl.hpp"
|
||||
@@ -16,7 +19,5 @@
|
||||
#include "binary_space_tree/breadth_first_dual_tree_traverser.hpp"
|
||||
#include "binary_space_tree/breadth_first_dual_tree_traverser_impl.hpp"
|
||||
#include "binary_space_tree/traits.hpp"
|
||||
#include "binary_space_tree/midpoint_split.hpp"
|
||||
#include "binary_space_tree/mean_split.hpp"
|
||||
|
||||
#endif
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
#define __MLPACK_CORE_TREE_BINARY_SPACE_TREE_BINARY_SPACE_TREE_HPP
|
||||
|
||||
#include <mlpack/core.hpp>
|
||||
#include "midpoint_split.hpp"
|
||||
|
||||
#include "../statistic.hpp"
|
||||
#include "../binary_space_tree.hpp"
|
||||
|
||||
namespace mlpack {
|
||||
namespace tree /** Trees and tree-building procedures. */ {
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
#ifndef __MLPACK_CORE_TREE_COVER_TREE_HPP
|
||||
#define __MLPACK_CORE_TREE_COVER_TREE_HPP
|
||||
|
||||
#include "bounds.hpp"
|
||||
#include <mlpack/core.hpp>
|
||||
#include "cover_tree/first_point_is_root.hpp"
|
||||
#include "cover_tree/cover_tree.hpp"
|
||||
#include "cover_tree/single_tree_traverser.hpp"
|
||||
#include "cover_tree/single_tree_traverser_impl.hpp"
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
#define __MLPACK_CORE_TREE_COVER_TREE_COVER_TREE_HPP
|
||||
|
||||
#include <mlpack/core.hpp>
|
||||
#include <mlpack/core/metrics/lmetric.hpp>
|
||||
#include "first_point_is_root.hpp"
|
||||
|
||||
#include "../statistic.hpp"
|
||||
#include "../cover_tree.hpp"
|
||||
|
||||
namespace mlpack {
|
||||
namespace tree {
|
||||
|
||||
@@ -1121,24 +1121,24 @@ std::string CoverTree<MetricType, RootPointPolicy, StatisticType, MatType>::
|
||||
{
|
||||
std::ostringstream convert;
|
||||
convert << "CoverTree [" << this << "]" << std::endl;
|
||||
convert << "dataset: " << &dataset << std::endl;
|
||||
convert << "point: " << point << std::endl;
|
||||
convert << "scale: " << scale << std::endl;
|
||||
convert << "base: " << base << std::endl;
|
||||
// convert << "StatisticType: " << stat << std::endl;
|
||||
convert << "parent distance : " << parentDistance << std::endl;
|
||||
convert << "furthest child distance: " << furthestDescendantDistance;
|
||||
convert << " dataset: " << &dataset << std::endl;
|
||||
convert << " point: " << point << std::endl;
|
||||
convert << " scale: " << scale << std::endl;
|
||||
convert << " base: " << base << std::endl;
|
||||
convert << " parent distance : " << parentDistance << std::endl;
|
||||
convert << " furthest child distance: " << furthestDescendantDistance;
|
||||
convert << std::endl;
|
||||
convert << "children:";
|
||||
convert << " children:";
|
||||
|
||||
// How many levels should we print? This will print the top two tree levels.
|
||||
if (IsLeaf() == false && parent == NULL)
|
||||
{
|
||||
for (size_t i = 0; i < children.size(); i++)
|
||||
{
|
||||
convert << std::endl << mlpack::util::Indent(children.at(i)->ToString());
|
||||
}
|
||||
}
|
||||
convert << std::endl;
|
||||
convert << " descendants: " << NumDescendants() << std::endl;
|
||||
|
||||
convert << "StatisticType: " << stat << std::endl;
|
||||
|
||||
return convert.str();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user