Predict Taxi Driver Classes
Updated
Problem statement
Use the prepared training and test data to train a classification model and produce driver-class predictions with high accuracy.
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.
0represents A class.1represents B class and is the positive class.- Do not use
driver_idas 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
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.
| Column | Type | Nullable | Description |
|---|---|---|---|
| driver_idPK | Integer | No | — |
| car_model | Integer | No | — |
| car_manufacture_year | Integer | No | — |
| days_since_inspection | Integer | No | — |
| age | Integer | No | — |
| experience | Integer | No | — |
| second_language | Integer | No | — |
| rating | Decimal | No | — |
| net_worth_of_tips | Decimal | No | — |
| number_of_rejected_rides | Integer | No | — |
| number_of_upvotes | Integer | No | — |
| number_of_complaints | Integer | No | — |
| number_of_incidents | Integer | No | — |
| driver_class | Integer | Yes | — |
validation_data
The labeled validation split.
| Column | Type | Nullable | Description |
|---|---|---|---|
| driver_idPK | Integer | No | — |
| car_model | Integer | No | — |
| car_manufacture_year | Integer | No | — |
| days_since_inspection | Integer | No | — |
| age | Integer | No | — |
| experience | Integer | No | — |
| second_language | Integer | No | — |
| rating | Decimal | No | — |
| net_worth_of_tips | Decimal | No | — |
| number_of_rejected_rides | Integer | No | — |
| number_of_upvotes | Integer | No | — |
| number_of_complaints | Integer | No | — |
| number_of_incidents | Integer | No | — |
| driver_class | Integer | Yes | — |
test_data
The unlabeled test split to classify.
| Column | Type | Nullable | Description |
|---|---|---|---|
| driver_idPK | Integer | No | — |
| car_model | Integer | No | — |
| car_manufacture_year | Integer | No | — |
| days_since_inspection | Integer | No | — |
| age | Integer | No | — |
| experience | Integer | No | — |
| second_language | Integer | No | — |
| rating | Decimal | No | — |
| net_worth_of_tips | Decimal | No | — |
| number_of_rejected_rides | Integer | No | — |
| number_of_upvotes | Integer | No | — |
| number_of_complaints | Integer | No | — |
| number_of_incidents | Integer | No | — |
| driver_class | Integer | Yes | — |
Expected result
Your query or function must return these columns.
| Column | Type | Nullable | Description |
|---|---|---|---|
| driver_class | Integer | No | — |
Row order: must match exactly. Numeric tolerance: 0.
Constraints
- Each input table is non-empty.
- Training and validation labels are
0or1, 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 reports a model-training notebook and file task. This practice retains tabular classification with exact expected labels; the source project format is not reproduced here.
More Boston Consulting Group interview questions
- Build Taxi Driver Performance FeaturesOA · Seen Nov 2026
- Summarize Taxi Drivers and RidesOA · Seen Nov 2026
- Competition Winner and Runner-Up (Forward Deployed Engineer)OA · Seen Nov 2026
- Count Belt Sections With K Fruit Pairs (Forward Deployed Engineer)OA · Seen Nov 2026
- Robot Stops Left or Right (Forward Deployed Engineer)OA · Seen Nov 2026
- Split a Matrix Into Four Partitions by Average (Forward Deployed Engineer)OA · Seen Nov 2026
- Prepare Taxi Driver Classification DataOA · Seen Oct 2026
- Even-Position MonotonicityOA · Seen Jul 2026
- Shortest Distances From an Adjacency MatrixPHONE SCREEN · Seen Sep 2026
Similar questions at other companies
- Bootstrap Decision Tree ClassifierPinterest · OAPinterest interview questions
- Arithmetic Triplets After QueriesCapital One · OACapital One interview questions
- Bring Servers DownAmazon · OA
- Last Object Exit TimeIBM · OAIBM interview questions
- Capping Portfolio WeightsCapstone Investment Advisors · OA
- Bold Play to Reach a GoalSusquehanna International Group (SIG) · OASusquehanna International Group (SIG) interview questions
- Repeated Mirror XORMathWorks · OAMathWorks interview questions
- Basic Item DiscountsPalantir · OAPalantir interview questions
- Find Total CostJP Morgan Chase · OAJP Morgan Chase interview questions
- Macaron Order PriceOpenAI · OAOpenAI interview questions