Skip to content
C

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

text
Accuracy: 0.9

Concepts Covered

Pipeline, StandardScaler, LogisticRegression.

Input (stdin)

Output

Run your code to see output here...