Skip to content

Commit f3e974f

Browse files
committed
fixed type hints which were repeating in code
1 parent 562eeb4 commit f3e974f

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

neural_network/lstm.py

-20
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,6 @@ def __init__(
3636
>>> lstm.learning_rate
3737
0.01
3838
"""
39-
self.input_data: str
40-
self.hidden_layer_size: int
41-
self.training_epochs: int
42-
self.learning_rate: float
43-
self.unique_chars: set[str]
44-
self.data_length: int
45-
self.vocabulary_size: int
46-
self.char_to_index: dict[str, int]
47-
self.index_to_char: dict[int, str]
48-
self.input_sequence: str
49-
self.target_sequence: str
50-
self.random_generator: Generator
51-
self.combined_inputs: dict[int, np.ndarray]
52-
self.hidden_states: dict[int, np.ndarray]
53-
self.cell_states: dict[int, np.ndarray]
54-
self.forget_gate_activations: dict[int, np.ndarray]
55-
self.input_gate_activations: dict[int, np.ndarray]
56-
self.cell_state_candidates: dict[int, np.ndarray]
57-
self.output_gate_activations: dict[int, np.ndarray]
58-
self.network_outputs: dict[int, np.ndarray]
5939

6040
self.input_data: str = input_data.lower()
6141
self.hidden_layer_size: int = hidden_layer_size

0 commit comments

Comments
 (0)