13 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MAX_SPLIT_HPP 14 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MAX_SPLIT_HPP 31 template<
typename BoundType,
typename MatType = arma::mat>
80 return split::PerformSplit<MatType, RPTreeMaxSplit>(data, begin, count,
103 std::vector<size_t>& oldFromNew)
105 return split::PerformSplit<MatType, RPTreeMaxSplit>(data, begin, count,
106 splitInfo, oldFromNew);
115 template<
typename VecType>
133 static bool GetSplitVal(
const MatType&
data,
146 #endif // MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MAX_SPLIT_HPP static size_t PerformSplit(MatType &data, const size_t begin, const size_t count, const SplitInfo &splitInfo)
Perform the split process according to the information about the split.
Definition: rp_tree_max_split.hpp:75
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
arma::Col< ElemType > direction
The normal vector to the hyperplane that splits the node.
Definition: rp_tree_max_split.hpp:41
The core includes that mlpack expects; standard C++ includes and Armadillo.
This class splits a node by a random hyperplane.
Definition: rp_tree_max_split.hpp:32
static bool AssignToLeftNode(const VecType &point, const SplitInfo &splitInfo)
Indicates that a point should be assigned to the left subtree.
Definition: rp_tree_max_split.hpp:116
static size_t PerformSplit(MatType &data, const size_t begin, const size_t count, const SplitInfo &splitInfo, std::vector< size_t > &oldFromNew)
Perform the split process according to the information about the split and return the list of changed...
Definition: rp_tree_max_split.hpp:99
MatType::elem_type ElemType
The element type held by the matrix type.
Definition: rp_tree_max_split.hpp:36
An information about the partition.
Definition: rp_tree_max_split.hpp:38
static bool SplitNode(const BoundType &, MatType &data, const size_t begin, const size_t count, SplitInfo &splitInfo)
Split the node by a random hyperplane.
Definition: rp_tree_max_split_impl.hpp:23
ElemType splitVal
The value according to which the node is being split.
Definition: rp_tree_max_split.hpp:43