|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
Bundled dataset: features, responses, and group labels. More...
#include <DataPacket.hpp>
Public Member Functions | |
| DataPacket () | |
| DataPacket (types::FeatureMatrix const &x, types::Vector< types::Response > const &y, std::set< types::Response > const &groups, std::vector< std::string > const &group_names={}, std::vector< std::string > const &feature_names={}) | |
| DataPacket (types::FeatureMatrix const &x, types::Vector< types::Response > const &y, std::vector< std::string > const &group_names={}, std::vector< std::string > const &feature_names={}) | |
Public Attributes | |
| std::vector< std::string > const | feature_names |
| Original feature column names from the CSV header. | |
| std::vector< std::string > const | group_names |
| Original group label names, indexed by integer code. | |
| std::set< types::Response > const | groups |
| Set of distinct group labels. | |
| types::FeatureMatrix const | x |
| Feature matrix (n × p). | |
| types::Vector< types::Response > const | y |
| Response vector (n). | |
Bundled dataset: features, responses, and group labels.
Convenience struct that groups a feature matrix, a response vector, and the set of unique group labels. Used primarily for passing data through the training pipeline.
|
inline |
|
inline |
|
inline |
| std::vector<std::string> const ppforest2::stats::DataPacket::feature_names |
Original feature column names from the CSV header.
When populated, feature_names[j] is the header label for column j of x. Empty when data is simulated.
| std::vector<std::string> const ppforest2::stats::DataPacket::group_names |
Original group label names, indexed by integer code.
When populated, group_names[i] is the original string label that maps to integer code i. Empty when data is not read from CSV (e.g., simulated data).
| std::set<types::Response> const ppforest2::stats::DataPacket::groups |
Set of distinct group labels.
| types::FeatureMatrix const ppforest2::stats::DataPacket::x |
Feature matrix (n × p).
| types::Vector<types::Response> const ppforest2::stats::DataPacket::y |
Response vector (n).