def connectWidgets(self):
en = ElasticNet()
self.minalpha_spin.setValue(0.0000001)
self.maxalpha_spin.setValue(0.01)
self.nalpha_spin.setValue(100)
self.enl1_ratioLineEdit.setText('0.1, 0.5, 0.7, 0.9, 0.95, 0.99, 1.0')
self.enfit_intercept_list.setCurrentItem(self.enfit_intercept_list.findItems(str(en.fit_intercept),QtCore.Qt.MatchExactly)[0])
self.ennormalize_list.setCurrentItem(self.ennormalize_list.findItems(str(en.normalize),QtCore.Qt.MatchExactly)[0])
#self.enprecomputeCheckBox.setChecked(en.precompute)
self.enmax_iterLineEdit.setText(str(en.max_iter))
#self.encopy_XCheckBox.setChecked(en.copy_X)
self.entolLineEdit.setText(str(en.tol))
self.enwarm_start_list.setCurrentItem(self.enwarm_start_list.findItems(str(en.warm_start),QtCore.Qt.MatchExactly)[0])
self.enpositive_list.setCurrentItem(self.enpositive_list.findItems(str(en.positive),QtCore.Qt.MatchExactly)[0])
#self.setComboBox(self.enselectionComboBox, ['cyclic', 'random'])
#self.defaultComboItem(self.enselectionComboBox, en.selection)
cv_ElasticNet.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录