Skip to content

Commit 0225212

Browse files
Update radial_basis_function_neural_network.py
1 parent 64fc4a7 commit 0225212

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

neural_network/radial_basis_function_neural_network.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
- Wikipedia https://en.wikipedia.org/wiki/Radial_basis_function_network
1111
"""
1212

13-
import numpy as np
14-
15-
1613
class RadialBasisFunctionNeuralNetwork:
1714
"""
1815
A simple implementation of a Radial Basis Function Neural Network (RBFNN).
@@ -144,10 +141,11 @@ def predict(self, input_data: np.ndarray) -> np.ndarray:
144141
rbf_outputs = self._compute_rbf_outputs(input_data)
145142
return rbf_outputs.dot(self.weights)
146143

144+
import numpy as np
145+
147146

148147
# Example Usage
149148
if __name__ == "__main__":
150-
# doctest.testmod() # Running the doctest
151149

152150
# Sample dataset for XOR problem
153151
X = np.array([[0, 0], [1, 0], [0, 1], [1, 1]]) # 2D input

0 commit comments

Comments
 (0)