CNum 0.2.1
CPU-optimized ML library for C++
Loading...
Searching...
No Matches
ModelUtils.h File Reference

Go to the source code of this file.

Namespaces

namespace  CNum
 The umbrella namespace from which you can access all modules of CNum.
namespace  CNum::Utils
 Utilities.
namespace  CNum::Utils::ModelUtils
 Utilities used in CNum ML models.

Functions

::std::unique_ptr< CNum::DataStructs::Matrix< double >[] > CNum::Utils::ModelUtils::train_test_split (const CNum::DataStructs::Matrix< double > &X, const CNum::DataStructs::Matrix< double > &y, double test_percentage=0.2, bool shuffle=true, uint64_t logical_id=0)
 Split a data set into train and split subsets.
void CNum::Utils::ModelUtils::print_tree (CNum::Model::Tree::TreeBoosterNode *node, int spaces=10)
 Print a tree (left to right instead of top down).