Skip to main content

MLCore::PredictionWriterConfig

MLCore::PredictionWriterConfig

Configuration for how predictions are written to the DataManager.

#include <PredictionWriter.hpp>

Public Attributes

Name
std::string output_prefix
Prefix for output data keys and group names.
bool write_intervals
Whether to write DigitalIntervalSeries output (one per class).
bool write_probabilities
Whether to write per-class probability AnalogTimeSeries.
bool write_to_putative_groups
Whether to create putative entity groups for TimeEntity predictions.
std::string time_key_str
Time key string for the clock that prediction_times are expressed in.

Public Attributes Documentation

variable output_prefix

std::string output_prefix = "Predicted:";

Prefix for output data keys and group names.

Follows the putative group pattern: “Predicted:Contact”, “Predicted:No Contact”.

variable write_intervals

bool write_intervals = true;

Whether to write DigitalIntervalSeries output (one per class).

Converts contiguous runs of identical predictions into intervals. Output keys: “{output_prefix}{class_name}”

variable write_probabilities

bool write_probabilities = true;

Whether to write per-class probability AnalogTimeSeries.

Only effective if PredictionOutput::class_probabilities is present. Output keys: “{output_prefix}prob_{class_name}”

variable write_to_putative_groups

bool write_to_putative_groups = true;

Whether to create putative entity groups for TimeEntity predictions.

Creates groups named “{output_prefix}{class_name}” containing TimeEntity IDs.

variable time_key_str

std::string time_key_str = "time";

Time key string for the clock that prediction_times are expressed in.

Used to register TimeEntities and set time keys on output data objects. Will be converted to a TimeKey when writing to DataManager.


Updated on 2026-11-13 at 20:25:42 +0000