Skip to main content

MLCore::SupervisedDimReductionPipelineConfig

MLCore::SupervisedDimReductionPipelineConfig

Full configuration for the supervised dimensionality reduction pipeline.

#include <SupervisedDimReductionPipeline.hpp>

Public Attributes

Name
std::string model_name
Name of the supervised dim reduction model (must be in the registry).
MLModelParametersBase const * model_params
Model-specific parameters (optional — nullptr uses defaults).
std::string feature_tensor_key
DataManager key of the TensorData to reduce.
ConversionConfig conversion_config
Feature conversion configuration (NaN dropping, z-score normalization).
LabelAssemblyConfig label_config
Label assembly configuration (which labeling mode to use).
std::string label_interval_key
DataManager key of the DigitalIntervalSeries for interval-based labels.
std::string label_event_key
DataManager key of the DigitalEventSeries for event-based labels.
std::string training_interval_key
DataManager key of a DigitalIntervalSeries defining the training region.
std::string output_key
DataManager key to store the output TensorData under.
std::string time_key_str
Time key string for TimeFrame lookups.
bool defer_dm_writes
If true, skip DataManager writes and store output in the result.

Public Attributes Documentation

variable model_name

std::string model_name = "Logit Projection";

Name of the supervised dim reduction model (must be in the registry).

Defaults to “Logit Projection”. The model must have task type MLTaskType::SupervisedDimensionalityReduction.

variable model_params

MLModelParametersBase const  * model_params = nullptr;

Model-specific parameters (optional — nullptr uses defaults).

variable feature_tensor_key

std::string feature_tensor_key;

DataManager key of the TensorData to reduce.

Must be a 2D tensor whose rows represent observations.

variable conversion_config

ConversionConfig conversion_config;

Feature conversion configuration (NaN dropping, z-score normalization).

variable label_config

LabelAssemblyConfig label_config;

Label assembly configuration (which labeling mode to use).

Choose from: LabelFromIntervals, LabelFromTimeEntityGroups, LabelFromDataEntityGroups, or LabelFromEvents.

variable label_interval_key

std::string label_interval_key;

DataManager key of the DigitalIntervalSeries for interval-based labels.

Required when label_config holds LabelFromIntervals.

variable label_event_key

std::string label_event_key;

DataManager key of the DigitalEventSeries for event-based labels.

Required when label_config holds LabelFromEvents.

variable training_interval_key

std::string training_interval_key;

DataManager key of a DigitalIntervalSeries defining the training region.

When non-empty, only feature rows whose TimeFrameIndex falls within these intervals are used for model fitting. Rows outside the training region are excluded from fitting but are still projected (transformed) by the fitted model. This mirrors the classification pipeline’s training region concept.

When empty (default), all labeled rows are used for fitting.

variable output_key

std::string output_key = "logit_projection";

DataManager key to store the output TensorData under.

variable time_key_str

std::string time_key_str = "time";

Time key string for TimeFrame lookups.

Identifies which TimeFrame the feature tensor’s rows are indexed by.

variable defer_dm_writes

bool defer_dm_writes = false;

If true, skip DataManager writes and store output in the result.

Set this to true when running from a background thread to avoid DataManager observer callbacks modifying Qt widgets from the wrong thread.


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