Skip to content
CampusEduX

Pass/Fail Classifier

Mediumpython
Learn the Concept: Machine Learning

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.

Related Problems

Input (stdin)

Output

Run your code to see output here...