1.2 We need to generate two sets of data

In [3]:
# The first way is by using the already existing functions:
X,y = make_circles(n_samples = 3000, noise = 0.08, factor=0.3)
print(X.shape)
print(y.shape)
print(type(X))
print(type(y))

# Spliting data into train and test
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=42)
(3000, 2)
(3000,)
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>