FastPrepPredict Taxi Driver Classes
Problem · Math

Predict Taxi Driver Classes

HardCapital One logoCapital OneNEW GRADOA

Problem statement

You are given preprocessed train_data, validation_data, and test_data tables. 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 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.

Source note: The screenshot is cropped to the assessment prompt and excludes the author's model recommendation and solution steps.

More Capital One problems