Machine-Learning-Collection
Machine-Learning-Collection copied to clipboard
Fix the points parameter(N) not being used during data creation
The function used for data creation isn't using the parameter N, because it is being shadowed by "N=100" in the first line of the create_dataset function. I modified the function to use the value 100 for the number of points by default and take the value provided by the parameter N otherwise.
Below is an example of calling the function with create_dataset(300, 3) before the changes:
And after changes: