--> DATASET :
The dataset is directly imported from sklearn module.
--> METHODOLOGY :
0 and 1 are used to predict whether a person have a brain tumor or not in the following way:
● 0 --> The brain tumor is Benign
● 1 --> The brain tumor is Malignant
The libraries used here are Tensorflow and Keras .
The prgram then divides the dataset into training and testing samples in 80:20 ratio randomly using train_test_split() function available in sklearn module.
Accuracy score is then calculated by comparing with the correct results of the training dataset.
Model predict() function used here provides ous the two values in the output.
● The first value provides us with the probability that the brain tumor is Malignant;
● And the second value provides us with the probability that the brian tumor is Benign.
So to predict whether the brain tumor is benign and malignant , we use np.argmax() function to predict the output.
You can also predict the data by entering your data according to the dataset.
--> OUTPUT :
The given output is :