Refactor tqdm import in LSTM class

This commit is contained in:
“Shashank 2024-10-15 12:43:57 +05:30
parent 94ad70c234
commit 6e7cc7cb7d

View File

@ -14,7 +14,7 @@ Date: [Current Date]
import numpy as np import numpy as np
from numpy.random import Generator from numpy.random import Generator
from tqdm import tqdm # from tqdm import tqdm
class LSTM: class LSTM:
@ -285,7 +285,7 @@ class LSTM:
""" """
inputs = [self.one_hot_encode(char) for char in self.train_X] inputs = [self.one_hot_encode(char) for char in self.train_X]
for _ in tqdm(range(self.epochs)): for _ in range(self.epochs):
predictions = self.forward(inputs) predictions = self.forward(inputs)
errors = [] errors = []