Data Science Portfolio: Make the Evaluation Recomputable

A model score sits at the top of your notebook, but the portfolio does not say what was predicted or how the baseline was scored. Give the reader a comparison they can reconstruct before adding more projects.

Put the evaluation beside the prediction task

The fictional case study below forecasts next-hour bike demand. It uses four invented observations and two supplied prediction vectors to illustrate evaluation arithmetic. There is no trained model, real city dataset, deployed service or measured applicant achievement behind these numbers.

Four synthetic observations, two prediction vectors and a checkable error comparison
Four synthetic observations, two prediction vectors and a checkable error comparison
Open the full example ↗

Compare the same observations in the same units. Actual counts are 6, 8, 3 and 5 bikes. The example baseline predicts 4, 4, 5 and 9; its absolute errors sum to 12. The candidate predictions are 5, 9, 5 and 5, with errors totaling 4. Dividing each total by four gives mean absolute errors of 3 and 1 bikes. The difference is 2 bikes on this illustrative set; it is not evidence of operational improvement.

The page keeps the prediction rows visible so the summary can be checked. It also distinguishes a proposed chronological evaluation from a demonstrated training procedure. Four teaching observations cannot establish that a real model generalizes.

Describe how information reached the model

For your actual project, record the prediction moment, which features were available then, and the train, validation and test boundaries. State how you selected the model and which data informed preprocessing. Do not label a score held out unless your process supports that description.

Scikit-learn's leakage guidance explains that unavailable prediction-time information and test data used in model choices can produce overly optimistic estimates. Its advice includes splitting before preprocessing and learning transformations from training data. Use that check when explaining your own process; the sample page does not claim that it fitted a pipeline.

Keep the notebook, environment details, data permission and actual evaluation code in the repository. Link only evidence you have checked. Name the error cases you observed and distinguish offline evaluation from deployment. Keep an application's required resume format; the portfolio supplies context rather than replacing the submission.

Draft from evaluation notes, not a headline score

Create one self-contained HTML data science portfolio case study.
Confirmed personal contribution and task/prediction time: [PASTE]
Permitted source, units, features and data period: [PASTE]
Train/validation/test boundaries, preprocessing and selection procedure: [PASTE]
Baseline and candidate predictions or scores on the same metric/set: [PASTE]
Verified notebook/repository links, limitations and deployment status: [PASTE]

Use only supplied facts; mark gaps [TO CONFIRM]. Recompute available evaluation arithmetic. If metrics, units or evaluation sets differ, mark [NOT COMPARABLE] and withhold a gain claim. Keep conflicting scores [CHECK SCORE]; do not alter source predictions to fit them. Do not invent trained models, data splits, leakage checks, credentials, links or deployment. Distinguish synthetic teaching observations, offline scores and operational outcomes. Keep notebook/code in the repository and requested application formats authoritative.
Use semantic headings, a captioned comparison table with scoped headers, labeled rows at 360px and at least 16px body text. Inline CSS only; no scripts, external assets, network, fake controls or editable fields. Return complete HTML and unresolved evaluation checks.

Have another reader challenge the comparison

Send the case study to a peer and ask which input would make the score incomparable or unavailable at prediction time. If the prediction rows and limits are hard to compare, read them together in the prepared HTML review copy in NOS, then revise the notebook explanation.

Send the revised comparison with the evaluation boundary still visible. Ask for the next failure case to investigate. Reading or revising the page does not rerun a model or notify its reviewer.

Keep reading