def __init__(self, parent=None, button_func=None, params=None):
    super().__init__(parent, 'LearningCurve', params)
    self.button_func = button_func
    path = (os.path.abspath(os.path.dirname(__file__)) + '/static/')
    path1 = (path + 'check_curve')
    text = self.get_text(path1)
    if (self.params.lang == 'en'):
        self.set_paragraph('', text=text)
    else:
        self.set_paragraph('', text=text)
    self.plot_curve(self.params.results['algorithms'])
    self.vbox.addStretch()
    btn_fs = QPushButton('Try feature selection', self.inner)
    btn_fs.setStyleSheet('QPushButton{font: bold; font-size: 15pt; background-color: white;};')
    btn_fs.clicked.connect(self.__button_clicked)
    self.btn_next = QPushButton('Continue', self.inner)
    self.btn_next.setStyleSheet('QPushButton{font: bold; font-size: 15pt; background-color: white;};')
    if (self.params.lang == 'en'):
        self.btn_next.clicked.connect((lambda : self.button_func('Prediction')))
    else:
        self.btn_next.clicked.connect((lambda : self.button_func('予測')))
    self.vbox.addWidget(btn_fs)
    self.vbox.addWidget(self.btn_next)
    self.wait_ani = WaitingAnimation(parent.parent())
    self.wait_ani.hide()
    lists = ['task', 'supervised_learning', 'dummy', 'hyperparameter', 'overfitting', 'cross_validation', 'learning_curve', 'bias_variance']
    if (self.params.lang == 'jp'):
        lists = [(l + '_jp') for l in lists]
    else:
        lists = [(l + '_en') for l in lists]
    self.wait_ani.set_lists(lists)
def __init__(self, parent=None, button_func=None, params=None):
    super().__init__(parent, 'LearningCurve', params)
    self.button_func = button_func
    path = (os.path.abspath(os.path.dirname(__file__)) + '/static/')
    path1 = (path + 'check_curve')
    text = self.get_text(path1)
    if (self.params.lang == 'en'):
        self.set_paragraph(, text=text)
    else:
        self.set_paragraph(, text=text)
    self.plot_curve(self.params.results['algorithms'])
    self.vbox.addStretch()
    btn_fs = QPushButton('Try feature selection', self.inner)
    btn_fs.setStyleSheet('QPushButton{font: bold; font-size: 15pt; background-color: white;};')
    btn_fs.clicked.connect(self.__button_clicked)
    self.btn_next = QPushButton('Continue', self.inner)
    self.btn_next.setStyleSheet('QPushButton{font: bold; font-size: 15pt; background-color: white;};')
    if (self.params.lang == 'en'):
        self.btn_next.clicked.connect((lambda : self.button_func('Prediction')))
    else:
        self.btn_next.clicked.connect((lambda : self.button_func('予測')))
    self.vbox.addWidget(btn_fs)
    self.vbox.addWidget(self.btn_next)
    self.wait_ani = WaitingAnimation(parent.parent())
    self.wait_ani.hide()
    lists = ['task', 'supervised_learning', 'dummy', 'hyperparameter', 'overfitting', 'cross_validation', 'learning_curve', 'bias_variance']
    if (self.params.lang == 'jp'):
        lists = [(l + '_jp') for l in lists]
    else:
        lists = [(l + '_en') for l in lists]
    self.wait_ani.set_lists(lists)