I’ve developed a machine learning model and now I’m looking to assess its optimality. What are the main metrics I should focus on to evaluate its performance, and how should I interpret the results?
Below is the code snippet, I’m currently working with:
import warnings
from sklearn.datasets import load_iris
from sklearn.exceptions import ConvergenceWarning
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
# Ignore the convergence warning
warnings.filterwarnings("ignore", category=ConvergenceWarning)
data = load_iris()
X_train, X_test, y_train, y_test = train_test_split(data.data, data.target, random_state=42)
lr_model = LogisticRegression()
lr_model.fit(X_train, y_train)
I would greatly appreciate any guidance on assessing the optimality of my machine learning model.