Repository challenges
Review a leaking evaluation pipeline
Code review · Intermediate · AI engineering · 35 minutes
Engineering ticket
Review pipeline.py. Write a review in REVIEW.md identifying specific lines, the impact and a concrete correction. Evaluate data leakage, handling of labels, reproducibility and access to sensitive fields. This is a human-reviewed exercise: automated tests do not certify review quality.
Review rubric
- Locate train/test leakage and explain its impact
- Identify inappropriate features and sensitive logging
- Suggest actionable corrections and regression tests
Reading the ticket and starter files is public. Sign in to save edits, run tests and submit evidence. Code-review quality requires human review.
Starter repository
README.md
# InferenceAI engineering lab Read the ticket, inspect the files, reproduce the issue and implement the contract. Run visible tests while working. Submit checks protected cases. Explain your changes and limitations.
REVIEW.md
# Review ## Findings ## Suggested changes ## Tests to add
pipeline.py
def evaluate(rows, fit, split, score):
features = [[r["age"], r["target"], r["account_id"]] for r in rows]
scaler = fit(features)
train, test = split(features)
print("Evaluation records:", rows)
return score(scaler.transform(test))