Skip to main content

MLCore::PredictionRegionConfig

MLCore::PredictionRegionConfig

Specifies where prediction should be performed. More…

#include <ClassificationPipeline.hpp>

Public Attributes

Name
bool predict_all_rows
If true, predict on all rows of the training feature tensor.
std::string prediction_tensor_key
DataManager key for a separate prediction feature tensor.
std::string prediction_interval_key
DataManager key of a DigitalIntervalSeries specifying target output frames.
bool constrained_decoding
For sequence models, clamp the HMM initial distribution at boundaries.

Detailed Description

struct MLCore::PredictionRegionConfig;

Specifies where prediction should be performed.

If predict_all_rows is true, predictions are made on all feature rows (the same tensor used for training — useful for full-dataset scoring).

Otherwise, a separate prediction tensor can be specified via prediction_tensor_key. If neither is set, no prediction is performed.

Public Attributes Documentation

variable predict_all_rows

bool predict_all_rows = true;

If true, predict on all rows of the training feature tensor.

variable prediction_tensor_key

std::string prediction_tensor_key;

DataManager key for a separate prediction feature tensor.

Used when predict_all_rows is false. Must have the same column structure as the training tensor. Rows can be different. If empty and predict_all_rows is false, no prediction is performed.

variable prediction_interval_key

std::string prediction_interval_key;

DataManager key of a DigitalIntervalSeries specifying target output frames.

When non-empty, the pipeline computes the bounding span across training labels and this interval for prediction (so sequence models retain full temporal context), then filters output to only frames within this interval.

When empty and predict_all_rows is true, output includes all frames.

variable constrained_decoding

bool constrained_decoding = true;

For sequence models, clamp the HMM initial distribution at boundaries.

When true and the model is a sequence model (isSequenceModel()), the pipeline overrides the HMM initial state distribution to the last known ground-truth label at prediction segment boundaries. This avoids cold-start inaccuracy when predicting regions adjacent to labeled data.

Ignored for frame-independent models.


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