Пример #1
0
 def process(self):
     xi = captcha.getInputs(str(self.ui.lineEditArchivo.text()))
     self.ui.lineEdit.setText(self.nn.update(xi[0]))
     self.ui.lineEdit_2.setText(self.nn.update(xi[1]))
     self.ui.lineEdit_3.setText(self.nn.update(xi[2]))
     self.ui.lineEdit_4.setText(self.nn.update(xi[3]))
     self.ui.lineEdit_5.setText(self.nn.update(xi[4]))
Пример #2
0
 def modify(self):
     l1 = str(self.ui.lineEdit.text())
     l2 = str(self.ui.lineEdit_2.text())
     l3 = str(self.ui.lineEdit_3.text())
     l4 = str(self.ui.lineEdit_4.text())
     l5 = str(self.ui.lineEdit_5.text())
     xi = captcha.getInputs(str(self.ui.lineEditArchivo.text()))
     targets = map(captcha.getTarget, [l1, l2, l3, l4, l5])
     for i in range(5):
         self.nn.update(xi[i])
         self.nn.backPropagate(targets[i])