<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by DoYoung Kim on Medium]]></title>
        <description><![CDATA[Stories by DoYoung Kim on Medium]]></description>
        <link>https://medium.com/@dykim29?source=rss-690a2a209390------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hdamyqBrESDY4-LE3ufVug.png</url>
            <title>Stories by DoYoung Kim on Medium</title>
            <link>https://medium.com/@dykim29?source=rss-690a2a209390------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:23:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dykim29/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Teaching computers to learn what recipes are]]></title>
            <link>https://medium.com/gousto-engineering-techbrunch/teaching-computers-to-learn-what-recipes-are-20b91161d4da?source=rss-690a2a209390------2</link>
            <guid isPermaLink="false">https://medium.com/p/20b91161d4da</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[word-embeddings]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[DoYoung Kim]]></dc:creator>
            <pubDate>Fri, 18 Mar 2022 08:56:17 GMT</pubDate>
            <atom:updated>2022-04-19T08:48:09.312Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using Deep Learning and Transformers to train Recipe Embeddings</h3><blockquote>How we used state-of-the-art Natural Language Processing to learn recipe embeddings!</blockquote><p>Authors: <a href="https://medium.com/u/c4148ef7ad84">Sheng Chai</a>, <a href="https://medium.com/u/c624eff1f051">Alexander Marinov</a>, <a href="https://medium.com/u/690a2a209390">DoYoung Kim</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1G_XRcOTc_ysJr3Oy5IytA.png" /><figcaption>How can computers understand what a recipe is?</figcaption></figure><p>At Gousto, we have very comprehensive dataset on recipes. Not only do we have raw data on ingredient list, nutritional information and cooking steps, we also have a lot of human labelled features such as cuisine type, dish type, and protein type.</p><p>Unfortunately many of these columns are either unstructured or have very high cardinality. The cuisine column itself has about 43 (and still growing) values! Representing such high cardinality columns in learning tasks is hard and requires a lot of feature engineering. The most common ways of doing this are:</p><ol><li><strong>One-hot encoding</strong> — this involves representing each attribute as 1s and 0s, e.g. ratatouille would have is_french column = 1 and is_italian column = 0. This however results in a very sparse dataset (very memory inefficient and leads to <a href="https://en.wikipedia.org/wiki/Curse_of_dimensionality">curse of dimensionality</a>)</li><li><strong>Binning/Grouping</strong> — this involves grouping categories into coarser categories before one-hot encoding e.g. combining french and italian into european. This however throws away <em>a lot</em> information! Whilst french and italian areeuropean cuisine, they are also <em>very different!</em></li><li><strong>Mean encoding </strong>— this means encoding categories with values based on the prevalence in the target labels. This however is very context dependent — and we have to do this feature engineering again and again for every algorithm that needs the cuisine column.</li></ol><h3>What are embeddings and how could they help?</h3><p>Embeddings are numerical representations of an entity in <em>N</em> dimensions. It’s widely used on deep learning or natural language processing tasks, e.g. representing English words in numbers. There are many pre-trained embeddings available open-sourced online e.g. <a href="https://nlp.stanford.edu/projects/glove/">GloVe</a> or <a href="https://code.google.com/archive/p/word2vec/">Google Word2Vec</a>. You can think of these as ‘coordinates’, and the idea is that words with similar meaning are located close together in these coordinates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oTln0wav5eFIWySQ" /></figure><p><strong>With embeddings:</strong></p><ol><li>We could reuse embeddings across the different algorithms we deploy at Gousto, avoiding reinventing wheels and laborious feature engineering</li><li>Easy for backend systems to get data needed to serve predictions — all recipe information can be compressed into a vector of floats from a single source</li><li>Less feature engineering = less code to maintain = easier and faster prototyping/ deploying algorithms into production</li></ol><h3>How Gousto today uses embeddings</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3qu12qaZNi-CSj1_" /></figure><p>We currently train 5 embeddings within our recommendation system. These embeddings however are trained on users’ interactions (past orders) data. As a result, it is not an objective description of what a recipe is but rather describes which recipes are often bought together.</p><p>For example, many users would buy a burger and curry together but never 2 burgers or 2 curries in a single order. As a result, burger and curry would appear to be ‘similar’ but 2 curry dishes would be ‘different’, which is not necessarily the behaviour we want for other downstream applications!</p><p>Therefore we need another way to train recipe embeddings that can capture an objective description of what recipes are, so that these embeddings could be used for many different downstream applications.</p><h3>Our initial attempts at training an objective recipe embedding</h3><h4>Using GloVe Pre-trained embeddings</h4><p>Our first method of creating recipe embeddings was using <a href="https://nlp.stanford.edu/projects/glove/">GloVe</a>. However we found that this didn’t produce great results, probably because GloVe is trained on the entire English vocabulary and all food words are too close together in the embedding space.</p><h4>Our own Word2Vec embeddings on Gousto’s Recipe Library</h4><p>So we needed a bespoke model. First we tried training our own <a href="https://towardsdatascience.com/introduction-to-word-embedding-and-word2vec-652d0c2060fa">Word2Vec</a> model using recipe ingredients. We fed in the list of ingredients as input, and trained the model to learn the <em>context</em> around each word, using a sliding window technique. To help the model learn the contextual information better, we ordered the ingredients in the order that they appear in the cooking instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/0*oQyLOk15C-GDXUs9" /></figure><p>Next we needed a way to <em>aggregate</em> the ingredient embeddings into a recipe embedding. This can be done in several ways, such as simple mean or <a href="https://medium.com/analytics-vidhya/tf-idf-term-frequency-technique-easiest-explanation-for-text-classification-in-nlp-with-code-8ca3912e58c3"><strong>term frequency–inverse document frequency</strong></a> (TF-IDF). TF-IDF down-weighs contributions of words that occur very frequently, so that the ingredient ‘garlic’ does not contribute as much to the recipe embedding compared to a niche ingredient such as ‘gochujang’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/0*b5Y-pQFD3X4ENTTb" /><figcaption>How can we combine the ingredient embeddings to a single vector?</figcaption></figure><p><strong>However there are limitations with Word2Vec + TF-IDF:</strong></p><ul><li>It doesn’t allow the model to learn any <em>non-linearity</em> that exist between ingredients. For example, the word ‘cumin’ can have very different meaning depending on which word it’s surrounded by; if it appears with paprika, it’s likely to be in a Mexican dish, whereas if it appears with curry powder, it’s likely to be an Indian dish!</li><li>It is limited to looking at the context around each ingredient, rather than considering the entire list of ingredients together.</li></ul><p><strong>So, we needed a way to convert vectors of individual tokens (ingredients) into a vector of ‘documents’ (recipes) that</strong></p><ul><li>is <strong>permutation invariant</strong> — same list of ingredients in a different order gives the same result!</li><li>captures <strong>non-linear</strong> interactions between the tokens in the list</li></ul><h3>Enter the Set Transformer</h3><p>What are Set Transformers exactly, and how are they relevant to our problem of creating recipe embeddings with context? Before we dive into that we need to briefly go over transformers, and why they are important. First described in <a href="https://arxiv.org/abs/1706.03762"><em>Attention is All You Need</em> (Vaswani et al.)</a>, transformers became the gold standard for NLP tasks due to their ability to accurately represent <strong>contextual</strong> information in a scalable way (read the blog post <a href="https://jalammar.github.io/illustrated-transformer/">The Illustrated Transformer</a> for more details!).</p><h4>Attention and Self-Attention Blocks</h4><p>The new mechanism that transformers introduced and that separated them from previous neural network architectures is known as <strong>attention.</strong> The name comes from the network’s ability to pay attention to different parts of the data depending on the context. There are two types of attention blocks that are implemented in a conventional transformer architecture:</p><ol><li><strong>Encoder-Decoder Attention </strong>— this type of attention teaches the network, which parts of the input data to look at, to help predict the desired output of the task. It is typically useful when we have supervised learning tasks, like for example a machine translation task to translate a sentence from one language to another — in that case we can think of it as understanding the context within the input sentence to help better predict what the translation would be.</li><li><strong>Self-Attention</strong><em> </em>— this type of attention teaches the network context within the given input data. It is a special case of the attention described above in which the input data and the output data is the same. It is typically used for unsupervised training tasks, e.g. teaching a computer language, for the purpose of text generation later (think GPT-3)</li></ol><p><em>Note that in supervised learning tasks, Self-Attention blocks are still present in both the encoder and decoder of the transformer on top of having the Encoder-Decoder attention block described above.</em></p><h4>Differences between Set Transformer and Transformer</h4><p>At its core, the <a href="https://arxiv.org/abs/1810.00825">Set Transformer</a> (Lee et al.) has two distinguishing features from the transformer architecture:</p><ol><li><strong>We don’t have separate starting and target sequences</strong> — unlike the translation task, since we’re just trying to learn the relationship between items in the embedding space, the input and target sequences are the same. In other words, all attention blocks are self-attention blocks, both in the encoder and decoder.</li><li><strong>Set Transformer deals with sets instead of sequences</strong> — sets are permutation invariant unlike sequences, meaning the value of a set would still be the same even if we get an output with different ordering of the items. This property is represented in the architecture through an additional pooling layer (also an attention block) used in the decoder . We will not overbear the reader with the details of how the Pooling by Multi-head Attention (or <strong><em>PMA</em></strong>) block works, and instead urge those who are interested to refer to the <a href="https://arxiv.org/abs/1810.00825">original paper</a>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/0*vv5BMv0jyfHEH5zH" /><figcaption>Visualisation of what part of a single self-attention block might look like. Darker shades represent words to which “cumin” is paying attention to in order to predict the cuisine. The presence of ingredients like ‘tortilla’ suggests Mexican over Indian.</figcaption></figure><h4>Putting it all together</h4><p>We have all the elements now to define the final architecture of the Set Transformer that we used for our task. Expressed mathematically:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*zv0k3szNnCXk9IcqfIQLIQ.png" /></figure><p>where, <strong><em>SAB</em></strong> is a Self-Attention Block, <strong><em>PMA</em></strong> is the Pooling Multi-head Attention block, <strong><em>rFF</em></strong> is a feed-forward layer, <strong><em>X</em></strong> is our input for which we used the set of ingredients of a recipe, and <strong><em>Z</em></strong> is the output of the encoder.</p><p>At a high-level, the encoder uses self-attention to map the relationships between the set of ingredients of a recipe to a feature space <strong><em>Z</em></strong>. The decoder then uses pooling, more self-attention blocks, and a feed forward layer to aggregate the feature space back into a single vector which we can further use to train the embeddings on a classification task.</p><h3>Training Recipe Embeddings with Multi-Task Learning</h3><p>To train the embeddings using the Set Transformer, we use a combination of the Set Transformer architecture along with <strong>multi-task learning layers</strong>, which learn to classify recipes by its attributes, by:</p><ol><li>Encoding and padding the ingredient lists</li><li>Passing these to an embedding layer, followed by the Set Transformer architecture</li><li>Flattening the output and feeding into several fully-connected layers, where the output of the last layer would become the recipe embeddings</li><li>Splitting into multiple task-specific layers, each consisting of several fully-connected layers which aim to predict one recipe attribute each, such as protein or cuisine</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2x7i90QGndwHV3l3" /></figure><p>Multi-task learning ensures that the Set Transformer and linear layers learn to capture all the characteristics that make up the recipe; i.e. produce a generalised representation of recipes, which is exactly what we want in recipe embeddings! As the network tries to optimise the multiple loss functions at once, we are able to train the weights in the Set Transformer and linear layers to produce these embeddings.</p><p><strong>The advantages of our method are:</strong></p><ol><li>Once trained, we can simply extract out the Set Transformer and shared linear layers to produce embeddings for any recipe, as long as we know its ingredients. This means we can infer characteristics of the recipes before they are out in the real world!</li><li>We could put more emphasis on certain attributes by increasing their weights for losses, using domain knowledge, if we knew for instance that protein is more important to customers than dish type.</li></ol><h3>Visualising Recipe Embeddings</h3><p>So how do we know if these recipe embeddings actually learned anything? We could project the embeddings into a 2D plane and colour-code it by protein labels for example to see what it’s doing. The idea is that similar recipes should be close together in the embedding space. Play around with the plot to explore our different recipes in the embedding space!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplotly.com%2F%7Edykim29%2F1.embed%3Fautosize%3Dtrue&amp;display_name=Plotly&amp;url=https%3A%2F%2Fchart-studio.plotly.com%2F%7Edykim29%2F1%2F&amp;image=https%3A%2F%2Fchart-studio.plotly.com%2Fstatic%2Fwebapp%2Fimages%2Fplotly-logo.8d56a320dbb8.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=plotly" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/72e7435b86cba2b53a5a90a4ff4b74de/href">https://medium.com/media/72e7435b86cba2b53a5a90a4ff4b74de/href</a></iframe><h3>Feeding Recipe Embeddings into our Recommender System</h3><p>To evaluate how good embeddings are, we’ve fed it to our recommender ( a downstream application) and found that:</p><ol><li>GloVe pre-trained embeddings performed the worst as we expected. TF-IDF using Gousto Word2Vec wasn’t much better.</li><li>Set Transformers, whilst not beating current recommender in production, is still very close in performance to our production system.</li></ol><p>In addition, using Recipe Embedding trained outside recommender also reduced training time by 30%. For context, our recommender takes about 10 hours to train on full production data.</p><p>This is really promising because we could reinvest the training time saved into training longer epochs, develop a more complex network, or feed in even more data to increase our recommender’s performance!</p><h3>So what’s next for Recipe Embeddings?</h3><p>So far we’ve only used ingredients to construct recipe embeddings and it’s already giving really promising results. We’ve not used recipe images, cooking instructions or ingredients quantities yet! We think by using these additional data, we could teach a computer other things such as convenience, difficulty, time to cook, food textures (fried vs. soupy) which could make recipe embeddings even more predictive. These data sources however come with other challenges, e.g.:</p><ul><li>How do we represent ingredients quantity in a meaningful way (1 tsp of cinnamon vs 1 pack of crème fraîche)</li><li>How do we combine data sources of different types (images + text) into a single embedding space?</li></ul><p>In addition to our recommender, there are many places where we could also use Recipe Embeddings at Gousto:</p><ol><li>Forecasting (which we already currently do)</li><li>Menu Planning — optimising for menu cost, choice and other business constraints based on recipe attributes</li><li>Recipe Development — predicting performance of new recipes based on how similar they are to existing ones</li></ol><p>So stay tuned with what’s happening in this space!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20b91161d4da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gousto-engineering-techbrunch/teaching-computers-to-learn-what-recipes-are-20b91161d4da">Teaching computers to learn what recipes are</a> was originally published in <a href="https://medium.com/gousto-engineering-techbrunch">Gousto Engineering &amp; Data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ways of Working in a cross-functional data science team]]></title>
            <link>https://medium.com/gousto-engineering-techbrunch/ways-of-working-in-a-cross-functional-data-science-team-e0214df97a31?source=rss-690a2a209390------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0214df97a31</guid>
            <category><![CDATA[cross-functional-teams]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[DoYoung Kim]]></dc:creator>
            <pubDate>Wed, 09 Mar 2022 14:29:15 GMT</pubDate>
            <atom:updated>2022-03-09T14:29:15.850Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_8BMABOB5oNBB48Qciiefg.jpeg" /></figure><p>It can be tricky to fit agile ways of working in a data science team — perhaps even harder when there’s a mix of data scientists and software engineers!</p><p>In my previous <a href="https://medium.com/gousto-engineering-techbrunch/making-agile-work-in-data-science-683ad7767a34">blog post</a>, I discussed tips and tricks in doing this in a purely data science team. Since then, our team has grown to become a truly cross-functional team, and we have adapted our ways of working to suit our changing needs. In this post I’d like to share some insights we’ve gained along the way!</p><h3>About our squad (now called Kimchi!)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*aG_wEqI7GHYfPExCkphnHA.png" /><figcaption>Our squad icon!</figcaption></figure><p>We started off as a small team of 4 data scientists (DS) and 1 product manager working on Menu-related data products, but we have since then been joined by 5 software engineers (SE) and 1 product designer. We are a feature team, focused on developing Menu Planning products in Gousto, ranging from the menu planning algorithm to the menu planning front-end tool. These are used by the Food team at Gousto to plan menus automatically rather than by hand!</p><h3>So … How can DS and SE work together effectively?</h3><h4><strong>1. Avoid silos using shared goals</strong></h4><p>Often, DS and SE are forced together in one team, but they work on completely different things. Then they start to work separately, stand-ups are not relevant, and they become siloed. The most effective way to stop this is to plan and schedule work so that <strong>Objectives and Key Results (OKRs) are aligned as a team. </strong>Working on the same goals keeps the team cohesive — it’s important to have a shared vision, and to make sure everyone knows how they can contribute to those goals. For example, one quarter we may aim to release the feature of making recipe swaps on the menu easily. DS would work on the algorithm that suggests the best swaps, and SE would work on surfacing these in the tool.</p><h4>2. Have Epic owners in each function</h4><p>We split our projects into epics, which can be broken down into smaller tickets. In a bigger, cross-functional team, it’s useful to have epic owners for each project, one representative from each function. An Epic owner is responsible for ensuring that any estimates are up-to-date, all tickets are refined and scheduled, liaising with the other Epic owner for alignment, and updating the rest of the team on important decisions.</p><h4><strong>3. Be flexible around agile ceremonies</strong></h4><p>Feel free to mould some agile ceremonies to suit each function’s need! Some may need to be held together, some at a different cadence — experiment and see what works. This is what worked for us:</p><ul><li>Retrospectives: We have a squad wide retro every two weeks, to discuss topics related to SE/DS features we work on together and any other more squad-wide issues. We also have function specific retros every two weeks, in which we can discuss DS specific issues only (and same for SE).</li><li>Sprint Planning and Refinement: We hold these separately. The product manager attends both planning sessions, to make sure our work is sequenced correctly. The epic owners are responsible for ensuring we have refined tickets that we require in the next sprint.</li><li>Sprints: DS have <strong>short 1 week sprints</strong>, as it gives us greater flexibility given the higher level of uncertainty in data science, as highlighted in my previous post on <a href="https://medium.com/gousto-engineering-techbrunch/making-agile-work-in-data-science-683ad7767a34">Making Agile work in Data Science</a>. SE have a separate 2 week sprint which serves their type of work better.</li><li>Daily stand ups: Done together, with brief updates when we’re starting a new sprint, to update each other on our key goals for the sprint so we each have context.</li></ul><p>The above ensures we only attend ceremonies that are relevant, but we always stay updated.</p><h4><strong>4. Be clear on roles and responsibilities</strong></h4><p>Make sure to <strong>define roles and responsibilities</strong> as a team, to iron out any confusions of what part of a project lies with which function. We found this out the hard way when we scaled our team rapidly, and found it hard to make key decisions and know who to involve in what meeting. After having a session to define these, we could reach decisions more effectively.</p><h4><strong>5. Revisit Ways of Working across different project types</strong></h4><p>The nature of data science is that we often have different project types; one day we might be doing some exploration, another day we might be writing production level code, which would affect SE’s systems. It’s useful to define different ways of working and coding standards for these. For example, we use rigorous practices for writing code that affect SE, such as hitting a certain test coverage, seasonal refactoring, more reviewers of pull requests, and more detailed user stories and acceptance criteria in tickets. For Discovery/Proof of Concept projects, in which we explore whether a model may be viable, we’re more flexible. Setting these ensured we still deliver work on time but do not compromise on high quality when needed.</p><h4><strong>6. Have some socials!</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXmE0_B-lDY9ostiPVjQfA.jpeg" /><figcaption>At the Gousto summer party!</figcaption></figure><p>Something we can’t ignore is team bonding and spirit! In a smaller team it is easier to maintain great team bonds — chit-chat is much easier in a stand-up of 5 people rather than 11. In a bigger team, ensure to put in the extra effort in for a close-knit bond in the team. We have a weekly ‘Wheel of fun’ where we pick a random lucky winner each from SE and DS, provided with fun topics to talk about, a fun ‘squad day out’ doing a <a href="https://thesecret.city/">treasure hunt</a> around London, and of course, many pub meet-ups. I’m proud to say that our squad had the best representation at the Gousto summer party!</p><h3>Conclusion</h3><p>Overall we have worked to retain the flexibility that our previous ways of working offered, such as our 1-week sprints, but with more structure that enables great collaboration between different functions. I’m proud to say we still remain one of the happiest squads, with top squad health scores in Gousto!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0214df97a31" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gousto-engineering-techbrunch/ways-of-working-in-a-cross-functional-data-science-team-e0214df97a31">Ways of Working in a cross-functional data science team</a> was originally published in <a href="https://medium.com/gousto-engineering-techbrunch">Gousto Engineering &amp; Data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making Agile work in Data Science]]></title>
            <link>https://medium.com/gousto-engineering-techbrunch/making-agile-work-in-data-science-683ad7767a34?source=rss-690a2a209390------2</link>
            <guid isPermaLink="false">https://medium.com/p/683ad7767a34</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[ways-of-working]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[DoYoung Kim]]></dc:creator>
            <pubDate>Mon, 22 Feb 2021 09:21:04 GMT</pubDate>
            <atom:updated>2021-02-22T09:21:04.723Z</atom:updated>
            <content:encoded><![CDATA[<p>Agile methodology is widely adopted in software engineering but its strict methods make it hard to apply to the field of data science. The uncertainty in data science means we need more creativity, flexibility and research. Yet, the benefits of agile methods make it attractive for any team to use. Over time, our squad has found a unique way of incorporating agile into our ways of working.</p><h3><strong>About the squad (Daikons)</strong></h3><p>Daikons are a team of 4 data scientists and 1 product manager. We’re responsible for developing data science products within the Menu Tribe at Gousto, one of which is the menu planning algorithm. This is an optimisation algorithm that helps the Food team plan the weekly menu in an automated, data-driven way. It also optimises for metrics such as costs and recipe diversity.</p><h3><strong>Short sprints</strong></h3><p>Our 1-week sprints may be one of the most striking aspects of our ways of working. I thought this wouldn’t be compatible with DS projects as they tend to take longer than software engineering tasks, but it works well. In DS, there is a lot of uncertainty which makes planning for longer sprints very difficult. This short cycle time helps us ensure that:</p><p>a) we break down any tasks into small outcomes we want to achieve</p><p>b) we quickly adapt to findings we come across, whilst keeping aligned with our longer-term goals and roadmap.</p><p>If we’re unsure of exactly how to approach the problem, we often create a ticket with ‘Spike’ issue type. A “Spike” issue type means the outcome consists of further tickets where the problem is better defined. A short sprint with specific tasks helps us solidify what tickets to prioritise in the next sprint.</p><h3><strong>Flexibility</strong></h3><p>In strict agile methods, nothing should be added to sprints once they’ve been set. We’ve adopted a more flexible approach! We largely adhere to the rules, but we might add more tickets once we’ve completed a spike or change our sprint goals or scope to adapt to new findings. We think this is okay! The key is to stick to the plan but be prepared to change if our requirements change. We don’t get upset about things not being perfect.</p><h3><strong>Teamwork and Pair Programming</strong></h3><p>We work collaboratively in the DS team and we share responsibility across projects. If there is a particular problem that is harder to solve, we work in a group and brainstorm possible solutions. This is especially helpful when it comes to abstract problems which we tackle every day in Menu. After all, many heads are always better than one when the solution to the problem is not obvious. We do a lot of pair programming, and we are able to pick up tasks in any project we’re working on, as we have good visibility over what’s happening in each project. Since many of us joined after lockdown, the increased face time also has the added benefit of building stronger relationships.</p><h3><strong>Shared Responsibilities for Ceremonies</strong></h3><p>We share the responsibilities for agile ceremonies such as sprint planning, retrospectives, and refinement, rather than having one person lead everything. This holds each of us responsible and drives us to constantly think about improvements in our ways of working rather than depending on someone else.</p><h3><strong>Morning stand-up with relevant members only</strong></h3><p>Like many other scrum-based teams, we have a stand-up every morning to discuss what we’ve been up to, and what we would like to work on that day. As we are a small team of data scientists, all the work that’s going on is relevant and any of the tickets can be picked up by anyone. We’ve found this to be very effective. In previous companies, I’ve been in stand-ups that involved the entire tech team. I found that this didn’t work for me as a data scientist as my work was quite removed from the rest of the team. As a result, stand-ups felt very demoralising. In many companies where DS is often a relatively new function, this is something to keep in mind.</p><h3><strong>Discovery Epics</strong></h3><p>When we are about to start a new project, we start with the Discovery phase. This involves brainstorming possible approaches, high-level outcomes, splitting the project up into epics and t-shirt sizing each epic to come up with an estimate for the project (see image below). Each epic should have a clear acceptance criteria. Often in software engineering but even more so in DS, dependencies, risks, technical approach and estimates are unclear for larger projects until we do additional research through spikes and workshops. We, therefore, have a separate ‘Discovery Epic’ per project to help us solidify these at the start. The outcome consists of refined epics that are ready for development. Having clearly defined epics also helps us set timelines and avoid the pitfall of never-ending analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZNjLxmulk9NUuUTmjh8iJA.jpeg" /><figcaption>An example of t-shirt sizing, a way to give relative estimates to stories/epics. It enables us to think of the relative complexity without getting bogged down by providing numerical estimates.</figcaption></figure><h3><strong>The Future</strong></h3><p>As the team grows, we’ll find that we have software engineering needs when creating and productionising well-polished data products. This means, we’ll soon have software engineers and designers embedded in the squad and we’ll be responsible for delivering end-to-end data projects. When we do, we’ll have to work out how to adapt our ways of working to suit this new team, for example, ensuring stand-ups stay relevant for everyone whilst keeping everyone aligned. Keep an eye out for any future updates as we grow and adapt!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=683ad7767a34" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gousto-engineering-techbrunch/making-agile-work-in-data-science-683ad7767a34">Making Agile work in Data Science</a> was originally published in <a href="https://medium.com/gousto-engineering-techbrunch">Gousto Engineering &amp; Data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>