How can I determine the optimality of my machine learning model?

I have built a machine learning model and want to determine its optimality. What are the key metrics that I should use to evaluate its performance? How can I interpret the results? Are there any techniques I can use to improve the performance of my model?

Here is the code for the dataset that I am working on:

Can someone provide guidance on how to determine the optimality of my machine learning model?