Developing AI/ML models and running evals
Download checklist (.xlsx, 19 tasks)1. Core idea and principles#
Many deeptech products now include machine learning: models that interpret sensor data, predict material properties, design molecules, control robots, read medical images or power assistants built on large language models (LLMs). The model is often where the product's value sits, and also where it can fail silently.
Evaluations (evals) are how you know whether a model works: structured tests of performance on data that represents real use. Good evals are the difference between a demo that impresses and a product customers can trust. They also become evidence for investors, customers and regulators.
The model lifecycle#
| Stage | Key work | Common failure |
|---|---|---|
| Problem framing | Define the decision the model supports and the cost of errors | Optimising an easy metric that doesn't matter |
| Data | Collect, label, version and document data; check rights and consent | Leakage, bias, unlicensed data |
| Baselines | Compare with simple methods and current practice | Complex models that don't beat a simple baseline |
| Training | Reproducible pipelines; tracked experiments | Results nobody can reproduce |
| Evaluation | Held-out and real-world tests, slices, robustness, safety | Testing on data too similar to training data |
| Deployment | Monitoring, versioning, rollback, human oversight | Performance drifts unnoticed |
Principles#
- Evaluate against the real task and real data, not just a public benchmark.
- Always compare with a simple baseline and the current human or rule-based process.
- Prevent data leakage: split by patient, site, batch, time or device, not just randomly.
- Look at slices: performance by subgroup, site, condition and edge case, not just the average.
- Version everything: data, code, model, configuration and eval results.
- For LLM-based products, build a test set of real tasks with graded answers, and rerun it on every model or prompt change.
- Know your regulatory category: some AI uses are regulated (medical, safety, hiring, credit).
2. What the data says (November 2026)#
| Finding | Source |
|---|---|
| A survey of reviews across 17 scientific fields found data leakage affected at least 294 papers, leading to over-optimistic results; the authors classified eight types of leakage | Kapoor and Narayanan, Leakage and the reproducibility crisis in machine-learning- based science, Patterns (2023) |
| In a case study on civil war prediction, papers claiming complex ML models beat logistic regression failed to reproduce because of leakage; once fixed, the ML models did no better than decades-old regression models | Same study |
| The authors propose "model info sheets" to document and detect leakage | Same study |
| The 2025 DORA survey found AI adoption increased software delivery throughput but also delivery instability | Google DORA (2025) |
| The EU's Digital Omnibus on AI moved high-risk AI obligations to 2 December 2027 for | Gibson Dunn; Council of the EU final approval reported 29 June 2026 |
The EU's Digital Omnibus on AI moved highrisk AI obligations to 2 December 2027 for standalone (Annex III) systems and 2 August 2028 for AI in regulated products (Annex I); general-purpose AI model obligations have applied since 2 August 2025
What this means#
- Many impressive ML results are wrong because of leakage. Investors and customers increasingly check for it.
- Beat a simple baseline first, and show it.
- EU high-risk AI rules are coming, but later than first planned; plan documentation and evals now if you serve regulated uses.
3. How to do it#
Step 1. Frame the problem#
Write down: the decision the model supports, who uses it, the cost of false positives and false negatives, the minimum performance to be useful, and how you'll know it's working in the field.
Step 2. Build the data foundation#
- Record where each dataset came from, its licence or consent basis, and any restrictions (2.17, 4.13).
- Version datasets and labels; document labelling guidelines and check label quality.
- Plan splits that reflect real use: by site, patient, batch, device or time.
- Keep a locked test set that nobody tunes against.
Step 3. Set baselines and metrics#
Compare against: current practice (human experts or rules), a simple model (such as linear or tree-based), and published benchmarks if relevant. Choose metrics tied to the decision (for example sensitivity at a fixed specificity, mean absolute error in physical units, task success rate for LLM agents).
Step 4. Build an eval suite#
| Eval type | Purpose |
|---|---|
| Held-out test | Main performance on unseen data |
| External validation | Data from new sites, devices or time periods |
| Slice analysis | Performance by subgroup, condition, edge case |
| Robustness | Noise, missing data, sensor drift, unusual inputs |
| Calibration | Whether confidence scores match reality |
| Safety and misuse (LLMs) | Harmful outputs, prompt injection, data leakage |
| Regression | Re-run on every model, data or prompt change |
Automate the suite in CI so every change produces a report (9.05).
Step 5. Deploy with monitoring#
Track input data drift, performance on labelled samples, user overrides and complaints. Keep the ability to roll back to a previous model. Put a human in the loop where errors are costly.
Step 6. Document#
Write a model card for each released model: intended use, training data, performance (including slices), limitations and known failure modes. It helps customers, investors and regulators (9.20).
Worked example#
A startup using ML to detect defects in solar cells from electroluminescence images.
| Issue found in review | Change | Result |
|---|---|---|
| Random image split put cells from the same wafer in train and test | Split by production batch | Reported accuracy fell from 98% to 91%, a truer figure |
| No baseline | Compared with the factory's existing rule-based system | Model cut missed defects by 40% versus rules |
| Average hid poor results on a new cell type | Slice analysis by cell type | Collected 2,000 more labelled images of the new type |
| No monitoring after deployment | Weekly drift dashboard and monthly labelled audit | Caught a camera calibration shift within a week |
4. Country notes#
India#
- Governance: MeitY's India AI Governance Guidelines (November 2025) set out principles and a light-touch, sector-led approach rather than a single AI law; sector regulators (RBI, SEBI, CDSCO, ICMR) issue their own rules.
- Data: training on personal data must follow the DPDP Act and Rules; publicly available personal data has some exemptions, but check carefully (4.13).
- Medical AI: software as a medical device is regulated by CDSCO under the Medical Devices Rules; ICMR has ethical guidelines for AI in biomedical research and healthcare.
- Compute: the IndiaAI Mission offers subsidised GPU access to startups through empanelled providers.
United States#
- Regulation by sector: FDA regulates AI-enabled medical devices (including predetermined change control plans for model updates); the FTC acts against deceptive AI claims; some states (such as Colorado) have passed AI laws, though federal policy has sought to limit state regulation.
- Government buyers: may require AI risk management aligned with NIST's AI Risk Management Framework.
United Kingdom#
- Approach: a principles-based, regulator-led approach rather than a single AI act; the AI Security Institute evaluates frontier models.
- Medical AI: MHRA regulates AI as a medical device and runs the AI Airlock sandbox.
- Data: UK GDPR and the Data (Use and Access) Act 2025 apply to training data.
European Union (if you sell there)#
The AI Act's general-purpose AI obligations apply now; high-risk obligations apply from 2 December 2027 (Annex III) and 2 August 2028 (Annex I, such as medical devices and machinery) (17.10).
5. Scripts, mistakes and sources#
Scripts#
Answering an investor's question about model performance
"On our locked external test set, from three factories we never trained on, we catch 94% of defects at a 2% false alarm rate, against 61% for the customer's current rulebased system. Here's the breakdown by cell type and the model card."
Pushing back on a too-good result
"99% accuracy is suspicious. Before we celebrate, let's check whether images from the same wafer are in both train and test, and re-run with a batch-wise split."
Setting expectations with a customer pilot
"The model will flag likely defects for your inspectors, not replace them, for the first three months. We'll measure agreement weekly and only move to automatic rejection if it meets the thresholds we've agreed."
Common mistakes#
- Data leakage from random splits.
- No simple baseline.
- Reporting only average performance.
- Tuning on the test set.
- Unclear data rights or consent.
- No monitoring after deployment.
- Changing prompts or models without re-running evals.
Related playbooks#
- 2.17 Rights to research data and datasets; 4.13 Data protection; 9.03 Experiment design; 9.05 Engineering practice
- 9.06 Tech stack and technical debt; 9.18 Security engineering; 9.20 Documentation; 17.10 AI regulation and governance
Sources#
- Kapoor and Narayanan, Leakage and the reproducibility crisis in machine-learningbased science , Patterns 4(9): 100804 (2023)
- Gibson Dunn, EU AI Act Omnibus Agreement: Postponed High-Risk Deadlines and Other Key Changes (2026)
- Google DORA, State of AI-assisted Software Development (2025)
- NIST, AI Risk Management Framework 1.0 (2023)
- Mitchell et al., Model Cards for Model Reporting (2019)
This playbook is general information, not legal or regulatory advice.