71 double reference = std::numeric_limits<double>::quiet_NaN();
86 const SvgOptions& options = {});
Definition acquisition_functions.hpp:16
SliceErrorReport ParseSliceErrorReport(std::string_view json)
Reads a pulsatrix.slice_error.v1 document, as ToJson(SliceErrorReport) writes it.
std::string RenderReliabilityDiagramSvg(const std::vector< ReliabilitySeries > &series, const SvgOptions &options={})
A reliability diagram (Guo et al., ICML 2017): each confidence bin's accuracy against its mean confid...
std::string RenderSliceErrorSvg(const SliceErrorReport &report, const SliceErrorViewOptions &view={}, const SvgOptions &options={})
The error on each slice, worst first: a point with its interval, the error of the whole dataset as a ...
ClassificationReport ParseClassificationReport(std::string_view json)
Reads a pulsatrix.classification_report.v1 document, as ToJson(ClassificationReport) writes it.
How well a classifier does on a labeled dataset.
Definition performance.hpp:49
One classifier on a reliability diagram.
Definition performance_views.hpp:44
ClassificationReport report
Definition performance_views.hpp:47
std::string name
Its name in the legend, such as "one network" or "ensemble of 5".
Definition performance_views.hpp:46
PerSliceError()'s result.
Definition performance.hpp:155
RenderSliceErrorSvg()'s settings.
Definition performance_views.hpp:66
int max_slices
Draws at most this many slices, the worst first, and counts the rest.
Definition performance_views.hpp:75
double reference
A value to draw as a reference line, such as conformal prediction's target miss rate alpha; NaN for n...
Definition performance_views.hpp:71
std::string metric
What the error is, for the axis: "error rate", "miss rate", "squared error".
Definition performance_views.hpp:68
std::string reference_label
The reference line's label.
Definition performance_views.hpp:73
Options shared by every SVG chart.
Definition svg.hpp:29
Dependency-free SVG figures from viz documents: bar, waterfall, heatmap, token strip,...