Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
accuracy = accuracy_score(y_test, y_pred);
print(f"\nAccuracy: {accuracy:.2f}");

print(f"\nThe model was trained on {X_train.shape[0]} samples and tested on {X_test.shape[0]} samples.");
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may not be required

Suggested change
print(f"\nThe model was trained on {X_train.shape[0]} samples and tested on {X_test.shape[0]} samples.");
print(f"\nThe model was trained on {X_train.shape[1]} samples and tested on {X_test.shape[1]} samples.");


print(f"{X_test.shape[0]} samples were tested, and the model achieved an accuracy of {accuracy:.2f}.")