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

Method __init__

ML/src/python/neuralforge/cli/gui.py:77–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75
76 class NeuralForgeGUI(QMainWindow):
77 def __init__(self):
78 super().__init__()
79 self.model = None
80 self.device = 'cuda' if torch.cuda.is_available() else 'cpu'
81 self.classes = []
82 self.dataset_name = 'cifar10'
83
84 self.init_ui()
85 self.apply_stylesheet()
86
87 def init_ui(self):
88 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