MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/tests/gui_test.py:65–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63
64class NeuralForgeGUI(QMainWindow):
65 def __init__(self):
66 super().__init__()
67 self.model = None
68 self.device = 'cuda' if torch.cuda.is_available() else 'cpu'
69 self.classes = []
70 self.dataset_name = 'cifar10'
71
72 self.init_ui()
73 self.apply_stylesheet()
74
75 def init_ui(self):
76 self.setWindowTitle('NeuralForge - Model Tester')

Callers 1

__init__Method · 0.45

Calls 2

init_uiMethod · 0.95
apply_stylesheetMethod · 0.95

Tested by

no test coverage detected