Skip to content

querytab

sgp.ui.tabs.querytab.ANN

Bases: PredictionBase

Artificial Neural Network (ANN) model.

sgp.ui.tabs.querytab.FigureProperties

Bases: HashableBaseModelIO

sgp.ui.tabs.querytab.FigureProperties.apply

apply(fig: Figure, ax: Axes, *, show: bool = True)

Apply the properties to the figure and axes.

sgp.ui.tabs.querytab.MPD

Bases: PredictionBase

Multivariate Distribution (MPD) model.

sgp.ui.tabs.querytab.MPD.corr_bootstrap

corr_bootstrap(X: ndarray) -> ndarray

Calculate the correlation matrix.

sgp.ui.tabs.querytab.MPD.dist

Get the distributional results.

sgp.ui.tabs.querytab.MPD.fit

fit()

Fit the Johnson distribution to the data.

RETURNS DESCRIPTION
A tuple containing the distributions, the optimization results, the statistics, and the p-values.

sgp.ui.tabs.querytab.MPD.optimize

optimize(df: DataFrame, *, method: Optimizers, **kwargs)

Optimize the z-value for the Johnson distribution.

sgp.ui.tabs.querytab.Model

The prediction model

sgp.ui.tabs.querytab.Model.__init__

__init__(io: SGPIO)

Initialize the model.

sgp.ui.tabs.querytab.PropertyWidget

Bases: QWidget, QObject

Widget for displaying property items.

sgp.ui.tabs.querytab.PropertyWidget.__init__

__init__(name: str, value: float, enabled: bool = None, parent=None, *args, SpinBox: Type[QDoubleSpinBox] = QtWidgets.QDoubleSpinBox, **kwargs)

Initialize the PropertyWidget.

sgp.ui.tabs.querytab.PropertyWidget.isEnabled

isEnabled() -> bool

Get whether the PropertyWidget is enabled.

sgp.ui.tabs.querytab.PropertyWidget.setOptions

setOptions(**options)

Set the options of the PropertyWidget.

sgp.ui.tabs.querytab.PropertyWidget.setValue

setValue(value: float)

Set the value of the PropertyWidget.

sgp.ui.tabs.querytab.PropertyWidget.value

value() -> float

Get the value of the PropertyWidget.

sgp.ui.tabs.querytab.QueryTab

Bases: QWidget, QObject

Widget for displaying query properties.

sgp.ui.tabs.querytab.QueryTab.ann property

ann: ANN

Get the ann object.

sgp.ui.tabs.querytab.QueryTab.io property

io: SGPIO

Get the io object.

sgp.ui.tabs.querytab.QueryTab.mpd property

mpd: MPD

Get the mpd object.

sgp.ui.tabs.querytab.QueryTab.addInputProperty

addInputProperty()

Add a property to the list.

sgp.ui.tabs.querytab.QueryTab.deleteInputProperty

deleteInputProperty()

Delete a property from the list.

sgp.ui.tabs.querytab.QueryTab.inputs

inputs() -> dict[str, float]

Get the input values.

sgp.ui.tabs.querytab.QueryTab.predictANN

predictANN()

Predict the properties by ANN.

sgp.ui.tabs.querytab.QueryTab.predictMPD

predictMPD()

Predict the properties by MPD.

sgp.ui.tabs.querytab.QueryTab.setANNOutputs

setANNOutputs(outputs: dict[str, float])

Set the output values.

sgp.ui.tabs.querytab.QueryTab.updateMPDOutputProperty

updateMPDOutputProperty()

Update the output property.

sgp.ui.tabs.querytab.SGPIO

sgp.ui.tabs.querytab.TabWindow

Bases: QMainWindow, QObject

Window for displaying tabbed matplotlib figures or data tables.

sgp.ui.tabs.querytab.TabWindow.closeEvent

closeEvent(event: QCloseEvent)

Close all figures when closing window.

sgp.ui.tabs.querytab.TabWindow.closeTab

closeTab(index: int)

Close tab at given index and close window if it is the last tab.

sgp.ui.tabs.querytab.execute_in_thread

execute_in_thread(func: Callable = None, *, slot: Callable = None)

Execute a function in a separate thread, usually for functions that do not return a value. For functions that return a value, use the slot parameter to connect the resultReady signal to a function that will receive the result.

PARAMETER DESCRIPTION
func

Function to be executed in a separate thread, by default None

TYPE: Callable DEFAULT: None

slot

Function to be connected to the resultReady signal when the result is ready, by default None

TYPE: Callable DEFAULT: None

sgp.ui.tabs.querytab.getTemplate

getTemplate(filename: str, *, encoding='utf-8') -> str

Get the content of a template file.