From 5c203b08844ce20d3fc18c7e65e9e389c9a11d94 Mon Sep 17 00:00:00 2001 From: "Carlos A. Iglesias" Date: Mon, 2 Jun 2025 17:22:55 +0300 Subject: [PATCH] Update spiral.py Fixed typo --- ml3/spiral.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml3/spiral.py b/ml3/spiral.py index 4591b8d..d07ef9b 100644 --- a/ml3/spiral.py +++ b/ml3/spiral.py @@ -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)