text_html_output_1.png
from sklearn.naive_bayes import GaussianNB

from sklearn.preprocessing import StandardScaler

import pandas as pd

dataset = pd.read_csv('/kaggle/input/user-data/User_Data.csv')
x = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values

from sklearn.preprocessing import StandardScaler
sc = StandardScaler()
x_train = sc.fit_transform(x_train)
x_test = sc.transform(x_test)

from sklearn.naive_bayes import GaussianNB
classifier = GaussianNB()
classifier.fit(x_train, y_train)

y_pred = classifier.predict(x_test)

pd.DataFrame(y_pred, y_test).head(20)