Fixed label and rand
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user