Source code for gui.ui.OMP
# -*- coding: utf-8 -*-
# Automatically generated - don't edit.
# Use `python setup.py build_ui` to update it.
from PyQt5 import QtCore, QtWidgets
[docs]
class Ui_Form(object):
[docs]
    def setupUi(self, Form):
        Form.setObjectName("Form")
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Ignored
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
        Form.setSizePolicy(sizePolicy)
        self.verticalLayout = QtWidgets.QVBoxLayout(Form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.formGroupBox = QtWidgets.QGroupBox(Form)
        self.formGroupBox.setObjectName("formGroupBox")
        self.formLayout = QtWidgets.QFormLayout(self.formGroupBox)
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.AllNonFixedFieldsGrow
        )
        self.formLayout.setObjectName("formLayout")
        self.fitInterceptLabel = QtWidgets.QLabel(self.formGroupBox)
        self.fitInterceptLabel.setObjectName("fitInterceptLabel")
        self.formLayout.setWidget(
            1, QtWidgets.QFormLayout.LabelRole, self.fitInterceptLabel
        )
        self.fitInterceptCheckBox = QtWidgets.QCheckBox(self.formGroupBox)
        self.fitInterceptCheckBox.setObjectName("fitInterceptCheckBox")
        self.formLayout.setWidget(
            1, QtWidgets.QFormLayout.FieldRole, self.fitInterceptCheckBox
        )
        self.normalizeLabel = QtWidgets.QLabel(self.formGroupBox)
        self.normalizeLabel.setObjectName("normalizeLabel")
        self.formLayout.setWidget(
            2, QtWidgets.QFormLayout.LabelRole, self.normalizeLabel
        )
        self.normalizeCheckBox = QtWidgets.QCheckBox(self.formGroupBox)
        self.normalizeCheckBox.setObjectName("normalizeCheckBox")
        self.formLayout.setWidget(
            2, QtWidgets.QFormLayout.FieldRole, self.normalizeCheckBox
        )
        self.n_coef_label = QtWidgets.QLabel(self.formGroupBox)
        self.n_coef_label.setObjectName("n_coef_label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.n_coef_label)
        self.n_coef_spin = QtWidgets.QSpinBox(self.formGroupBox)
        self.n_coef_spin.setMaximum(999999999)
        self.n_coef_spin.setProperty("value", 100)
        self.n_coef_spin.setObjectName("n_coef_spin")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.n_coef_spin)
        self.verticalLayout.addWidget(self.formGroupBox)
        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
[docs]
    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(("Form"))
        self.formGroupBox.setTitle(("OMP"))
        self.fitInterceptLabel.setText(("Fit Intercept"))
        self.fitInterceptCheckBox.setToolTip(
            _translate(
                "Form",
                "whether to calculate the intercept for this model. "
                "If set to false,\n"
                "no intercept will be used in calculations (e.g. data "
                "is expected to\n"
                "be already centered).",
            )
        )
        self.fitInterceptCheckBox.setWhatsThis(
            (
                "http://scikit-learn.org/stable/modules/generated/sklearn"
                ".linear_model.OrthogonalMatchingPursuit.html"
            )
        )
        self.normalizeLabel.setText(("Normalize"))
        self.normalizeCheckBox.setToolTip(
            _translate(
                "Form",
                "This parameter is ignored when fit_intercept is set "
                "to False. If True,\n"
                "the regressors X will be normalized before "
                "regression by subtracting\n"
                "the mean and dividing by the l2-norm. If you wish to "
                "standardize,\n"
                "please use sklearn.preprocessing.StandardScaler "
                "before calling fit on\n"
                "an estimator with normalize=False.",
            )
        )
        self.normalizeCheckBox.setWhatsThis(
            (
                "http://scikit-learn.org/stable/modules/generated/sklearn"
                ".linear_model.OrthogonalMatchingPursuit.html"
            )
        )
        self.n_coef_label.setText(("# coefficients"))
if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    Form = QtWidgets.QWidget()
    ui = Ui_Form()
    ui.setupUi(Form)
    Form.show()
    sys.exit(app.exec_())