Skip to content
C

Pass/Fail Classifier

Mediumpython

Using the notes' own pass/fail dataset (hours studied + attendance), train a LogisticRegression model and calculate its accuracy on the held-out test set.

Approach: reuse the exact dataset, testsize, and randomstate from the notes' mini project, fit LogisticRegression, predict on X_test, and print the accuracy percentage.

Input: No input.

Output: One line: Accuracy: <percentage>%, to 2 decimal places.

Input (stdin)

Output

Run your code to see output here...