From ce314b20eb741ff1f8af15f93f228879d4639bec Mon Sep 17 00:00:00 2001 From: QuackInTheMatrix Date: Fri, 23 Aug 2024 17:57:12 +0200 Subject: [PATCH] Fix number of points parameter not being used during data creation --- ML/algorithms/neuralnetwork/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ML/algorithms/neuralnetwork/utils.py b/ML/algorithms/neuralnetwork/utils.py index bc63ca1f..b8dd5a88 100644 --- a/ML/algorithms/neuralnetwork/utils.py +++ b/ML/algorithms/neuralnetwork/utils.py @@ -8,8 +8,7 @@ import matplotlib.pyplot as plt -def create_dataset(N, K=2): - N = 100 # number of points per class +def create_dataset(N=100, K=2): D = 2 X = np.zeros((N * K, D)) # data matrix (each row = single example) y = np.zeros(N * K) # class labels