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:
parent
5bf815f60f
commit
5c203b0884
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user