Experiment 8 Code
Experiment 8 Code
# Split the dataset (Randomly select 10 training samples and 4 test samples)
X_train, X_test, y_train, y_test = train_test_split(df_encoded, y, train_size=10,
random_state=42, shuffle=True)
Confusion Matrix:
[[1 0]
[1 2]]
Classification Report:
precision recall f1-score support
accuracy 0.75 4
macro avg 0.75 0.83 0.73 4
weighted avg 0.88 0.75 0.77 4