Skip to content
CampusEduX

Problem 1: Build a Basic Pipeline

Easypython
Learn the Concept: Scikit-learn

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.

Related Problems

  • Problem 2: Generate and Explore a Synthetic Dataset
    Easy · python
    Solve Problem
  • Problem 3: Build a Pipeline with Imputation, Scaling, and Modeling
    Easy · python
    Solve Problem
  • Problem 4: Combine a Pipeline with GridSearchCV
    Easy · python
    Solve Problem

Input (stdin)

Output

Run your code to see output here...