Problem 1: Build a Basic Pipeline
Easypython
Problem Description
Write a Python program that builds a Pipeline combining StandardScaler and LogisticRegression, trains it, and evaluates its accuracy on a test set.
Input
A labeled dataset split into training and test sets.
Output
The accuracy on the test set.
Constraints
- At least 20 labeled examples.
Example Input
text(A synthetic dataset generated via make_classification)
Example Output
textAccuracy: 0.9
Concepts Covered
Pipeline, StandardScaler, LogisticRegression.