13 #ifndef MLPACK_METHODS_HOEFFDING_TREES_BINARY_NUMERIC_SPLIT_INFO_HPP
14 #define MLPACK_METHODS_HOEFFDING_TREES_BINARY_NUMERIC_SPLIT_INFO_HPP
21 template<
typename ObservationType =
double>
27 splitPoint(splitPoint) { }
32 return (value < splitPoint) ? 0 : 1;
36 template<
typename Archive>
43 ObservationType splitPoint;
FirstShim< T > CreateNVP(T &t, const std::string &name, typename boost::enable_if< HasSerialize< T >>::type *=0)
Call this function to produce a name-value pair; this is similar to BOOST_SERIALIZATION_NVP(), but should be used for types that have a Serialize() function (or contain a type that has a Serialize() function) instead of a serialize() function.
void Serialize(Archive &ar, const unsigned int)
Serialize the split (save/load the split points).
The core includes that mlpack expects; standard C++ includes and Armadillo.
size_t CalculateDirection(const eT &value) const
BinaryNumericSplitInfo(const ObservationType &splitPoint)