Python, Programming, Data Science, Artificial Intelligence, Machine Learning.
sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score # Load the dataset X = ... # Features y = ... # Target labels # Split the data into training and testing sets X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42) # Create a random