DimReductionPanel
DimReductionPanel
#include <DimReductionPanel.hpp>
Inherits from QWidget
Public Slots
| Name | |
|---|---|
| void | refreshTensorList() Refresh TensorData key list from DataManager. |
| void | refreshLabelSources() Refresh label source combos from DataManager. |
Public Signals
| Name | |
|---|---|
| void | runRequested() Emitted when the user clicks “Run Reduction” in unsupervised mode. |
| void | supervisedRunRequested() Emitted when the user clicks “Run Reduction” in supervised mode. |
| void | tensorSelectionChanged(QString const & key) Emitted when the selected tensor changes. |
Public Functions
| Name | |
|---|---|
| DimReductionPanel(std::shared_ptr< MLCoreWidgetState > state, std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr]) | |
| ~DimReductionPanel() override | |
| std::string | selectedTensorKey() const Get the selected TensorData key. |
| std::string | selectedAlgorithmName() const Get the selected algorithm name. |
| int | nComponents() const Get the number of output components. |
| bool | zscoreNormalize() const Whether to z-score normalize features. |
| std::string | outputKey() const Get the output key for the reduced TensorData. |
| bool | isSupervisedMode() const Whether the panel is in supervised mode. |
| bool | hasValidConfiguration() const Whether the panel has valid configuration for running. |
| std::unique_ptr< MLCore::MLModelParametersBase > | currentParameters() const Create parameters for the selected algorithm. |
| std::string | labelSourceType() const Get the label source type (“intervals”, “groups”, “entity_groups”, “events”). |
| std::string | labelIntervalKey() const Get the selected interval key (for interval label mode). |
| std::string | labelPositiveClassName() const Get the positive class name (for interval/event modes). |
| std::string | labelNegativeClassName() const Get the negative class name (for interval/event modes). |
| std::string | labelEventKey() const Get the selected event key (for event label mode). |
| std::vector< uint64_t > | selectedGroupIds() const Get the selected group IDs (for group label modes). |
| std::string | labelDataKey() const Get the selected data key (for data entity group mode). |
| std::string | trainingRegionKey() const Get the selected training region key (empty if “All frames”). |
| bool | isTrainingRegionAllFrames() const Whether the training region “All frames” checkbox is checked. |
| void | showResults(std::size_t num_observations, std::size_t num_input_features, std::size_t num_output_components, std::size_t rows_dropped, std::vector< double > const & explained_variance) Show results after a successful unsupervised pipeline run. |
| void | showSupervisedResults(std::size_t num_observations, std::size_t num_training_observations, std::size_t num_input_features, std::size_t num_output_dimensions, std::size_t rows_dropped, std::size_t unlabeled_count, std::size_t num_classes, std::vector< std::string > const & class_names) Show results after a successful supervised pipeline run. |
| void | clearResults() Clear any displayed results. |
Public Slots Documentation
slot refreshTensorList
void refreshTensorList()Refresh TensorData key list from DataManager.
slot refreshLabelSources
void refreshLabelSources()Refresh label source combos from DataManager.
Public Signals Documentation
signal runRequested
void runRequested()Emitted when the user clicks “Run Reduction” in unsupervised mode.
signal supervisedRunRequested
void supervisedRunRequested()Emitted when the user clicks “Run Reduction” in supervised mode.
signal tensorSelectionChanged
void tensorSelectionChanged(
QString const & key
)Emitted when the selected tensor changes.
Public Functions Documentation
function DimReductionPanel
explicit DimReductionPanel(
std::shared_ptr< MLCoreWidgetState > state,
std::shared_ptr< DataManager > data_manager,
QWidget * parent =nullptr
)function ~DimReductionPanel
~DimReductionPanel() overridefunction selectedTensorKey
std::string selectedTensorKey() constGet the selected TensorData key.
function selectedAlgorithmName
std::string selectedAlgorithmName() constGet the selected algorithm name.
function nComponents
int nComponents() constGet the number of output components.
function zscoreNormalize
bool zscoreNormalize() constWhether to z-score normalize features.
function outputKey
std::string outputKey() constGet the output key for the reduced TensorData.
function isSupervisedMode
bool isSupervisedMode() constWhether the panel is in supervised mode.
function hasValidConfiguration
bool hasValidConfiguration() constWhether the panel has valid configuration for running.
function currentParameters
std::unique_ptr< MLCore::MLModelParametersBase > currentParameters() constCreate parameters for the selected algorithm.
function labelSourceType
std::string labelSourceType() constGet the label source type (“intervals”, “groups”, “entity_groups”, “events”).
function labelIntervalKey
std::string labelIntervalKey() constGet the selected interval key (for interval label mode).
function labelPositiveClassName
std::string labelPositiveClassName() constGet the positive class name (for interval/event modes).
function labelNegativeClassName
std::string labelNegativeClassName() constGet the negative class name (for interval/event modes).
function labelEventKey
std::string labelEventKey() constGet the selected event key (for event label mode).
function selectedGroupIds
std::vector< uint64_t > selectedGroupIds() constGet the selected group IDs (for group label modes).
function labelDataKey
std::string labelDataKey() constGet the selected data key (for data entity group mode).
function trainingRegionKey
std::string trainingRegionKey() constGet the selected training region key (empty if “All frames”).
function isTrainingRegionAllFrames
bool isTrainingRegionAllFrames() constWhether the training region “All frames” checkbox is checked.
function showResults
void showResults(
std::size_t num_observations,
std::size_t num_input_features,
std::size_t num_output_components,
std::size_t rows_dropped,
std::vector< double > const & explained_variance
)Show results after a successful unsupervised pipeline run.
function showSupervisedResults
void showSupervisedResults(
std::size_t num_observations,
std::size_t num_training_observations,
std::size_t num_input_features,
std::size_t num_output_dimensions,
std::size_t rows_dropped,
std::size_t unlabeled_count,
std::size_t num_classes,
std::vector< std::string > const & class_names
)Show results after a successful supervised pipeline run.
function clearResults
void clearResults()Clear any displayed results.
Updated on 2026-11-13 at 20:25:41 +0000