Steps in Machine Learning
import seaborn as sns
import pandas as pd
iris = sns.load_dataset('iris')
View and examine the dataset (using .head / .describe /.info)
Check for missing values
Eliminate unnecessary rows/column
Find for x and y values
from sklearn.model_selection import train_test_split
Xtrain, Xtest, ytrain, ytest = train_test_split(X_iris, y_iris,random_state=1)
Import model, fit the model to the training data.
How many models we can choose?
Apply the model to the testing data to predict
To test the accuracy, obtain classification report & confusion matrix
Check the accuracy/change the models to optimize it! Then finally can use it for predictions! A Good model produced!
Some food photos