CNum 0.2.1
CPU-optimized ML library for C++
Loading...
Searching...
No Matches
ModelUtils.h
Go to the documentation of this file.
1#ifndef MODEL_UTILS_H
2#define MODEL_UTILS_H
3
6#include "CNum/Utils/Utils.h"
7
20 ::std::unique_ptr<CNum::DataStructs::Matrix<double>[] > train_test_split(const CNum::DataStructs::Matrix<double> &X,
22 double test_percentage = 0.2,
23 bool shuffle = true,
24 uint64_t logical_id = 0);
25
30 void print_tree(CNum::Model::Tree::TreeBoosterNode *node, int spaces = 10);
31};
32
33#endif
2d array abstraction
Definition Matrix.h:43
A node used in a TreeBooster used for gather and storing information about the decision making proces...
Definition TreeBoosterNode.h:25
Utilities used in CNum ML models.
Definition ModelUtils.h:12
void print_tree(CNum::Model::Tree::TreeBoosterNode *node, int spaces=10)
Print a tree (left to right instead of top down).
::std::unique_ptr< CNum::DataStructs::Matrix< double >[] > 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.