BHS Links
BHSLinks
Order

Canada — AI / 30-11-2026

The ML Lifecycle From Problem to Production

Framing the problem before touching a model

Most failed machine learning projects in Canada do not fail in the code. They fail at the framing stage, when a team agrees on a vague goal like "use AI to improve retention" and skips the part where someone defines the outcome, the unit of prediction and the cost of being wrong. A useful discipline is to write the decision the model will inform, the data that exists at the moment of that decision, and the acceptable error rate. If the prediction needs information that only arrives after the decision, the project is dead on arrival.

This is where causal inference machine learning earns its keep. A retail chain in Mississauga might notice that customers who receive a loyalty email spend more, and conclude the email causes the spending. It does not; the chain already targets heavy buyers. A churn model trained on that correlation will happily recommend discounting people who would have stayed anyway. Framing the question as a causal one, with a treatment, a control group and a clear estimand, keeps a project honest before a single hyperparameter is tuned.

Budget matters too. A typical mid-sized Canadian firm sponsoring a first serious ML project should expect somewhere between $80,000 and $250,000 in the first year, most of it going to data cleaning and integration rather than modelling. Cloud credits at Canadian regions in Montreal and Toronto run higher than US pricing, and Canadian data residency requirements in regulated sectors add engineering work that rarely appears in a vendor demo.

Clustering, training and the parts nobody demos

Once the question is fixed, the pipeline has a predictable shape: collect, clean, transform, split, train, evaluate, repeat. Cleaning and feature work consume 60 to 80 percent of the effort in most real projects, and the tools are unglamorous — SQL, pandas, dbt, a versioned data warehouse. Machine learning degrees teach the modelling; employers pay for the plumbing.

Unsupervised work still has a place

Clustering machine learning gets dismissed as the unserious end of the field, but it solves real Canadian problems. A hospital network in Halifax can cluster emergency department visits by arrival pattern and acuity to staff shifts more sensibly. A farm equipment dealer on the Prairies can cluster parts demand across hundreds of SKUs to decide what belongs in a regional depot. The catch is that cluster labels mean nothing on their own; someone has to interpret them and validate that the groups stay stable across seasons.

For supervised work, the evaluation split deserves more attention than it usually gets. Winter behaviour differs from summer behaviour in almost every Canadian dataset — heating demand, ski bookings, construction schedules, transit ridership. A model validated on a random split will quietly leak winter rows into training and overstate its accuracy. Splitting by time, not at random, is the safer default.

Deployment and the discipline that follows it

Deploying machine learning models is where academic habits break. A notebook that scores 0.91 on a held-out set becomes a service that must answer in under 200 milliseconds, handle missing fields, log its inputs, and survive a data schema change made by an upstream team on a Friday. The practical pattern is to containerize the model, expose it behind an API, and keep the feature pipeline in the same repository so training and serving cannot drift apart. Managed options — SageMaker, Vertex AI, Azure Machine Learning — handle the surrounding machinery at a monthly cost that scales with traffic.

Monitoring after launch is not optional. Inputs drift, and a credit model trained on 2022 borrowers can degrade badly by 2025 without any code change. Track the distribution of key features, the rate of predictions in each class, and the actual outcomes once they arrive. A model review every quarter, with a documented owner, satisfies both internal audit and the expectations set out in the federal Directive on Automated Decision-Making for institutions that fall under it.

One recurring compliance detail: Quebec's privacy law and the federal Personal Information Protection and Electronic Documents Act both require that automated decisions affecting individuals be explainable on request. That constraint should influence model choice from the start. A gradient-boosted model with SHAP explanations is often easier to defend than a deep network with none.

What aspiring machine learning engineers actually need

The job title is crowded, and Canadian postings increasingly spell out their requirements plainly: proficiency in Python, solid SQL, one cloud platform, experience with at least one production deployment, and the communication skills to explain a precision-recall trade-off to a product manager. A master's degree helps for research-adjacent roles; a portfolio of two or three deployed projects helps more for everything else. Co-op programs at Waterloo, UBC, McGill and Polytechnique Montréal remain the most reliable on-ramp, because they supply the deployment experience that courses cannot.

A PhD in artificial intelligence opens different doors — research scientist positions at the Vector Institute, Mila or Amii, or faculty roles — but it is a poor fit for someone who wants to ship products. The honest test is whether you enjoy reading papers and defending a thesis for five years more than you enjoy debugging a data pipeline. Both paths are legitimate; mixing them up wastes years.

Whatever the entry point, the durable skill is judgement about data quality and problem framing. Tools change every two years. Knowing which questions a model can and cannot answer does not.

Related reading