|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
Per-iteration training statistics. More...
#include <EvaluateResult.hpp>
Public Member Functions | |
| double | mean_te_error () const |
| double | mean_time () const |
| double | mean_tr_error () const |
| double | std_te_error () const |
| double | std_time () const |
| double | std_tr_error () const |
| EvaluateResult | summarize () const |
| Produce an EvaluateResult summary from per-iteration data. | |
| nlohmann::json | to_json () const |
| Serialize to JSON including per-iteration breakdown. | |
Public Attributes | |
| std::string | data_path |
| int | g = 0 |
| Number of groups (0 for regression). | |
| types::Mode | mode = types::Mode::Classification |
| Training mode. | |
| int | n = 0 |
| Number of observations. | |
| std::optional< int > | n_vars |
| int | p = 0 |
| Number of features. | |
| std::optional< float > | p_vars |
| long | peak_rss_bytes = -1 |
| int | size = 0 |
| types::Vector< double > | te_error |
| types::Vector< double > | tr_error |
| types::Vector< long long > | tr_times |
| float | train_ratio = 0.7F |
Per-iteration training statistics.
Stores per-iteration timing and error vectors, plus the process-wide peak RSS. Provides mean/std accessors, an EvaluateResult summary, and full JSON serialization (including a per-iteration breakdown).
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| EvaluateResult ppforest2::io::ModelStats::summarize | ( | ) | const |
Produce an EvaluateResult summary from per-iteration data.
| nlohmann::json ppforest2::io::ModelStats::to_json | ( | ) | const |
Serialize to JSON including per-iteration breakdown.
| std::string ppforest2::io::ModelStats::data_path |
| int ppforest2::io::ModelStats::g = 0 |
Number of groups (0 for regression).
| types::Mode ppforest2::io::ModelStats::mode = types::Mode::Classification |
Training mode.
| int ppforest2::io::ModelStats::n = 0 |
Number of observations.
| std::optional<int> ppforest2::io::ModelStats::n_vars |
| int ppforest2::io::ModelStats::p = 0 |
Number of features.
| std::optional<float> ppforest2::io::ModelStats::p_vars |
| long ppforest2::io::ModelStats::peak_rss_bytes = -1 |
| int ppforest2::io::ModelStats::size = 0 |
| types::Vector<double> ppforest2::io::ModelStats::te_error |
| types::Vector<double> ppforest2::io::ModelStats::tr_error |
| types::Vector<long long> ppforest2::io::ModelStats::tr_times |
| float ppforest2::io::ModelStats::train_ratio = 0.7F |