6th Exp
6th Exp
analysis and compute the accuracy with a few test data sets.
Aim:
To write the program to implement the naïve Bayesian classifier for credit card
analysis and compute the accuracy with a few test data sets.
Program:
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.naive_bayes import GaussianNB
from sklearn.metrics import accuracy_score
Output: