|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
Benchmark report with comparison, display, and export. More...
#include <BenchmarkReport.hpp>
Classes | |
| struct | Markdown |
| Markdown style with emoji indicators. More... | |
| struct | Style |
| Display style for benchmark report output. More... | |
| struct | Text |
| Terminal style with ANSI color decorators. More... | |
Public Member Functions | |
| BenchmarkReport (SuiteResult const &r, std::optional< Baseline > const &b=std::nullopt) | |
| void | print (io::Output &out, Style const &style) const |
| Print formatted results to the given output. | |
| std::string | to_csv () const |
| Export report as CSV, including delta columns when baseline is present. | |
| nlohmann::json | to_json () const |
| Export report as JSON, including deltas when baseline is present. | |
Public Attributes | |
| double | delta_threshold = 1.0 |
Benchmark report with comparison, display, and export.
Constructed with the suite result and an optional baseline. Display style (terminal or markdown) is passed to print. Export methods (to_json, to_csv) are format-independent.
|
inlineexplicit |
| void ppforest2::cli::BenchmarkReport::print | ( | io::Output & | out, |
| Style const & | style ) const |
Print formatted results to the given output.
| std::string ppforest2::cli::BenchmarkReport::to_csv | ( | ) | const |
Export report as CSV, including delta columns when baseline is present.
| nlohmann::json ppforest2::cli::BenchmarkReport::to_json | ( | ) | const |
Export report as JSON, including deltas when baseline is present.
| double ppforest2::cli::BenchmarkReport::delta_threshold = 1.0 |