The art of data science with data products
most data science projects dont fail on the model. they fail at the edges. the data shows up late and nobody owns it, or the model works in a notebook and never reaches production.
a set of articles on martinfowler.com by Thoughtworks authors (Zhamak Dehghani on data mesh, and Danilo Sato, Arif Wider and Christoph Windheuser on continuous delivery for machine learning) gives me a vocabulary for fixing both edges. i'm putting those ideas on one map and saying how i read them.
The two edges
the data edge. in the 2019 data mesh article, Dehghani describes the central data lake or warehouse team: engineers sitting between the systems that produce data and the people who use it, working through a pipeline split into technical stages. one new feature touches every stage. the proposed fix is domain ownership. each domain serves its data as a product and treats its consumers as customers.
the problem underneath is ownership, and in farsi we say:
آشپز که دو تا شد، آش یا شور میشود یا بینمک
ashpaz ke do ta shod, ash ya shoor mishavad ya bi-namak
literally: when there are two cooks, the soup comes out too salty or with no salt.
a pipeline split into stages has a cook at every stage and nobody tasting the finished soup. a data product puts one owner on the whole dish.
the model edge. in Continuous Delivery for Machine Learning, the authors point out that ML changes along three axes at once: code, model and data. throwing work over the wall leaves models in notebooks, or hand-deployed and stale. their answer is a delivery pipeline: reproducible training, experiment tracking, tests that can block a model, deployment, and monitoring that feeds the next round.
The map
How I read it
what interests me most is that a data scientist sits in two product relationships at the same time.
- as a customer. the consumer-aligned data product is where a data scientist's inputs come from. if it isn't discoverable, trustworthy and owned, no amount of modeling skill fixes it. thats the data product owner's job, and the 2020 article suggests measuring it by data quality, time to consume, and user satisfaction.
- as a producer. the trained model is a product too. CD4ML lists "published as data" as one way to ship a model, and then its output is a data product other teams consume. the loop closes when production monitoring produces new training data.
that second point is my reading, not something either article says directly, so i tagged it on the map.
Sources
- Zhamak Dehghani, How to Move Beyond a Monolithic Data Lake to a Distributed Data Mesh, martinfowler.com, May 2019
- Danilo Sato, Arif Wider, Christoph Windheuser, Continuous Delivery for Machine Learning, martinfowler.com, September 2019
- Zhamak Dehghani, Data Mesh Principles and Logical Architecture, martinfowler.com, December 2020