Skip to content

Commit 42e34a1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0225212 commit 42e34a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

neural_network/radial_basis_function_neural_network.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Wikipedia https://en.wikipedia.org/wiki/Radial_basis_function_network
1111
"""
1212

13+
1314
class RadialBasisFunctionNeuralNetwork:
1415
"""
1516
A simple implementation of a Radial Basis Function Neural Network (RBFNN).
@@ -141,12 +142,12 @@ def predict(self, input_data: np.ndarray) -> np.ndarray:
141142
rbf_outputs = self._compute_rbf_outputs(input_data)
142143
return rbf_outputs.dot(self.weights)
143144

145+
144146
import numpy as np
145147

146148

147149
# Example Usage
148150
if __name__ == "__main__":
149-
150151
# Sample dataset for XOR problem
151152
X = np.array([[0, 0], [1, 0], [0, 1], [1, 1]]) # 2D input
152153
y = np.array([[0], [1], [1], [0]]) # Target output for XOR

0 commit comments

Comments
 (0)