Initial commit

This commit is contained in:
2026-04-06 15:59:23 +02:00
commit 60e9dfa5ad
83 changed files with 2167 additions and 0 deletions
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
from abc import ABC
from matplotlib.figure import Figure
from neural_net.epoch import Epoch
from neural_net.neural_net import NeuralNet
from ui.plotters.plotter import Plotter
+1
View File
@@ -0,0 +1 @@
+30
View File
@@ -0,0 +1,30 @@
from abc import abstractmethod
from matplotlib.figure import Figure
from neural_net.epoch import Epoch
class Plotter:
def __init__(self, figure: Figure):
self.figure = figure
def initialize_plots(self):
self.figure.show()
@abstractmethod
def update_plot(self, data):
self.reset_plot()
self.plot(data)
self.figure.canvas.draw()
self.figure.canvas.flush_events()
@abstractmethod
def reset_plot(self):
pass
@abstractmethod
def plot(self, current_epoch: Epoch):
pass
View File
View File