Пример #1
0
 def __init__(self, enable_ui=True):  # line:15
     if enable_ui:  # line:16
         _thread.start_new_thread(self.ui, tuple())  # line:17
         time.sleep(1)  # line:18
     img_path = '../mnist_data/t10k-images.idx3-ubyte'  # line:19
     lbl_path = '../mnist_data/t10k-labels.idx1-ubyte'  # line:20
     img = self.random_image(img_path, lbl_path)  # line:21
     self.load_images()  # line:22
     self.ls = link_search(img)  # line:23
     self.scores = [50, 20, 10, 0, -10, -100, -100]  # line:24
     self.doublescores = [100, 20, 10, 0]  # line:25
     self.current_score = 0  # line:27
     self.round = 0  # line:28
     self.enable_ui = enable_ui  # line:29
Пример #2
0
 def __init__(O0OO000O0OO0O0OOO, enable_ui=True):  #line:15
     if enable_ui:  #line:16
         _thread.start_new_thread(O0OO000O0OO0O0OOO.ui, tuple())  #line:17
         time.sleep(1)  #line:18
     O000OO00OOO0OO0OO = '../mnist_data/t10k-images.idx3-ubyte'  #line:19
     O0O00OOOO00O00OO0 = '../mnist_data/t10k-labels.idx1-ubyte'  #line:20
     O0OO000OOO0O0O000 = O0OO000O0OO0O0OOO.random_image(
         O000OO00OOO0OO0OO, O0O00OOOO00O00OO0)  #line:21
     O0OO000O0OO0O0OOO.load_images()  #line:22
     O0OO000O0OO0O0OOO.ls = link_search(O0OO000OOO0O0O000)  #line:23
     O0OO000O0OO0O0OOO.scores = [50, 20, 10, 0, -10, -100, -100]  #line:24
     O0OO000O0OO0O0OOO.doublescores = [100, 20, 10, 0]  #line:25
     O0OO000O0OO0O0OOO.__O00O00O0OO00000OO = 0  #line:27
     O0OO000O0OO0O0OOO.round = 0  #line:28
     O0OO000O0OO0O0OOO.enable_ui = enable_ui  #line:29