mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-07 22:35:54 +00:00
Refactor tqdm import in LSTM class
This commit is contained in:
parent
94ad70c234
commit
6e7cc7cb7d
@ -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 = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user