- - - - - - + - + + - - - - - - + + + + - - - - - - from the above outputwe can see that the first data instance is malignant tumor the main radius of which is + for testing our model on unseen datawe need to split our data into training and testing data it can be done with the help of the following codefrom sklearn model_selection import train_test_split the above command will import the train_test_split function from sklearn and the command below will split the data into training and test data in the below examplewe are using of the data for testing and the remining data would be used for training the model traintesttrain_labelstest_labels train_test_split(features,labels,test_size random_state nowwe are building the model with the following commandsfrom sklearn naive_bayes import gaussiannb the above command will import the gaussiannb module nowwith the command given belowwe need to initialize the model gnb gaussiannb(we will train the model by fitting it to the data by using gnb fit(model gnb fit(traintrain_labelsnowevaluate the model by making prediction on the test data and it can be done as followspreds gnb predict(testprint(preds[