45 std::set<types::GroupId>
const&
groups,
Statistical infrastructure for training and evaluation.
Definition ConfusionMatrix.hpp:11
std::set< types::GroupId > unique(types::GroupIdVector const &column)
Unique group labels in a response vector.
Core numeric type aliases for the ppforest2 library.
Definition Types.hpp:22
std::vector< std::string > Names
Vector of name strings — used uniformly for class labels (group_names[i] is the label for GroupId == ...
Definition Types.hpp:49
Eigen::Matrix< Feature, Eigen::Dynamic, Eigen::Dynamic > FeatureMatrix
Dynamic-size matrix of feature values.
Definition Types.hpp:33
Eigen::Matrix< Outcome, Eigen::Dynamic, 1 > OutcomeVector
Dynamic-size column vector of predictions.
Definition Types.hpp:42
types::FeatureMatrix x
Feature matrix (n × p).
Definition DataPacket.hpp:21
DataPacket(types::FeatureMatrix const &x, types::OutcomeVector const &y, std::set< types::GroupId > const &groups, types::Names const &group_names={}, types::Names const &feature_names={})
Definition DataPacket.hpp:42
types::Names feature_names
Original feature column names from the CSV header.
Definition DataPacket.hpp:40
types::Names group_names
Original group label names, indexed by integer code.
Definition DataPacket.hpp:33
std::set< types::GroupId > groups
Set of distinct group labels (classification only; empty for regression).
Definition DataPacket.hpp:25
DataPacket(types::FeatureMatrix const &x, types::OutcomeVector const &y, types::Names const &group_names={}, types::Names const &feature_names={})
Definition DataPacket.hpp:55
types::OutcomeVector y
Response vector (n) — integer labels (classification) or continuous response (regression).
Definition DataPacket.hpp:23