1
0
mirror of https://github.com/gsi-upm/sitc synced 2025-06-12 11:22:20 +00:00

Update spiral.py

Fixed typo
This commit is contained in:
Carlos A. Iglesias 2025-06-02 17:22:55 +03:00 committed by GitHub
parent 5bf815f60f
commit 5c203b0884
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ def gen_spiral_dataset(n_examples=500, n_classes=2, a=None, b=None, pi_space=3):
theta = np.linspace(0,pi_space*pi, num=n_examples)
xy = np.zeros((n_examples,2))
# logaritmic spirals
# logarithmic spirals
x_golden_parametric = lambda a, b, theta: a**(theta*b) * cos(theta)
y_golden_parametric = lambda a, b, theta: a**(theta*b) * sin(theta)
x_golden_parametric = np.vectorize(x_golden_parametric)