FastPrepPredict Taxi Driver Classes

Predict Taxi Driver Classes

Boston Consulting Group logoBoston Consulting Group● HardFULLTIMEINTERNOA

Problem statement

Use the prepared training and test data to train a classification model and produce driver-class predictions with high accuracy.

FastPrep practice interpretation

For this exercise, assume the prepared inputs are train_data, validation_data, and test_data. Train a binary classifier using the labeled training and validation rows, then predict driver_class for every test row.

  • 0 represents A class.
  • 1 represents B class and is the positive class.
  • Do not use driver_id as a model feature.
  • You may choose any deterministic classification method available in the Pandas runtime.

Return exactly one column named driver_class, with predictions in the original test_data row order. The practice objective is to identify all positive rows while avoiding false positives; each published fixture has one exact expected label per test row.

Table schema

Pandas

Use the same input data with any supported language. Open the Schema tab in the editor to see the generated SQL setup or Pandas DataFrames.

train_data

The labeled training split.

ColumnTypeNullableDescription
driver_idPKIntegerNo—
car_modelIntegerNo—
car_manufacture_yearIntegerNo—
days_since_inspectionIntegerNo—
ageIntegerNo—
experienceIntegerNo—
second_languageIntegerNo—
ratingDecimalNo—
net_worth_of_tipsDecimalNo—
number_of_rejected_ridesIntegerNo—
number_of_upvotesIntegerNo—
number_of_complaintsIntegerNo—
number_of_incidentsIntegerNo—
driver_classIntegerYes—

validation_data

The labeled validation split.

ColumnTypeNullableDescription
driver_idPKIntegerNo—
car_modelIntegerNo—
car_manufacture_yearIntegerNo—
days_since_inspectionIntegerNo—
ageIntegerNo—
experienceIntegerNo—
second_languageIntegerNo—
ratingDecimalNo—
net_worth_of_tipsDecimalNo—
number_of_rejected_ridesIntegerNo—
number_of_upvotesIntegerNo—
number_of_complaintsIntegerNo—
number_of_incidentsIntegerNo—
driver_classIntegerYes—

test_data

The unlabeled test split to classify.

ColumnTypeNullableDescription
driver_idPKIntegerNo—
car_modelIntegerNo—
car_manufacture_yearIntegerNo—
days_since_inspectionIntegerNo—
ageIntegerNo—
experienceIntegerNo—
second_languageIntegerNo—
ratingDecimalNo—
net_worth_of_tipsDecimalNo—
number_of_rejected_ridesIntegerNo—
number_of_upvotesIntegerNo—
number_of_complaintsIntegerNo—
number_of_incidentsIntegerNo—
driver_classIntegerYes—

Expected result

Your query or function must return these columns.

ColumnTypeNullableDescription
driver_classIntegerNo—

Row order: must match exactly. Numeric tolerance: 0.

Constraints

  • Each input table is non-empty.
  • Training and validation labels are 0 or 1, and both classes occur in the combined labeled data.
  • Test labels are null and must not be used.
  • Every feature value is finite.
  • All three tables have the same feature columns.
  • The output has exactly one row per test row.

More Boston Consulting Group problems

See Boston Consulting Group hiring insights