i'm newbie for using python in google colab, i have to finish my project classes now (classification image using KNN algorithm). please help me to fix this code. Thank you
# Importing the dataset
dataset = ('/content/dataset/Validation/')
X = dataset
y = dataset
# Cleaning up variables to prevent loading data multiple times (which may cause memory issue)
try:
del X_train, y_train
del X_test, y_test
print('Clear previously loaded data.')
except:
pass
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(dataset)
# As a sanity check, we print out the size of the training and test data.
print('Training data shape: ', X_train.shape)
print('Training labels shape: ', y_train.shape)
print('Test data shape: ', X_test.shape)
print('Test labels shape: ', y_test.shape)
i have to finish my project classes now (classification image using KNN algorithm)