fix: dup load method

This commit is contained in:
Lenoctambule
2026-04-05 08:41:17 +02:00
parent 82d61dd10f
commit 3440de851a
2 changed files with 2 additions and 7 deletions

View File

@@ -137,11 +137,6 @@ class VariationalAutoencoder(AAutoencoder):
loss += np.sum(np.abs(x - self.forward(x)[0])) / len(x)
return loss / len(data_set)
def load(path: str) -> 'ClassicalAutoencoder':
path = path.removesuffix('.npy') + '.npy'
data = np.load(path, allow_pickle=True)
return data.item()
def train(self, v: np.ndarray) -> float:
out, _ = self.forward(v)
error = out - v