MLCoreWidgetStateData
MLCoreWidgetStateData
#include <MLCoreWidgetStateData.hpp>
Public Attributes
| Name | |
|---|---|
| std::string | instance_id Unique instance identifier (matches EditorState::getInstanceId). |
| std::string | display_name Display name shown in dock tab. |
| std::string | feature_tensor_key DataManager key of the TensorData to use as the feature matrix. |
| bool | classification_zscore_normalize Whether to z-score normalize features before classification. |
| std::string | training_region_key DigitalIntervalSeries key defining the training region. |
| std::string | prediction_region_key DigitalIntervalSeries key defining the prediction region (empty = all frames). |
| std::string | validation_region_key DigitalIntervalSeries key defining the validation region (empty = no validation). |
| bool | constrained_decoding For sequence models (HMM), clamp initial state to ground truth at boundaries. |
| bool | hmm_diagonal_covariance Use diagonal covariance for HMM emissions (reduces parameters per state). |
| bool | hmm_gmm_emissions Use Gaussian Mixture Model emissions for HMM (multi-modal per state). |
| int | hmm_num_gaussians Number of Gaussian components per state when using GMM emissions. |
| std::string | label_source_type Label source type: “intervals”, “groups”, or “entity_groups”. |
| std::string | label_interval_key DigitalIntervalSeries key for binary interval-based labels. |
| std::string | label_positive_class_name Class name for the positive class (inside intervals) in interval mode. |
| std::string | label_negative_class_name Class name for the negative class (outside intervals) in interval mode. |
| std::vector< uint64_t > | label_group_ids EntityGroupManager group IDs for group-based labeling. |
| std::string | label_data_key DataManager key for data-entity group labeling (entity_groups mode). |
| std::string | label_event_key DataManager key for event series labeling (events mode). |
| std::string | selected_model_name Registry name of the selected MLModelOperation (e.g. “Random Forest”). |
| std::string | model_parameters_json JSON string of model-specific parameters. |
| bool | balancing_enabled Whether class balancing is enabled. |
| std::string | balancing_strategy Balancing strategy: “subsample” or “oversample”. |
| double | balancing_max_ratio Maximum ratio of majority to minority class samples. |
| bool | cv_enabled Whether leave-one-interval-out cross-validation is enabled. |
| int | max_cv_folds Maximum number of CV folds (0 = disabled, default 5). |
| std::string | output_prefix Prefix for output data keys (e.g. “ml_contact” → “Predicted:contact”). |
| double | probability_threshold Decision threshold for binary classification. |
| bool | output_probabilities Whether to output probability values as AnalogTimeSeries. |
| bool | output_predictions Whether to output predictions as DigitalIntervalSeries. |
| std::string | clustering_tensor_key DataManager key of the TensorData to use for clustering. |
| std::string | clustering_model_name Registry name of the selected clustering algorithm (e.g. “K-Means”). |
| std::string | clustering_output_prefix Output prefix for clustering results. |
| bool | clustering_write_intervals Whether to write cluster intervals to DataManager. |
| bool | clustering_write_probabilities Whether to write cluster probabilities (if model supports them). |
| bool | clustering_zscore_normalize Whether to normalize features (z-score) before clustering. |
| std::string | dim_reduction_tensor_key DataManager key of the TensorData to reduce. |
| std::string | dim_reduction_model_name Registry name of the selected dim reduction algorithm (e.g. “PCA”). |
| std::string | dim_reduction_output_key Output key for the reduced TensorData. |
| int | dim_reduction_n_components Number of output components. |
| bool | dim_reduction_zscore_normalize Whether to z-score normalize features before reduction. |
| bool | dim_reduction_supervised Whether the dim reduction panel is in supervised mode. |
| std::string | dim_reduction_label_source_type Label source type for supervised dim reduction: “intervals”, “groups”, “entity_groups”, “events”. |
| std::string | dim_reduction_label_interval_key DigitalIntervalSeries key for interval-based labels (supervised mode). |
| std::string | dim_reduction_label_positive_class Positive class name for binary label modes (supervised mode). |
| std::string | dim_reduction_label_negative_class Negative class name for binary label modes (supervised mode). |
| std::string | dim_reduction_label_event_key DigitalEventSeries key for event-based labels (supervised mode). |
| std::vector< uint64_t > | dim_reduction_label_group_ids EntityGroupManager group IDs for group-based labels (supervised mode). |
| std::string | dim_reduction_label_data_key DataManager key for data-entity group labeling (supervised mode). |
| std::string | dim_reduction_training_region_key DigitalIntervalSeries key defining the training region for supervised dim reduction. |
| int | active_tab Active workflow tab index (0 = classification, 1 = clustering). |
Public Attributes Documentation
variable instance_id
std::string instance_id;Unique instance identifier (matches EditorState::getInstanceId).
variable display_name
std::string display_name = "ML Workflow";Display name shown in dock tab.
variable feature_tensor_key
std::string feature_tensor_key;DataManager key of the TensorData to use as the feature matrix.
variable classification_zscore_normalize
bool classification_zscore_normalize = true;Whether to z-score normalize features before classification.
variable training_region_key
std::string training_region_key;DigitalIntervalSeries key defining the training region.
variable prediction_region_key
std::string prediction_region_key;DigitalIntervalSeries key defining the prediction region (empty = all frames).
variable validation_region_key
std::string validation_region_key;DigitalIntervalSeries key defining the validation region (empty = no validation).
variable constrained_decoding
bool constrained_decoding = true;For sequence models (HMM), clamp initial state to ground truth at boundaries.
variable hmm_diagonal_covariance
bool hmm_diagonal_covariance = false;Use diagonal covariance for HMM emissions (reduces parameters per state).
variable hmm_gmm_emissions
bool hmm_gmm_emissions = false;Use Gaussian Mixture Model emissions for HMM (multi-modal per state).
variable hmm_num_gaussians
int hmm_num_gaussians = 3;Number of Gaussian components per state when using GMM emissions.
variable label_source_type
std::string label_source_type = "groups";Label source type: “intervals”, “groups”, or “entity_groups”.
variable label_interval_key
std::string label_interval_key;DigitalIntervalSeries key for binary interval-based labels.
variable label_positive_class_name
std::string label_positive_class_name = "Inside";Class name for the positive class (inside intervals) in interval mode.
variable label_negative_class_name
std::string label_negative_class_name = "Outside";Class name for the negative class (outside intervals) in interval mode.
variable label_group_ids
std::vector< uint64_t > label_group_ids;EntityGroupManager group IDs for group-based labeling.
variable label_data_key
std::string label_data_key;DataManager key for data-entity group labeling (entity_groups mode).
variable label_event_key
std::string label_event_key;DataManager key for event series labeling (events mode).
variable selected_model_name
std::string selected_model_name = "Random Forest";Registry name of the selected MLModelOperation (e.g. “Random Forest”).
variable model_parameters_json
std::string model_parameters_json;JSON string of model-specific parameters.
variable balancing_enabled
bool balancing_enabled = false;Whether class balancing is enabled.
variable balancing_strategy
std::string balancing_strategy = "subsample";Balancing strategy: “subsample” or “oversample”.
variable balancing_max_ratio
double balancing_max_ratio = 1.0;Maximum ratio of majority to minority class samples.
variable cv_enabled
bool cv_enabled = false;Whether leave-one-interval-out cross-validation is enabled.
variable max_cv_folds
int max_cv_folds = 5;Maximum number of CV folds (0 = disabled, default 5).
variable output_prefix
std::string output_prefix = "ml";Prefix for output data keys (e.g. “ml_contact” → “Predicted:contact”).
variable probability_threshold
double probability_threshold = 0.5;Decision threshold for binary classification.
variable output_probabilities
bool output_probabilities = true;Whether to output probability values as AnalogTimeSeries.
variable output_predictions
bool output_predictions = true;Whether to output predictions as DigitalIntervalSeries.
variable clustering_tensor_key
std::string clustering_tensor_key;DataManager key of the TensorData to use for clustering.
variable clustering_model_name
std::string clustering_model_name = "K-Means";Registry name of the selected clustering algorithm (e.g. “K-Means”).
variable clustering_output_prefix
std::string clustering_output_prefix = "Cluster:";Output prefix for clustering results.
variable clustering_write_intervals
bool clustering_write_intervals = true;Whether to write cluster intervals to DataManager.
variable clustering_write_probabilities
bool clustering_write_probabilities = true;Whether to write cluster probabilities (if model supports them).
variable clustering_zscore_normalize
bool clustering_zscore_normalize = false;Whether to normalize features (z-score) before clustering.
variable dim_reduction_tensor_key
std::string dim_reduction_tensor_key;DataManager key of the TensorData to reduce.
variable dim_reduction_model_name
std::string dim_reduction_model_name = "PCA";Registry name of the selected dim reduction algorithm (e.g. “PCA”).
variable dim_reduction_output_key
std::string dim_reduction_output_key = "reduced";Output key for the reduced TensorData.
variable dim_reduction_n_components
int dim_reduction_n_components = 2;Number of output components.
variable dim_reduction_zscore_normalize
bool dim_reduction_zscore_normalize = true;Whether to z-score normalize features before reduction.
variable dim_reduction_supervised
bool dim_reduction_supervised = false;Whether the dim reduction panel is in supervised mode.
variable dim_reduction_label_source_type
std::string dim_reduction_label_source_type = "intervals";Label source type for supervised dim reduction: “intervals”, “groups”, “entity_groups”, “events”.
variable dim_reduction_label_interval_key
std::string dim_reduction_label_interval_key;DigitalIntervalSeries key for interval-based labels (supervised mode).
variable dim_reduction_label_positive_class
std::string dim_reduction_label_positive_class = "Inside";Positive class name for binary label modes (supervised mode).
variable dim_reduction_label_negative_class
std::string dim_reduction_label_negative_class = "Outside";Negative class name for binary label modes (supervised mode).
variable dim_reduction_label_event_key
std::string dim_reduction_label_event_key;DigitalEventSeries key for event-based labels (supervised mode).
variable dim_reduction_label_group_ids
std::vector< uint64_t > dim_reduction_label_group_ids;EntityGroupManager group IDs for group-based labels (supervised mode).
variable dim_reduction_label_data_key
std::string dim_reduction_label_data_key;DataManager key for data-entity group labeling (supervised mode).
variable dim_reduction_training_region_key
std::string dim_reduction_training_region_key;DigitalIntervalSeries key defining the training region for supervised dim reduction.
variable active_tab
int active_tab = 0;Active workflow tab index (0 = classification, 1 = clustering).
Updated on 2026-11-13 at 20:25:39 +0000