Skip to main content

FeatureSelectionPanel

FeatureSelectionPanel

#include <FeatureSelectionPanel.hpp>

Inherits from QWidget

Public Slots

Name
void refreshTensorList()
Refresh the list of available TensorData keys from DataManager.

Public Signals

Name
void tensorSelectionChanged(QString const & key)
Emitted when the selected tensor changes.
void validityChanged(bool valid)
Emitted when selection validity changes.

Public Functions

Name
FeatureSelectionPanel(std::shared_ptr< MLCoreWidgetState > state, std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr])
Construct the feature selection panel.
~FeatureSelectionPanel() override
bool hasValidSelection() const
Whether a valid tensor is currently selected.
std::string selectedTensorKey() const
Get the currently selected tensor key.
bool zscoreNormalize() const
Whether z-score normalization is enabled.

Public Slots Documentation

slot refreshTensorList

void refreshTensorList()

Refresh the list of available TensorData keys from DataManager.

Called automatically on DataManager changes and on the refresh button. Preserves the current selection if still available.

Public Signals Documentation

signal tensorSelectionChanged

void tensorSelectionChanged(
    QString const & key
)

Emitted when the selected tensor changes.

Parameters:

  • key The new tensor key (may be empty if cleared)

signal validityChanged

void validityChanged(
    bool valid
)

Emitted when selection validity changes.

Parameters:

  • valid Whether the current selection is valid for ML workflows

Public Functions Documentation

function FeatureSelectionPanel

explicit FeatureSelectionPanel(
    std::shared_ptr< MLCoreWidgetState > state,
    std::shared_ptr< DataManager > data_manager,
    QWidget * parent =nullptr
)

Construct the feature selection panel.

Parameters:

function ~FeatureSelectionPanel

~FeatureSelectionPanel() override

function hasValidSelection

bool hasValidSelection() const

Whether a valid tensor is currently selected.

Returns true if the combo box has a non-empty selection that resolves to a non-null TensorData with at least one row and one column.

function selectedTensorKey

std::string selectedTensorKey() const

Get the currently selected tensor key.

Return: The DataManager key of the selected TensorData, or empty string

function zscoreNormalize

bool zscoreNormalize() const

Whether z-score normalization is enabled.


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