Fixed label and rand

This commit is contained in:
2024-08-20 00:51:41 +02:00
parent f823479afa
commit 338df0d18b
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ def iris_no_target() -> tuple[Dataset, MLAlgorithm, Any]:
if __name__ == "__main__":
np.set_printoptions(linewidth=np.inf, formatter={'float': '{:>10.5f}'.format})
rand = np.random.randint(0, 4294967295)
rand = np.random.randint(0, (1 << 31) - 1)
#rand = 2205910060 # LiR for power_plant
#rand = 347617386 # LoR for electrical_grid
#rand = 834535453 # LoR for heart

View File

@@ -72,7 +72,7 @@ class MLAlgorithm(ABC):
def plot(self, skip:int=1000) -> None:
skip = skip if len(self._learn_loss) > skip else 0
plot = Plot("Loss", "Time", "Mean Loss")
plot = Plot("Loss", "Epochs", "Mean Loss")
plot.line("training", "blue", data=self._learn_loss[skip:])
plot.line("validation", "red", data=self._valid_loss[skip:])
plot.wait()