MLCore::ClusteringPipelineConfig
MLCore::ClusteringPipelineConfig
Full configuration for the clustering pipeline.
#include <ClusteringPipeline.hpp>
Public Attributes
| Name | |
|---|---|
| std::string | model_name Name of the clustering model to use (must be registered in registry). |
| MLModelParametersBase const * | model_params Model-specific parameters (optional — nullptr uses defaults). |
| std::string | feature_tensor_key DataManager key of the TensorData to use as the feature matrix. |
| ConversionConfig | conversion_config Feature conversion configuration. |
| ClusterAssignmentRegion | assignment_region Where to assign clusters after fitting. |
| ClusteringOutputConfig | output_config Configuration for writing clustering outputs. |
| std::string | time_key_str Time key string for time frame 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;Name of the clustering model to use (must be registered in registry).
E.g., “K-Means”, “DBSCAN”, “Gaussian Mixture Model”
variable model_params
MLModelParametersBase const * model_params = nullptr;Model-specific parameters (optional — nullptr uses defaults).
Must match the concrete parameter type expected by the chosen model. E.g., KMeansParameters, DBSCANParameters, GMMParameters.
variable feature_tensor_key
std::string feature_tensor_key;DataManager key of the TensorData to use as the feature matrix.
The tensor must be 2D. If rows are TimeFrameIndex-typed, time-based output (intervals, groups) is supported. Ordinal rows are also accepted but limit output options.
variable conversion_config
ConversionConfig conversion_config;Feature conversion configuration.
Controls NaN dropping, z-score normalization, etc.
variable assignment_region
ClusterAssignmentRegion assignment_region;Where to assign clusters after fitting.
variable output_config
ClusteringOutputConfig output_config;Configuration for writing clustering outputs.
variable time_key_str
std::string time_key_str = "time";Time key string for time frame lookups.
Identifies which TimeFrame the feature tensor’s rows are indexed by. Used for output writing (intervals, groups).
variable defer_dm_writes
bool defer_dm_writes = false;If true, skip DataManager writes and store output in the result.
When running from a background thread, DataManager writes trigger observer callbacks that may manipulate Qt widgets, which is undefined behavior. Set this to true and perform the writes on the main thread instead.
Updated on 2026-11-13 at 20:25:42 +0000