Stroke Prediction using “Stroke Prediction ” dataset

I want to do Stroke Prediction using “Stroke Prediction ” dataset. I want to preprocess the data, Balance the data, Use 80% of the data for training, and 20% for testing, ensuring that both sets are balanced. I want to train the model using Firefly Evolutionary Algorithm. Show the confusion matrices for firefly algorithm (for training data and test data). Show one graph plotting the average accuracy(on the y-axis) against log(number of weight updates) for training data and testing data and show the accuracy.