Skip to content

Commit ec3ddb2

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

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: RBFNN/radial_basis_function_network.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from sklearn.cluster import KMeans
33
from numpy.linalg import pinv
44

5+
56
class RBFNN:
67
def __init__(self, num_centers=10, gamma=1.0):
78
self.num_centers = num_centers

Diff for: RBFNN/tests/regression_example.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
y_pred = model.predict(X_test)
1818

1919
# Plot
20-
plt.scatter(X_test, y_test, label='True')
21-
plt.scatter(X_test, y_pred, label='Predicted', color='red', marker='x')
20+
plt.scatter(X_test, y_test, label="True")
21+
plt.scatter(X_test, y_pred, label="Predicted", color="red", marker="x")
2222
plt.title("RBFNN Regression - Sine Function")
2323
plt.legend()
2424
plt.show()

0 commit comments

Comments
 (0)