Problem 1: Build a Basic Pipeline
Easypython
Learn the Concept: Scikit-learnProblem 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.
Related Problems
- Problem 2: Generate and Explore a Synthetic DatasetEasy · pythonSolve Problem
- Problem 3: Build a Pipeline with Imputation, Scaling, and ModelingEasy · pythonSolve Problem
- Problem 4: Combine a Pipeline with GridSearchCVEasy · pythonSolve Problem