text_plain_output_1.png
from sklearn.neighbors import KNeighborsClassifier

import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df = pd.read_csv('/kaggle/input/breast-cancer-wisconsin-data/data.csv')

model = KNeighborsClassifier(n_neighbors=5)

model.fit(x_train, y_train)

model.score(x_train, y_train) * 100

model.score(x_test, y_test) * 100

y_pred = model.predict(x_test)

df1 = pd.DataFrame({'Actual': y_test, 'Predicted': y_pred})

df1