<?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 Natalia Koupanou on Medium]]></title>
        <description><![CDATA[Stories by Natalia Koupanou on Medium]]></description>
        <link>https://medium.com/@nataliakoupanou?source=rss-25c7fde7b6e2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8cKMy6o9f0_T6LyrIlrRtQ@2x.jpeg</url>
            <title>Stories by Natalia Koupanou on Medium</title>
            <link>https://medium.com/@nataliakoupanou?source=rss-25c7fde7b6e2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:18:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nataliakoupanou/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[The AI Boom: Practical Guide to Generative AI for Small Businesses]]></title>
            <link>https://pub.towardsai.net/the-ai-boom-practical-guide-to-generative-ai-for-small-businesses-f7f3641b4388?source=rss-25c7fde7b6e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7f3641b4388</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[small-business]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Natalia Koupanou]]></dc:creator>
            <pubDate>Mon, 25 Sep 2023 12:13:58 GMT</pubDate>
            <atom:updated>2023-09-25T12:13:58.879Z</atom:updated>
            <content:encoded><![CDATA[<h4>Transforming SMEs with Generative AI</h4><p>In recent years, the world has witnessed a remarkable surge in the field of artificial intelligence (AI). It’s not just another tech trend; it’s a technological revolution that is reshaping industries, economies, and societies. From large corporations to small businesses, AI is making a tangible impact across the board.</p><p>In this blog post, we delve into the heart of this transformative AI advancement, focusing on Generative AI. We’ll explore the fundamentals, its historical context, and the recent surge in its capabilities. Additionally, we’ll explain how small businesses can use Generative AI effectively, clearing up any misunderstandings and showing you how to get your hands on these advanced tools. By the end, we are hoping you’ll be in a better position to navigate the AI landscape and position your small business for success in this era of change.</p><h3>Getting the basics right</h3><p>To understand the AI boom, we need to start by defining some key terms:</p><blockquote><strong>Artificial Intelligence (AI)</strong>: AI is a field of computer science that enables machines to imitate human intelligence. It encompasses various capabilities, including learning, decision-making, understanding natural language, and even playing games, all aimed at replicating human-like intelligence.</blockquote><blockquote><strong>Machine Learning (ML)</strong>: A subset of AI, ML enables machines to learn from examples without explicit programming. Think of it as showing a computer a lot of pictures of cats and dogs until it can distinguish between them on its own.</blockquote><blockquote><strong>Deep Learning</strong>: A subfield of ML, deep learning relies on artificial neural networks to understand complex data and create hierarchies of information. It’s particularly effective in tasks like image and speech recognition.</blockquote><blockquote><strong>Generative AI (Gen AI)</strong>: Gen AI is a subset of deep learning focused on creating new content, such as text, images, audio, and video. It learns from existing data and uses that knowledge to generate unique and novel outputs.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*laklex7eCLjv2RQHoDDMKg.png" /><figcaption>Generative AI is a subset of Deep Learning</figcaption></figure><h3>History and development of AI</h3><p>Before we explore the current AI boom, let’s take a brief historical detour. The term “Artificial Intelligence” was coined in the mid-20th century by John McCarthy, often regarded as the father of AI. He described AI as “the science and engineering of making intelligent machines”. However, AI research experienced periods of rapid progress as well as “AI winters” when expectations exceeded technological capabilities.</p><p>In the 21st century, we’ve witnessed the rapid growth of AI, primarily due to advancements in machine learning, access to vast datasets, and powerful computing resources. This resurgence has led to AI being applied across various domains, from voice assistants such as Siri, and Alexa and recommendation systems found in websites such as Netflix, and Amazon to self-driving cars such as Tesla autopilot and language translation such as Google Translate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pXM5buidogT8tBms" /></figure><h3>Explosive Growth of Generative AI</h3><p>One of the most exciting aspects of the current AI boom is the explosive growth of Generative AI. In just the past few months, we’ve seen remarkable innovations, including new iterations of models like GPT (Generative Pre-trained Transformer) and groundbreaking projects like Midjourney, DALL·E 2, LLMA, AutoGPT pushing the boundaries of what’s possible.</p><p>Last November, ChatGPT from OpenAI wowed the world with its ability to generate content, from emails to legal documents. It even passed the <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4389233">Bar Exam</a>, hinting at AI’s potential in the legal domain. Walmart is <a href="https://www.businesswire.com/news/home/20230111005148/en/Pactum%E2%80%99s-Autonomous-Negotiation-Technology-on-Display-at-the-National-Retail-Federation%E2%80%99s-2023-Retail-Big-Show">exploring</a> AI for contract negotiations, while <a href="https://cloud.google.com/blog/topics/healthcare-life-sciences/sharing-google-med-palm-2-medical-large-language-model">Google’s Med-PaLM 2</a> excels in medical diagnostics. In the coding world, <a href="https://ai.meta.com/blog/code-llama-large-language-model-coding/">Code Llama</a>, an advanced Language Model System (LLM), is set to accelerate coding tasks and democratize access for all developers, seasoned or novices, reshaping the coding landscape.</p><p>What sets Generative AI apart is its ability to create content. By providing a simple prompt, you can generate text, images, videos, and more. Prompt engineering, the art of crafting prompts, plays a crucial role in controlling the output of these models (more on this in a future article).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*T6Bc8OlRMPYLH2tJeckYcg.png" /><figcaption>AI-generated art picturing a futuristic office of a small business owner</figcaption></figure><h3>Practical Impact on Small Businesses</h3><p>In recent years, we’ve seen slower productivity growth, but <a href="https://www.mckinsey.com/capabilities/mckinsey-digital/our-insights/the-economic-potential-of-generative-ai-the-next-productivity-frontier#introduction">McKinsey’s</a> estimates that automation of work tasks enabled by technology could lead to an annual global productivity increase of 0.2% to 3.3% between 2023 and 2040. Here are some real-world examples of how small businesses can leverage AI:</p><ol><li><strong>Content Creation</strong>: AI can assist in generating captivating content for websites, blogs, social media, etc. It helps produce relevant content quickly, freeing up time for other tasks.</li><li><strong>Visual Design</strong>: AI can generate graphics, logos, and social media posts that align seamlessly with a brand’s identity, saving time and ensuring consistency.</li><li><strong>Music and Audio Creation</strong>: AI can compose original jingles, soundtracks, and background music for videos, adding a unique sonic layer to content.</li><li><strong>Personalized Marketing Campaigns</strong>: Based on specific customer information, you can leverage Gen AI to generate personalized marketing materials (e.g., emails, product recommendations, ads), enhancing customer engagement and relevance.</li><li><strong>Product and Prototype Design</strong>: AI can contribute innovative ideas and prototypes during brainstorming sessions in creative fields, such as fashion and product design.</li><li><strong>Language Translation and Localisation</strong>: AI provides accurate translation and localization services, expanding into new markets effectively.</li><li><strong>Text Summarisation and Content Curation</strong>: AI simplifies the process of summarising articles and curating relevant content for newsletters or industry updates.</li><li><strong>Storytelling and Narrative Generation</strong>: AI can craft compelling narratives for presentations, sales pitches and other speeches, helping businesses connect with their audience.</li><li><strong>Customer Support:</strong> AI can help you curate frequently asked questions and reply to customer queries. Customized AI-powered chatbots can also provide 24/7 customer support, enhancing customer satisfaction and reducing the workload on support teams.</li><li><strong>Human Resources:</strong> AI can streamline HR processes, from writing up job adverts to preparing employee onboarding material, making the hiring process more efficient and reducing administrative burdens.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-vKGw7VlPGjWdFEd" /><figcaption>Examples of Generative AI use cases for small businesses</figcaption></figure><h3>Myths About AI</h3><p>Before diving into AI, it’s essential to dispel some misconceptions:</p><ol><li><strong>AI Is Only for Big Businesses</strong>: AI tools are accessible to businesses of all sizes, including small enterprises. Hopefully, you are convinced about this one after reading this blog post.</li><li><strong>AI Is Always Perfect</strong>: AI can make errors, and human oversight is often required to ensure quality. These errors are called hallucinations. An AI hallucination is “<a href="https://www.techopedia.com/definition/ai-hallucination#:~:text=An%20AI%20hallucination%20is%20where,on%20real%20data%20or%20events.">where a large language model (LLM) like OpenAI’s GPT4 makes up false information or facts that aren’t based on real data or events</a>”.</li><li><strong>AI Is Too Expensive:</strong> Cost-effective AI tools and solutions are available with a significant return on investment. The cost also depends on the application, scale and customization needed for your company to use AI. Some low-cost tools are mentioned later in this blog post.</li><li><strong>AI Knows Everything About Your Business</strong>: AI’s knowledge is based on data and requires proper training and customization to understand specific business nuances. If you want your AI model to provide precise information about your private data, then you should apply techniques like fine-tuning and Retrieval Augmented Generation (RAG) systems. RAG combines a knowledge retrieval system (like a librarian with access to your data) with a language model (like a GPT) to provide precise information when needed. Fine-tuning involves training an existing AI model (like a GPT) on specific data to adapt it to a particular domain or to change its response style, but it requires significant computational resources and updates every time you have new data.</li></ol><h3>Accessing Generative AI for Small Businesses</h3><p>Small business owners can access Generative AI through various means:</p><ol><li><strong>Educate Yourself</strong>: Gain a basic understanding of AI concepts and terminology to make informed decisions. Platforms like AWS, Google Cloud and LinkedIn offer some non-technical courses tailored to business users. Such as <a href="https://www.linkedin.com/learning/what-is-generative-ai/generative-ai-is-a-tool-in-service-of-humanity">“What is Generative AI”</a>, <a href="https://explore.skillbuilder.aws/learn/course/external/view/elearning/16666/generative-ai-for-executives">“Generative AI for Executives”</a> and <a href="https://www.cloudskillsboost.google/journeys/118">“Introduction to Generative AI Learning Path”</a>.</li><li><strong>Consult Experts</strong>: Partner with AI consultants who can guide you on tool selection, implementation, and strategy.</li><li><strong>Choose User-Friendly Tools</strong>: Opt for pre-built Generative AI tools designed for non-tech-savvy users. You can find some in the next section.</li><li><strong>Partner with AI Vendors</strong>: Collaborate with AI vendors to develop custom solutions tailored to your business.</li><li><strong>Hire AI Experts</strong>: Employ AI experts to create personalized AI solutions for your specific needs.</li></ol><p>Depending on the size, budget and needs of your company, you can choose which of these options are most suitable for you.</p><h3>Affordable or Free AI Tools</h3><p>While I can’t vouch for their quality, several AI tools are available for small businesses:</p><ul><li><strong>Website Creation</strong>: Tools like <a href="https://10web.io/">10Web</a> and <a href="https://www.wix.com/blog/wix-artificial-design-intelligence">Wix ADI</a> offer user-friendly website building with AI assistance.</li><li><strong>Image Generation</strong>: <a href="https://openai.com/dall-e-2">OpenAI’s DALL·E 2</a>, <a href="https://www.midjourney.com/showcase/recent/">Midjourney</a> and <a href="https://stablediffusionweb.com/">Stable Diffusion</a> are excellent for generating images based on prompts.</li><li><strong>Content Creation</strong>: Tools like <a href="https://chat.openai.com/">chatGPT</a>, <a href="https://www.grammarly.com/">Grammarly</a>, <a href="https://www.plusdocs.com/">Plus AI</a>, and <a href="https://www.jasper.ai/">Jasper.ai</a> assist in writing and editing content.</li><li><strong>Sales and Marketing</strong>: Tools like <a href="http://seamless.ai/">Seamless.ai</a>, <a href="https://www.ocoya.com/">Ocoya</a> and <a href="https://www.salesforce.com/uk/products/einstein/overview/">Salesforce (Einstein)</a> focus on lead generation and social media automation.</li><li><strong>Financial Management</strong>: <a href="https://quickbooks.intuit.com/app/apps/appdetails/bookeai/en-gb/">Booke AI</a>, <a href="https://www.truewind.ai/">Truewind.ai</a> and other <a href="https://www.linkedin.com/pulse/harnessing-power-ai-10-best-accounting-tools-2023-remote-ca">tools</a> use AI for accounting and insights.</li><li><strong>Customer Interactions</strong>: Companies such as <a href="https://www.boundlessai.io/">Boundless AI</a> and <a href="https://www.caffeinatedcx.com/">Caffeinated CX</a> offer personalised customer interactions through AI-powered chatbots. If you have the internal expertise, it’s also possible to fine-tune an LLM or connect your private data to an LLM using platforms such as Google Vertex AI, Pinecone and Single Store.</li></ul><h3>Preparing for the Future</h3><p>The AI boom is here to stay, and its influence on small businesses will only grow. To prepare for the future:</p><ol><li><strong>Stay Informed</strong>: Keep up with AI developments, trends, and applications in your industry.</li><li><strong>Experiment and Learn</strong>: Start small, experiment with AI tools, and learn from the experience.</li><li><strong>Collaborate:</strong> Consider partnerships with AI experts and vendors to tailor solutions for your business.</li><li><strong>Up-skill Your Workforce</strong>: Invest in training and up-skilling to make the most of AI’s potential.</li><li><strong>Embrace Change</strong>: Be open to change and adapt your business strategies as AI continues to evolve.</li></ol><p>In conclusion, Generative AI is transforming the ways of executing work and, therefore, productivity not just for big organizations but also for small and medium businesses. While challenges and misconceptions exist, AI offers immense potential for innovation, efficiency, and growth. Small business owners who embrace AI with a clear strategy and a commitment to adapt will be better positioned to thrive in this AI-powered era.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7f3641b4388" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/the-ai-boom-practical-guide-to-generative-ai-for-small-businesses-f7f3641b4388">The AI Boom: Practical Guide to Generative AI for Small Businesses</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleashing the Power of Feature Stores: How They Can Supercharge Your MLOps]]></title>
            <link>https://pub.towardsai.net/unleashing-the-power-of-feature-stores-how-they-can-supercharge-your-mlops-30105fb7d3b8?source=rss-25c7fde7b6e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/30105fb7d3b8</guid>
            <category><![CDATA[feature-store]]></category>
            <category><![CDATA[feature-engineering]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[features]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Natalia Koupanou]]></dc:creator>
            <pubDate>Wed, 07 Jun 2023 22:02:17 GMT</pubDate>
            <atom:updated>2023-06-07T22:02:17.061Z</atom:updated>
            <content:encoded><![CDATA[<h4>Discover the Benefits of Feature Stores for Streamlined and Efficient MLOps</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YL4W4j1X4of98WvC__2h1Q.png" /><figcaption>Edited Photo by <a href="https://unsplash.com/@sortino?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Joshua Sortino</a></figcaption></figure><p>If you’re interested in Machine Learning Operations (MLOps), you’ve probably heard about feature stores. But what exactly are they, and why are they so important? Having worked with feature stores for several years and having helped my teams successfully adopt them, I had the honor of sharing my experiences and insights with fellow industry professionals at the MLOps Summit in London in November 2022 and I would love to share more in this blog post. In this post, we’ll provide an introduction to feature stores, explain why they’re needed, highlight their benefits and what to consider before buying or building one.</p><p>So, what is a feature store? Simply put, it’s a centralized repository of preprocessed data features that are used to train machine learning models. Feature stores allow data scientists and machine learning engineers to easily access and manage these features, rather than having to repeatedly preprocess and re-engineer the data for each model. But why do we need feature stores? In the past, data scientists would manually engineer features for each machine learning model, resulting in redundant work and wasted time. With the rise of big data and the increasing complexity of machine learning models, this process has become even more challenging. Feature stores streamline this process and enable more efficient and scalable machine learning.</p><h3>Maximising ML Impact with MLOps</h3><p>MLOps is the integration of Machine Learning (ML) into a product or business process. The key question is, why to invest in and improve MLOps? The answer lies in operationalizing ML to unlock its value. MLOps is becoming an essential aspect of businesses and digital products, offering benefits like personalization, enhanced efficiency, real-time insights, and better customer experience. The more we mature our operationalization of ML, the more value it brings to our business. For example, imagine we want to provide recommendations to website visitors. One-off recommendations based on static data samples could become irrelevant over time. We could update recommendations more frequently using batch processing. Still, if a visitor’s interactions within a session make weekly recommendations irrelevant, we’d need to find relevant content on the fly. Our capabilities increase as our operational ML infrastructure and expertise grow, enabling us to deliver more value as a data science team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zxl3M3BB-MgWKcrDXbNa0g.png" /><figcaption>Journey for unlocking ML value with ML maturity using product recommendation as an example — Diagram inspired by Feature Store Tecton.</figcaption></figure><p>However, the operationalization of ML can be challenging, as indicated by a recent <a href="https://www.mckinsey.com/capabilities/operations/our-insights/the-imperatives-for-automation-success">McKinsey Global Survey</a> that showed only 36% of participants had their ML project deployed beyond the pilot stage. One of the main reasons for this low success rate is the difficulty of managing the ML process, including data leakage and training-serving skew, duplicated efforts in feature engineering, and managing and serving ML fast in production. A Feature Store is a fully managed and unified solution that can help alleviate these challenges by sharing and serving features at scale across the organization.</p><h3>Supercharging MLOps with Feature Stores</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NgwryEdnVY3C47961UlzOQ.png" /><figcaption>Challenges solved by Feature Stores</figcaption></figure><h4><strong>Point-in-time correctness</strong></h4><p>Data leakage is a common mistake found when reviewing data science code. This happens when we fail to account for changes in feature values over time, making it difficult to accurately predict outcomes. This is where a feature store comes in handy.</p><p>A feature store allows us to ensure point-in-time correctness by providing the latest stored value of a feature at or before a given timestamp. For instance, let’s say we want to train a model for predicting whether a user will make a purchase on a website within a session. In the illustration below, we show two labels for two separate sessions of the same user and we can see how features, such as the number of items a user has in their basket change, have different values at different points in time. By requesting data from a feature store based on (an) entity identifier(s) (e.g., user ID, session ID), the feature names, and the timestamps (e.g., T1, T2), we can guarantee that no information from the future is used to create a prediction during training. This not only eliminates the risk of data leakage, but also provides a reliable point-in-time lookup for more accurate predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OD1PhmlSudQPaWmW08CPNA.png" /><figcaption>Point-in-time lookup for retrieving feature vector from a features store using training data for predicting purchase conversion of the user as an example — Diagram inspired by Feature Store Vertex AI.</figcaption></figure><h4><strong>Consistency across development &amp; production environments</strong></h4><p>When developing and deploying machine learning models, it’s crucial to avoid training-serving skew. This occurs when different source codes are used for generating features during development and production, leading to discrepancies between training and serving data. This can result in incorrect model behavior and make backtesting a lengthy and frustrating process. So how can we reduce the risk of training-serving skew?</p><p>By using a feature store, we can ensure consistency across development and production environments. The same code, data sources, and pipelines are used for both training and serving, making backtesting much easier. With a feature store, batch and real-time data can be easily melded, and any changes in data can be quickly incorporated using a streaming flow. Hence, by fetching all features from the same feature store during both development and production, we can avoid surprises during backtesting and reduce the likelihood of experiencing train-serve skewness in our data.</p><h4><strong>Re-usability of features across various applications</strong></h4><p>One of the challenges that data science teams often face is duplicated efforts in feature engineering. This occurs when there is no centralized place to manage and fetch features, which results in teams working in silos and reusing features not being straightforward. Additionally, there is an overhead cost associated with using many features. However, using a feature store can help alleviate these challenges by allowing teams to easily share and reuse features across different applications.</p><p>With a central repository for managing and organizing features, duplicated efforts can be avoided, making it faster to create, iterate, and deploy. By using feature stores across several projects, we can reduce the cost of ML applications, as well as break down silos within our organization. Furthermore, feature stores enable practices related to data catalog and lineage and the addition of metadata for each feature, making them reusable across different teams and inv. This leads to faster deployment times, consistency in architecture and infrastructure, and a head start in the development of MVP projects or POCs. With a feature store, sharing is caring (and it also saves time and resources)!</p><h4><strong>Serving models fast in production</strong></h4><p>As more and more applications require real-time capabilities, it’s becoming increasingly challenging to extract data from multiple sources and serve inferences quickly. Let’s face it, nobody likes waiting 20 seconds for a response! Fortunately, feature stores come with two storage options — online and offline — that are obviously priced differently. The offline storage is great for training and batch predictions, while the online storage is essential for real-time serving. By using a feature store, we can easily retrieve features in milliseconds and scale our computational resources as needed. We can even code the logic to generate features but let the feature store handle the task of serving them in real-time. With a feature store, we can say goodbye to slow response times and hello to happy users!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JakgmozY2RCXzuaoAhBOTw.png" /><figcaption>High level architecture of feature store</figcaption></figure><h4><strong>Ease and reliable management of features</strong></h4><p>Managing ML features can be a challenge, especially when it comes to reliability and ease of use. However, using version control for the code used in a feature store can help with this. So we can easily go back to previous versions of data, just like we do with source code in GitHub. Additionally, detecting drift in the data is possible through feature stores, as they can track the distribution of feature values imported. This makes data monitoring much easier. We also set an expiry date for features limiting cost and making data retention management a breeze. Furthermore, we can control costs by setting limits on computational resources such as quotas on the number of online serving nodes or the number of online serving requests per minute. With these features, managing ML features becomes much more manageable and cost-effective.</p><h3>To buy or To build?</h3><p>Whether your team needs a feature store depends on various factors, such as the number and complexity of ML applications in your technology roadmap, budget, team size, and expertise. Despite the many benefits of using a feature store, it’s crucial not to rush into it and instead take an agile approach that gradually proves its value in improving MLOps. For instance, a feature store can provide more significant returns to a large organization with multiple ML applications in production and globally distributed teams than to a startup with a small data team trying to deploy its first ML model. If your organization falls into the former category, then it’s worth considering buying or building a feature store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOdD0go8AYW7nFAB_f84vA.png" /><figcaption>To buy or to build?</figcaption></figure><h4><strong>Buy</strong></h4><p>When it comes to getting a feature store for your organization, you can either build one yourself or buy one from a company that specializes in providing such solutions. There are several options available, including Tecton, which is founded by some of the same people who contributed to Uber’s Michelangelo and I have personally used it in the past and have been generally pleased. H2o, Databricks, Google Cloud Platform’s Vertex, and Amazon Web Services’ SageMaker also offer feature store solutions. Buying a feature store can be a time and cost-efficient option, as it is less complex than building it in-house. You can save on resources that would be needed to build, maintain, and further develop the feature store infrastructure, as the vendor takes care of these tasks and may even provide 24/7 support. And therefore, you can leave the task of building a feature store to the experts and focus on exciting work that’s in line with your company’s vision!</p><h4><strong>Build</strong></h4><p>Companies like Airbnb, Uber, and Spotify had the resources and expertise to successfully build their own feature stores. Building a feature store internally has its own perks. For instance, it gives you complete control over the feature store roadmap and ensures that it aligns with your company’s goals and requirements. There is also no vendor lock-in, which gives you the flexibility to tailor the solution to your specific needs. In addition, the availability of open-source feature stores like Hopsworks, Feast, and Feathr makes it easier to get started without incurring vendor costs. On the downside, building an internal feature store can be time-consuming and resource-intensive, and you might need to have specialized expertise in-house. Ultimately, the decision to build or buy a feature store depends on your company’s specific circumstances and priorities.</p><h3>Putting it all together</h3><p>In summary, a feature store can be a valuable solution for companies looking to address challenges in operationalizing ML and unlock the full potential of their data. The benefits of a feature store include point-in-time correctness, consistency across environments, feature reusability, fast model serving, and easy feature management. When deciding whether to use a feature store, consider factors such as the size of your organization and the number of ML applications in production. You can either build a feature store in-house for complete control and flexibility or buy one from a specialized vendor for cost-efficiency and convenience. Lastly, with the potential of GPT to revolutionize feature stores, it’s an interesting time for the field, but it’s crucial to weigh all factors before incorporating it into your MLOps ecosystem.</p><p>Thanks for reading! If you’d like to stay updated with my latest articles, provide feedback or discuss further ML and AI, you can follow me on Medium or connect with me on <a href="https://www.linkedin.com/in/natalia-koupanou/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30105fb7d3b8" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/unleashing-the-power-of-feature-stores-how-they-can-supercharge-your-mlops-30105fb7d3b8">Unleashing the Power of Feature Stores: How They Can Supercharge Your MLOps</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build effective communication between data science and the business]]></title>
            <link>https://medium.com/tide-engineering-team/how-to-build-effective-communication-between-data-science-and-the-business-174070ccbb4f?source=rss-25c7fde7b6e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/174070ccbb4f</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Natalia Koupanou]]></dc:creator>
            <pubDate>Mon, 12 Jul 2021 08:47:45 GMT</pubDate>
            <atom:updated>2021-07-12T10:10:57.713Z</atom:updated>
            <content:encoded><![CDATA[<h4>Communicate tips for working effectively with business stakeholders and delivering value as a data scientist</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0J5decK5nL0dir3RivoPPQ.jpeg" /><figcaption><a href="https://unsplash.com/photos/AT5vuPoi8vc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditShareLink">Image source</a></figcaption></figure><p>Our educational system tends to emphasise hard skills and after coming out of university, my primary focus was to learn as much as possible about data practices and techniques and excel in my technical skills. I’m still a geek and value academic knowledge, but after working in various industries I came to realise that <strong><em>soft skills are critical to unlocking the value of technical skills</em></strong>. Warren Buffett, an investor and a billionaire said in an <a href="https://www.cnbc.com/2018/12/05/warren-buffett-how-to-increase-your-worth-by-50-percent.html">interview</a> that “the one easy way to become worth 50% more than you are now is to hone your communication skills”. Communication was a common area of improvement amongst my past performance reviews and I think others will relate with me given that <a href="https://www.cnbc.com/video/2018/04/19/linkedin-ceo-on-the-soft-skills-gap.html">LinkedIn shared</a> that <strong><em>communication was ranked first in their skills gap list </em></strong>in the US. At Tide, I have been fortunate enough to work with people who helped me transform this weakness into a strength and hence, I would like to share in this article the main tips that helped me become a better communicator.</p><h4>Communication framework</h4><blockquote>We, data people, ask business people to be more data-driven, but are we business-oriented?</blockquote><p>When communicating in general, it’s important to start with why as Simon Sinek said in his famous <a href="https://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action?language=en#t-86534">Ted talk</a>. But what is the ‘why’ when it comes to machine learning projects? When becoming a data scientist, we are often told that this is training models and validating them. However, this is really the ‘how’, not the ‘why’. So what is the ‘why’ behind data science projects? <strong><em>The ‘why’ is always related to achieving some kind of business objective</em></strong>. Whether it’s acquiring more customers or increasing process efficiency with automation, there is always a business objective. It’s not the model training in itself that creates value, but the use of the model. This shifts our mindset <strong><em>from the output to the outcome</em></strong> as Joshua Seiden well explains in his <a href="https://www.amazon.co.uk/Outcomes-Over-Output-customer-behavior/dp/1091173265">book “Outcomes Over Output”</a>.</p><p>How do we put this into practice? The <a href="https://www.amazon.co.uk/Pyramid-Principle-Logic-Writing-Thinking/dp/0273710516"><strong><em>pyramid principle</em></strong></a> is a great method to do this. We can <strong><em>start with the ‘why’</em></strong>, capturing what we want to achieve (e.g. optimise invoice collection strategies for our members to increase NPS score). Later, we <strong><em>can continue with the ‘how’, </em></strong><em>addressing</em> the different approaches that we can follow to address this challenge (e.g. automate invoice chasing problems, predicting risky invoices, recommending collections solutions). Finally, we can <strong><em>elaborate</em></strong> on each solution and include more details (e.g. the expected impact, the deliverables, the project complexity, the experimentation technique). With this top-down structure of thoughts, the listener understands as quickly as possible the relevance of every argument and can actively direct the conversation if needed.</p><h4>Transparency in projects</h4><p>It’s not rare for models or insights to not be used and to be left forgotten, and from experience, misalignment between business and data teams is one of the main reasons behind this. A recurring mistake in these data science projects is not getting in touch with the business from the ideation stage and this usually leads to a lot of reworking to operationalise any models. There are various topics that a data scientist should discuss with the product team for a decisioning project:</p><ol><li><strong><em>Definition of Success</em></strong> — A project should always have specific objectives that can lead to business value. Hence, probably the most important topic that the data scientist should have with the business is <strong><em>what success for this project looks like</em></strong> and <strong><em>how it will be measured</em></strong>. This should also determine the <strong><em>model objective</em></strong> and the definition of any <em>proxy</em> (if different to success criteria) for the model to target. There is a great article about how someone can frame a machine learning problem <a href="https://web.archive.org/web/20191017130327/https://medium.com/thelaunchpad/a-step-by-step-guide-to-machine-learning-problem-framing-6fc17126b981">here</a>. After a hypothesis is tested, we might discover <strong><em>trade-offs in the tracked metrics</em></strong> and the data scientists can help the business understand the implications of the trade-offs.</li><li><strong><em>Operationalisation concerns </em></strong>— As discussed before, a model primarily generates value when it is operationalised. In order to avoid delays in the project delivery, we should ask the following early on: “How will a certain model be <strong><em>used</em></strong>?”, “How often do you need the predictions <strong><em>refreshed</em></strong>?”, “Who is going to <strong><em>consume</em></strong> this data?”. Otherwise, wrong assumptions can lead to an over-engineered architectural solution and a wrong training dataset.</li><li><strong><em>Datasets &amp; interpretability </em></strong>— <strong><em>Features</em></strong> are attributes of entities that might help us predict a certain event. Preparing a dataset for training a model phase requires a lot of <strong><em>domain knowledge</em></strong> and bringing in several people with deep experience in the particular domain during this phase is recommended. Machine learning to be applied in contexts that are risk-sensitive (which is a regular occurrence in fin-tech companies like Tide), it’s useful for the stakeholders to be able to disagree or agree with the model without being ML experts. In other words, to have <strong><em>interpretable features</em></strong>, which a business expert will be able to sense-check, helping to build <strong><em>trust between ML and the business</em></strong>.</li><li><strong><em>Lean practices </em></strong>—It’s not only important to understand what success looks like (i.e. the direction where we need to go) but also the <strong><em>minimum scope</em></strong> that’s necessary in order to produce something valuable. Since people from the business side often lack the technical background, the data scientist should bring the <strong><em>minimum viable accuracy</em></strong> to the table, which can sway the effort and decisions on the model techniques. This is essentially the minimum accuracy that the model needs to achieve for there to be a reasonable case to put a model into production. It does not represent the desired accuracy but more of a minimum boundary that gives the project a go / no go decision. In these discussions, a data scientist needs to stress to stakeholders that the chosen minimum accuracy might not be achieved by the acquired data and the trained model and hence an <strong><em>acceptable time-box</em></strong> for this phase (usually 1–2 sprints) should also be agreed.</li><li><strong><em>Retrospective</em></strong> — Communication is a two-way street and we are big fans of <strong><em>agile practices and feedback cycles </em></strong>at Tide. We invite <strong><em>stakeholders in retrospective meetings</em></strong> to reflect together on what went well or wrong in the projects. For example, challenging how certain blockers or limitations were handled can <strong><em>create new practices</em></strong> and tips for the interaction of the data team with the product team.</li></ol><h4>Creating a data culture</h4><p>Investing time in creating a data-minded company goes a long way and should enable easier communication across the data department and others at scale. Data teams were introduced relatively recently in most companies and they are not often well integrated with the rest of the business compared to other more established functions, such as finance or legal. In addition to this, they don’t have well-known practices and processes. There are various ways to bridge this gap:</p><ol><li>The data team can collectively start to <strong><em>document</em></strong> a lot of agreed processes (e.g. how do we test a hypothesis, how do we use statistical models in risk policies) and common terminologies (e.g. a feature, a machine learning model, basic model performance metrics). In this way, a data scientist does not need to go over the same concepts several times.</li><li><strong><em>Training</em></strong> or <strong><em>“lunch and learn” type of events</em></strong> can also help with knowledge sharing (e.g.what are the lifecycle stages of a machine learning project and what’s the role of each team at each stage). These usually spark a lot of attention in the data science field from teams that haven’t had the chance to collaborate with the data department yet.</li><li>Blocking time for communication in the form of <strong><em>data Q&amp;A sessions</em></strong> can also bring data teams closer to the business needs.</li><li>Lastly, other guerrilla tactics, such as <strong><em>posting </em></strong>insights and measured impact from data deliverables <strong><em>in work communication platforms</em></strong>, can potentially break the invisible silos between us and the rest of the organisation.</li></ol><p>Special thanks to our Director of Data, <a href="https://www.linkedin.com/in/hendrik-brackmann-b2b5477a">Hendrik</a> and our VP of Credit, <a href="http://Amit Kahana - MD of Tide Capital and VP of Credit - Tide ...https://uk.linkedin.com › amitkahana">Amit</a>, who helped us improve our ways of working with the business stakeholders and develop the soft skills in the data science department.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=174070ccbb4f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tide-engineering-team/how-to-build-effective-communication-between-data-science-and-the-business-174070ccbb4f">How to build effective communication between data science and the business</a> was originally published in <a href="https://medium.com/tide-engineering-team">Tide Engineering Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Snorkel, a semi-supervised learning technique, solved invoice accounting at Tide]]></title>
            <link>https://medium.com/tide-engineering-team/how-snorkel-a-semi-supervised-learning-technique-solved-invoice-accounting-at-tide-f4a300b8021d?source=rss-25c7fde7b6e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4a300b8021d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[accounting]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[fintech]]></category>
            <dc:creator><![CDATA[Natalia Koupanou]]></dc:creator>
            <pubDate>Wed, 22 Apr 2020 08:57:00 GMT</pubDate>
            <atom:updated>2020-05-01T10:50:48.213Z</atom:updated>
            <content:encoded><![CDATA[<h4>Dioscuri, the project that matched Tide invoices with transactions only with a small hand-labeled dataset</h4><h3>TL;DR</h3><ol><li>Due to Snorkel, Dioscuri achieved high accuracies in the detection of any transactions made for a particular invoice without large hand-labeled datasets and in less than 2 sprints.</li><li>Weak learning combines unsupervised and supervised learning. Snorkel is a python package that uses labels from different weak supervision sources.</li><li>With Snorkel, business knowledge and other models were harnessed to “weakly” label data programmatically.</li><li>Snorkel uses a list of defined heuristics to label data and creates a generative model that weights the importance of each rule.</li><li>The noisy labels created from the trained Snorkel label model can be used to train a classifier that generalises.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*BlfDTzpiV66kXn1JBP6txg.png" /></figure><p>Project <strong><em>Dioscuri</em></strong> had the objective of being <em>able to identify the transaction(s) related to a receivable invoice, if there were any</em>. Examples of invoices issued from Tide and paid into Tide accounts were not available and easily identifiable to achieve Dioscuri’s goal. It was, therefore, important to label whether an invoice and transaction combination was correct. However, this meant either <em>waiting for a long period</em> to <em>collect this data</em> or<em> investing highly paid subject matter experts’ time</em> in <em>hand-labeling historical data</em>. Thankfully <a href="https://www.snorkel.org/"><strong><em>Snorkel</em></strong></a>, <em>a </em><a href="https://pypi.org/project/snorkel/"><em>Python package</em></a><em> for programmatically building and managing training data</em>, helped us to meet the <strong><em>Dioscuri’s goal quickly and with a high level of accuracy.</em></strong></p><p>So, let’s understand the problem and how to Snorkel …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oVCzgHq6kbL30m1s1vDaMg.png" /><figcaption><a href="https://www.snorkel.org/">Snorkel</a></figcaption></figure><h3>What is Dioscuri?</h3><p>In Greek mythology, <strong><em>Dioscuri</em> </strong>were<strong> “</strong>the twins, Castor and Pollux, which reunited as stars in the sky by Zeus after Castor’s death” (aka Gemini in Latin) [6].</p><blockquote>In Tide, Dioscuri is the project that matches receivable invoices raised from the Tide app with incoming transactions.</blockquote><p>At Tide, we want to do what we can to help our members have a healthy cash flow. As Paul Uppal, Small Business Commissioner, said:</p><blockquote>“A healthy cash flow is the life blood of any small business. Getting your credit and payment process right from the start is crucial if you want to build and grow your business.” [5]</blockquote><p>This project was challenging for many reasons. To name a few:</p><ul><li>The invoice reference number is not always unique in small businesses.</li><li>Payers of invoices don’t always use an invoice reference number in the payment.</li><li>An invoice might never be paid in full.</li><li>Amending invoices is not an option currently with Tide.</li><li>Invoice to transaction matching isn’t always a 1:1 relationship — For example, it can be many:1 or even 1:many.</li><li>For frequent customers of our members, with multiple invoices and payments, it’s harder to identify which transaction is for which invoice.</li><li>But probably the toughest problem was the <strong><em>lack of labeled data</em></strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/0*Ys28qWri1cPuSvVi" /><figcaption>How a data scientist feels without labeled data (Image source: <a href="https://meme-creator.com/media/images/template-blind-bird-box.PNG">here</a>)</figcaption></figure><h3>What is semi-supervised learning?</h3><p>Before diving into the details of Snorkel, it is important to know what <em>semi supervision </em>— or, as it is often termed, <em>weak or noisier, higher-level supervision — </em>is.</p><p><strong><em>Supervised learning</em></strong> is “the machine learning task of learning a function that maps an input (X) to an output (Y) <strong><em>based on example input-output pairs</em></strong>” (Y = f(X)).[1] <strong><em>Unsupervised learning</em></strong><em> </em>is a “type of machine learning that looks for previously undetected patterns in a data set (X) with <strong><em>no pre-existing labels</em></strong> (i.e. no Y) and with a minimum of human supervision”. [2]</p><p><strong><em>Semi-supervised learning</em></strong> is in between the two machine learning approaches as it “<a href="https://en.wikipedia.org/wiki/Semi-supervised_learning">combines <strong><em>a small amount of labeled data with a large amount of unlabeled data during training</em></strong></a>” with the benefit of improving learning accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Qr0D_LaiXzMNqJDV8psig.png" /></figure><h3>Why Snorkel?</h3><p>Snorkel is proven to solve various business problems and has been applied in numerous companies before Tide, including Google, IBM, SAP, Ant Financial, Accenture and Microsoft.</p><ul><li>It can<em> </em><strong><em>leverage business knowledge</em> </strong>to label data programmatically [4]. Heuristics and rules coming from business expertise can be included.</li><li>It can <strong><em>transfer learning from previous models and even non-servable data </em></strong>[3], which are slow or expensive when used in production. The labels created from Snorkel can be used later to train a model with servable features, e.g. inexpensive, real-time signals.</li><li>It brings <strong><em>development time and cost down by an order of magnitude</em></strong> according to Google’s AI team [3].</li><li>Snorkel doesn’t need massive sets of hand-labeled training data. It can programmatically <strong><em>create many weak labels without having any label data</em></strong>.</li><li>As a result, it can considerably <strong><em>improve the accuracy of models with a </em></strong>flexible form of transfer learning. In <a href="https://arxiv.org/pdf/1812.00417.pdf">this paper</a>, it’s shown that it takes roughly 12K hand-labeled examples to match the predictive accuracy of the weakly supervised classifier trained on data labeled by Snorkel [3].</li><li>By combining various weak proxies Snorkel can <strong><em>create labels even for concepts that are loosely defined</em></strong> and cannot be easily collected or created manually, such as user engagement and quality of lead or traffic.</li></ul><h3>How to apply Snorkel?</h3><h4>Labeling Functions &amp; Preprocessors</h4><blockquote><strong>Labeling functions (LFs)</strong><em> are essentially</em> <strong>heuristic or rules that capture organisation knowledge<em> </em></strong><em>originated either from business teams or data models </em><strong>in a logical statement</strong>.</blockquote><p>Depending on the statement, <strong><em>a LF either assigns a label to a datapoint</em></strong> (in this case: invoice-transaction match or no match) <strong><em>or abstain </em></strong>(i.e. doesn’t assign any label) [7].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oD1jLI9ePaP6K0CCxFAX9g.png" /><figcaption>Left: Labeling functions that assign 1 to data points or abstain. Right: Labeling functions that assign 0 to a data points or abstain</figcaption></figure><p>A list of LFs is defined to cover a variety of weak supervision strategies. Some are covering cases where an invoice-transaction match might be correct, and others are for combinations of invoices and transactions that might not match.</p><p>Before defining the labeling functions there is a lot of data preparation required, as in all data models. Even though feature engineering is beyond the scope of this blog post, it is worth mentioning Snorkel <a href="https://snorkel.readthedocs.io/en/master/packages/_autosummary/preprocess/snorkel.preprocess.preprocessor.html"><strong><em>decorator</em></strong> </a><a href="https://snorkel.readthedocs.io/en/master/packages/_autosummary/preprocess/snorkel.preprocess.preprocessor.html"><strong>@preprocessor</strong></a>, which can be used for preprocessing functions.</p><blockquote><strong>Preprocessors </strong><em>map a data point to a new data point [7].</em></blockquote><p>Also, preprocessors have a <strong><em>memoization</em></strong> functionality for caching input/output to avoid re-execution of data mapping needed in multiple LFs.</p><pre><strong>from</strong> snorkel.preprocess <strong>import</strong> preprocessor</pre><pre>@preprocessor(memoize=True)<br><strong>def </strong>fuzz_scores_payment_inv_reference(x):<br>    x.reference_match = fuzz_score(<br>        x.trans_description, x.inv_reference_number)<br>    <strong>return</strong> x</pre><p>Labeling Functions (LFs) in Snorkel are created with the <strong>@labeling_function </strong><a href="https://snorkel.readthedocs.io/en/master/packages/_autosummary/labeling/snorkel.labeling.labeling_function.html"><strong><em>decorator</em></strong></a>, which can be applied to any Python function that returns a label for a single data point. Any preprocessors needed to be run on data points before a LF is executed can be specified in the labeling_function decorator together with any necessary labeling resources (ie. keyword arguments for the labeling function) as shown in the code example below.</p><pre><strong>from</strong> snorkel.labeling <strong>import</strong> labeling_function</pre><pre># LF outputs for inv-trans matching<br>MATCHING = 1<br>NOT_MATCHING = 0<br>ABSTAIN = -1</pre><pre># Check if payer&#39;s name is similar to invoice receiver name<br><strong>@labeling_function</strong>(<br>    resources=dict(NAME_THRESHOLD=NAME_THRESHOLD),<br>    pre=[preprocessors.fuzz_scores_payment_inv_reference])<br><strong>def </strong>lf_similar_reference_inv_trans(x, NAME_THRESHOLD):<br>    <strong>return</strong> MATCHING <strong>if</strong> x.reference_match&gt;=NAME_THRESHOLD <strong>else</strong> ABSTAIN</pre><pre># Create a list with the label functions we want to apply<br># Note: not the whole list of LFs is included here<br>lfs = [<br>    lf_unsimilar_name_inv_trans,<br>    lf_similar_reference_inv_trans, <br>    lf_inv_trans_same_amount,   <br>    lf_trans_within_allowed_period<br>]</pre><h4>Label Matrix</h4><p>After defining all the LFs, we can apply them in a couple of lines of code as shown in the example below. Because of our dataset size, we used <a href="https://snorkel.readthedocs.io/en/master/packages/_autosummary/labeling/snorkel.labeling.apply.dask.DaskLFApplier.html">DaskLFApplier</a> method here to speed up calculations. However, Snorkel also <strong><em>supports other DataFrame-like structures</em></strong>, including Pandas and PySpark [7].</p><pre>from snorkel.labeling.apply.dask import DaskLFApplier</pre><pre># Use <a href="https://snorkel.readthedocs.io/en/master/packages/_autosummary/labeling/snorkel.labeling.PandasLFApplier.html">PandasLFApplier</a> for pd.DataFrame<br># DaskLFApplier to get LF labels for our Dask DataFrame<br>applier = DaskLFApplier(lfs) <br>L_train = applier.apply(df)</pre><p>The output of the above code is a <strong><em>label matrix</em></strong>, which is a NumPy array with one column for each LF and one row for each datapoint.</p><pre># Label matrix L_train<br>[[-1  1 -1  0]<br> [-1  1  1 -1]<br> [-1 -1 -1 -1]<br>      ...<br> [ 0  1 -1  0]<br> [-1 -1  1 -1]]</pre><p>As observed from the example above, <strong><em>the same datapoint might be labeled by multiple LFs or none of them</em></strong> and its labels might be the <strong><em>same</em></strong> or might <strong><em>differ</em></strong>. Noisy LFs without perfect accuracy are expected though and Snorkel has a utility for statistics and analyses about LFs.</p><pre>from snorkel.labeling import LFAnalysis</pre><pre>print(f&quot;{LFAnalysis(L_train, lfs).lf_summary()}&quot;)</pre><p>As shown below, the output of the above code is a summary report for LFs and includes:</p><ul><li><strong>Polarity: </strong>The set of labels the LF outputs (excluding abstains)</li><li><strong>Coverage: </strong>% of dataset the LF labels</li><li><strong>Overlaps: </strong>% of dataset the LF and at least another LF label</li><li><strong>Conflicts: </strong>% of dataset the LF and at least another LF label and disagree</li></ul><pre>                              j Polarity Coverage Overlaps Conflicts</pre><pre>lf_unsimilar_name_inv_trans    0     [0]  0.01416  0.01416   0.00968<br>lf_similar_reference_inv_trans 1     [1]  0.08321  0.08308   0.06904<br>lf_inv_trans_same_amount       2     [1]  0.10581  0.10580   0.10115 lf_trans_within_allowed_period 3     [0]  0.98566  0.67340   0.67340</pre><h4>Label Model</h4><p>The observed overlaps and conflicts of the LFs are expected and used by Snorkel to create a <strong><em>generative model</em></strong> that estimates the accuracies of LFs.</p><pre>from snorkel.labeling import LabelModel</pre><pre># Invoice matching is a binary classification problem (2 classes)<br>label_model = LabelModel(cardinality=2, verbose=True)</pre><pre>label_model.fit(L_train=L_train, n_epochs=500,<br>                lr=0.001, log_freq=100, seed=SEED)</pre><pre># Save model in a pickle format<br>label_model.save(LABEL_MODEL_PATH)</pre><pre># Possible to get the weights of LFs<br>label_model_weights = np.around(label_model.get_weights(), 2)</pre><p><strong><em>Probabilistic (confidence-weighted) training labels (aka “noise-aware training labels”)</em></strong> are produced by <strong><em>re-weighting</em></strong> and combining the LFs’ output based on the <strong><em>accuracies of the LFs found from the label model</em></strong>. [7]</p><pre>from snorkel.labeling import filter_unlabeled_dataframe<br>from snorkel.utils import probs_to_preds</pre><pre># Get probabilities for class 0 and 1<br>probs_train = np.asarray(label_model.predict_proba(L_train))</pre><pre># Get labels from probabilities (0, 1, -1)<br>preds = probs_to_preds(probs=probs_train)</pre><pre># Filter unlabeled datapoints<br>df_train_filtered, probs_train_filtered = filter_unlabeled_dataframe(<br>    X=df, y=probs_train, L=L_train<br>)</pre><p>As the following diagram shows, there was a dramatic decrease in the possible matched combinations of invoices and transactions. Note that some extra validation rules were added on top of Snorkel probabilities to handle and asses cases such as when a transaction is matched with multiple invoices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aF3Tx9tqeSf293Vf9wh_3g.png" /></figure><p>The validated labels found from Snorkel were then used to train a classifier. The problem was essentially <strong><em>transformed into a supervised</em></strong><em> </em>one and there is a huge variety of classifiers, from logistic regression and ensemble of classifiers to neural networks, <strong><em>to train and generalise beyond noisy labels</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*wZD2q08-0HlXycXi.png" /><figcaption>Snorkel DryBell workflow diagram from [<a href="http://ai.googleblog.com/2019/03/harnessing-organizational-knowledge-for.html">4</a>]</figcaption></figure><h3>How to assess Snorkel results?</h3><p>Similarly to the evaluation of <strong><em>classification models</em></strong>, there are various metrics we can use to the assess success of Snorkel’s models — to name a few:</p><ul><li><strong>Type I error</strong> = false positives/ (true positives + false positives)</li><li><strong>Type II error</strong> = false negatives/ (true negatives + false negatives)</li><li><strong>Recall</strong> = true positives/(true positives + false negatives)</li><li><strong>Accuracy</strong> = (true positives + true negatives) / (all positives +all negatives)</li><li><strong>Coverage</strong> = % of dataset labeled</li></ul><p>Note that depending on the application, different targets are set for these metrics. But for all metrics apart from coverage, we need to know whether the prediction is correct or not. For this reason, we carried out <strong><em>a short hand-labeling exercise</em></strong> in order to <strong><em>treat that small hand-labeled dataset as a golden dataset</em></strong> and <strong><em>measure the metrics listed above</em></strong>.</p><h3>What is the maths behind Snorkel?</h3><ol><li>Let an unlabeled data point be <strong><em>X ᵢ</em></strong><em>, </em>its associated unknown label <strong><em>Y ᵢ</em></strong><em> </em>and the total number of data points <strong><em>m</em></strong><em>.</em></li><li>Say we have <strong><em>n </em></strong><em>l</em>abel functions (LFs), then for a LF <em>λⱼ</em>and a binary classification <strong><em>λⱼ:Χ→{-1,0,1}</em></strong></li><li>Let <strong><em>Λ</em></strong> be the matrix of labels output with <em>dimensions </em><strong><em>m</em></strong><em> </em><strong>x<em> n</em></strong>, such that <strong><em>Λᵢ,ⱼ= λⱼ(X ᵢ)</em></strong>.</li><li>The parameters of the generative label model, <strong><em>w</em></strong> can be estimated by <strong><em>maximising the log marginal likelihood of the observed labels Λ</em></strong>:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*C_peHbJmX6J6f1g-qL9h3Q.png" /></figure><p>5. <strong><em>Probabilistic training labels </em></strong>are then calculated as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*4ru2m9O-QxZ7OqfwM2W83Q.png" /></figure><p>6. With the <strong>training dataset <em>(X, Ỹ), </em></strong>a discriminative classifier <strong><em>h</em></strong>_𝜃 can be trained as usually by <strong><em>minimising the expected loss with respect to Ỹ:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*yLLJkSejh8UPj727uJZFFQ.png" /></figure><p>The definitions above are according to Snorkel Drybell 2019 paper [3] and more detailed explanations can be found there.</p><p>Thanks for reading and feel free to share! I would love to hear what your experience with Snorkel was.</p><p>If you’re interested in applying machine learning in FinTech, join Tide data team: <a href="https://www.tide.co/careers/">https://www.tide.co/careers/</a></p><h4>References</h4><ol><li>Stuart J. Russell, Peter Norvig (2010). <a href="https://en.wikipedia.org/wiki/Artificial_Intelligence:_A_Modern_Approach"><em>Artificial Intelligence: A Modern Approach</em></a><em>, Third Edition</em>, Prentice Hall <a href="https://en.wikipedia.org/wiki/International_Standard_Book_Number">ISBN</a> <a href="https://en.wikipedia.org/wiki/Special:BookSources/9780136042594">9780136042594</a>.</li><li>Hinton, Geoffrey; Sejnowski, Terrence (1999). <em>Unsupervised Learning: Foundations of Neural Computation</em>. MIT Press. <a href="https://en.wikipedia.org/wiki/ISBN_(identifier)">ISBN</a> <a href="https://en.wikipedia.org/wiki/Special:BookSources/978-0262581684">978–0262581684</a>.</li><li>Stephen H. Bach, Daniel Rodriguez, Yintao Liu et al. (2019), <a href="https://arxiv.org/pdf/1812.00417.pdf">Snorkel DryBell: A Case Study in Deploying Weak Supervision at Industrial Scale</a>.</li><li>Alex Ratner, Stanford University and Cassandra Xia, Google AI (2019). <a href="http://ai.googleblog.com/2019/03/harnessing-organizational-knowledge-for.html">Harnessing Organizational Knowledge for Machine Learning</a>, Google AI Blog.</li><li><a href="https://www.smallbusinesscommissioner.gov.uk/home-page/get-your-invoices-paid-on-time/">https://www.smallbusinesscommissioner.gov.uk/home-page/get-your-invoices-paid-on-time/</a></li><li><a href="https://www.merriam-webster.com/dictionary/Dioscuri">https://www.merriam-webster.com/dictionary/Dioscuri</a></li><li><a href="https://www.snorkel.org/use-cases/01-spam-tutorial">https://www.snorkel.org/use-cases/01-spam-tutorial</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4a300b8021d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tide-engineering-team/how-snorkel-a-semi-supervised-learning-technique-solved-invoice-accounting-at-tide-f4a300b8021d">How Snorkel, a semi-supervised learning technique, solved invoice accounting at Tide</a> was originally published in <a href="https://medium.com/tide-engineering-team">Tide Engineering Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring wild west of natural language generation — from n-gram and RNNs to Seq2Seq]]></title>
            <link>https://medium.com/data-science/exploring-wild-west-of-natural-language-generation-from-n-gram-and-rnns-to-seq2seq-2e816edd89c6?source=rss-25c7fde7b6e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e816edd89c6</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[language]]></category>
            <dc:creator><![CDATA[Natalia Koupanou]]></dc:creator>
            <pubDate>Fri, 20 Sep 2019 13:51:20 GMT</pubDate>
            <atom:updated>2019-09-20T14:20:12.237Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*crtxywGS5TQMHPow" /><figcaption>NLP Wild West</figcaption></figure><h3>Exploring wild west of natural language generation — from n-gram and RNNs to Seq2Seq</h3><h4>Introduction to Natural Language Models as taught in an NLP Stanford class</h4><p>At the beginning, text generation was based on templates or rule-based systems, which were fairly interpretable and well-behaved for specific narrow applications. But scaling such systems required infeasible amounts of hand-engineering efforts. Simply, language doesn’t have clearly-cut and defined rules and that’s why it is frequently compared to a <em>wild west</em> by many. For this reason, the field moved to <em>statistical language models</em>.</p><blockquote><strong><em>Language Modelling (LM) is the task of predicting what word comes next or more generally, a system that assigns probability to a piece of a text sequence.</em></strong></blockquote><p><strong><em>N-gram</em></strong> is the <em>simplest</em> language model and its performance is limited by its lack of complexity. Simplistic models like this one can not achieve fluency, enough language variation and correct writing style for long texts. For these reasons,<em> </em><strong><em>neural networks</em> (<em>NN</em>)</strong> are explored as the new gold standard despite their complexity and <strong><em>Recurrent Neural Networks (RNN)</em></strong> became a <em>fundamental architecture</em> for sequences of any kind. RNN is nowadays considered as the “vanilla” architecture for text but RNNs have problems of their own: it can not remember for long the content of the past and it struggles to create <em>long relevant text sequences</em>. For these reasons, other architectures such as <strong><em>Long Short Term Memory (LSTM)</em></strong> and <strong><em>Gated Recurrent Units (GRU)</em></strong> were developed and became the <em>state of the art solution</em> for many NLG tasks. In this article, we will explore the <em>evolution</em> of these <em>fundamental ideas and models</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bd3wdO4VydaG-MtUZ-7Epg.png" /><figcaption>Different flavours of RNN: RNN, GRU and LSTM (<a href="https://minimalistbaker.com/">source of images</a>)</figcaption></figure><p>Undoubtedly, <strong><em>Natural Language Processing (NLP)</em></strong> and <strong><em>Generation (NLG)</em></strong> have gone through major advancements, especially the last five year, and that’s why we use and benefit from applications of language models multiple times a day. Every time we are typing in a <em>search box</em> or <em>writing a text</em> on a <em>phone</em>, a model behind the scenes is predicting the next coming characters or words. <em>Gmail</em> and <em>LinkedIn</em> suggest entire sentences <em>based on our previous conversations</em> and <em>virtual assistants</em> (eg. <em>Siri</em> or <em>Alexa</em>) generate <em>human-like replies</em>. <em>Chatbots </em>are becoming a bigger part of <em>customer service</em> and <em>google translate</em> gives noticeably better translations for a huge range of languages. It is challenging to generate lengthy text that is fluent and coherent, while <em>maintaining control over the semantics of the output</em>. This is addressed with an architecture like <strong><em>Sequence-to-Sequence (Seq2Seq)</em></strong> which is used for conditional text generation problems but we will talk more about this later in the article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EwaBCbjgK8oZApQs_x1ALA.png" /><figcaption>Examples of applications with NLG models</figcaption></figure><h3><strong>N-gram</strong></h3><p>The most straightforward language model is an <em>n</em>-gram model. Text is nothing else than a sequence of characters (or words). The <strong><em>probability distribution of the next word</em></strong> <em>x</em>⁽ᵗ⁺¹⁾ from vocabulary <em>V</em> = { <em>W</em>₁,…,<em>W</em>|ᵥ|} is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/0*4INerAzqqNQu_ree" /></figure><p>Hence, the sequence of words <em>x</em>⁽¹⁾, <em>x</em>⁽²⁾,…, <em>x</em>⁽ᵀ⁾ has a probability of:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/0*DsRegqWL14jv7pie" /></figure><blockquote><strong><em>N-gram</em></strong> assumes <strong><em>the next word x</em>⁽ᵗ⁺¹⁾ depends only on the preceding <em>n-1</em> words.</strong></blockquote><p>In mathematically terms, this translates to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/0*aZdvyUmkdmlZkGSe" /></figure><p>N-gram is also known as <strong><em>unsmoothed maximum likelihood estimates</em></strong>. For <em>maximum</em> <em>likelihood estimates</em>, we count the number of times each word appeared after n-1 words (history) and divide by the number of times those n-1 words appeared in the training data. The <em>unsmoothed</em> part means that if we did not see a given word following n-1 words history in the training data, we will assign zero probability to it.</p><blockquote><em>Example for a 4-gram LM:</em></blockquote><blockquote><em>H̵e̵l̵l̵o̵,̵ ̵I̵ would like to ____</em></blockquote><blockquote>P(word | <em>would like to) = count(would like to </em>word) / <em>count(would like to</em>)</blockquote><blockquote>P(view|<em>would like to) =0.03, </em>P(book|<em>would like to) =0.04</em></blockquote><p>After these calculations, text generation is easy. The <strong><em>steps for generating the next gram</em> </strong>are:</p><ol><li>Look at the last n-1 grams (history).</li><li>Get the distribution of the next word from n-gram model.</li><li>Sample a gram based on the corresponding distribution. (Note that there are different ways to select the next gram and are explained at the end of this article.)</li></ol><p>To generate a sequence of k grams, we simply <em>loop the above process</em>, updating the history with the generated gram at each turn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*OebP6FpR4kBKf3HN_2VbUw.png" /><figcaption>Sparsity problem</figcaption></figure><p>There is a <strong><em>sparsity problem</em></strong> with this simplistic approach:</p><ol><li>As we have already mentioned if a gram never occurred in the historic data, n-gram assigns <em>0 probability </em>(<strong>0 numerator</strong>). In general, we should <strong><em>smooth</em></strong> the probability distribution, as everything should have at least a small probability assigned to it.</li><li>If a n-1 gram sequence was never occurred in the historic data, we <em>can’t calculate the</em> <em>probability</em> of the next gram (<strong>0 denominator</strong>). In this case we should just condition on a <em>shorter n-gram</em> (i.e. use a n-1 gram model instead). This technique is called <strong><em>backoff</em></strong>.</li></ol><p>Due to the model’s simplified assumption, we are not as good at predicting coming words as we would have been if we <em>kept the context and long term dependencies. </em>So we end up with <strong><em>incoherent</em></strong><em> </em>text such as</p><blockquote>“while production of bag lasts and shoe industry , the stock market has risen just after”</blockquote><p>Then, someone might think that a larger context may give a better predictor, but by increasing the number (n) of grams in the model <em>sparsity</em> becomes a bigger problem and the whole model actually becomes dysfunctional. Also, a bigger n results in a <em>bigger size of the model</em> and as a rule of thumb, <strong><em>n shouldn’t be more than 5</em></strong>.</p><h3><strong>NN</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/0*CoW4RGvRRPRWaVDf" /><figcaption>Trade-offs between these two types of systems. (<a href="https://cs.stanford.edu/~zxie/textgen.pdf">source</a>)</figcaption></figure><p>There is a need for a more complex model with context awareness. With a NN, there is <em>no sparsity</em> problem since it can give us a probability distribution for combinations that were never seen before and there is no need to store all observed n-grams. A NN seems to be the solution to every hard data problem nowadays, is this the case here?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*Wp8x2j0WZiwlbreOS2Wu0A.png" /><figcaption>Fixed window neural language model</figcaption></figure><p>For example, a fixed window neural LM looks at the words in a fixed length window and its input layer is the concatenated word embeddings vector. But we are still looking at a fixed-window of a limited size and <em>enlarging the window</em> size causes an unmaintainable <strong><em>increase of model parameters</em></strong>. Also there is <strong><em>no symmetry</em></strong> in how inputs are processed — looking at the figure above we can see that words are multiplied with different weights. Hence, we are effectively learning similar functions multiple times.</p><blockquote><em>There should be a lot of commonalities in how we process the incoming word embeddings</em>.</blockquote><p>As its name suggests, Recurrent Neural Network (RNN) addresses this issue <strong><em>by recurrently using the same network and weight matrices to all the word inputs</em></strong>. Hence, an RNN can be thought of as multiple copies of the same network, each passing a message to a successor. This makes an RNN a much more compact model than the fixed window NNs. Next section should make this statement clearer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y21cQnOKux5Sh-CkqOHslg.png" /><figcaption>Unrolling of an RNN (modified figure from <a href="http://colah.github.io/posts/2015-08-Understanding-LSTMs/">source</a>)</figcaption></figure><h3><strong>RNNs, GRUs and LSTMs</strong></h3><p>In an RNN, the<strong> <em>input sequence</em></strong> can be of <strong><em>any arbitrary length</em></strong><em> </em>since we apply the same weight matrix to every time step (word). This means that model <em>size doesn’t increase for longer inputs</em> and there is <strong><em>symmetry</em></strong> in how inputs are processed. Also, an RNN has a sequence of hidden states (instead of one hidden state as we did in the fixed window neural LM). The output at a step is computed based on the previous hidden state and the input on that step. Hidden states are like a single state mutating over time forming the memory of the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-6MtCqYAbuILuVr84HGeGg.png" /><figcaption>Vanilla RNN architecture where Xt is the input (eg. encoding of word at step t) and ht is output value (eg. encoding of the next word) (modified figure from <a href="http://colah.github.io/posts/2015-08-Understanding-LSTMs/">source</a>)</figcaption></figure><p>The hidden state is a linear combination of the previous hidden state and the current model input, which is then put through a non linearity (eg. sigmoid, tanh). We are trying to learn a <strong><em>general function</em></strong> (A in the diagram above) on how we should deal with a word <em>given the context of previous words</em>, while <em>learning a general representation of language and context</em>.</p><p>Predicting the coming context at a character level rather than a word level is a classification problems with a significantly lower number of classes as the characters are fewer than the range of words in a vocabulary. After training an RNN for predicting the next character, we can follow the <strong><em>steps below to generate new text</em></strong>:</p><ol><li>Start by choosing a string initialising the RNN state and setting the number of characters to generate.</li><li>Get the prediction as a distribution of the next character using the start string and the RNN state. Use a categorical distribution to calculate the index of the predicted character.</li><li>Use this predicted character as our next input to the model.</li><li>The RNN state returned by the model is fed back into the model so that it now has more context, instead of only the input (predicted previous character). (see RNN unrolling figure above)</li></ol><p>The computation for a character in the sequence of text (in theory) uses information from many steps back, but the recurrent character computations are still slow and it turns out to be difficult to access information from many steps back in practice.</p><blockquote>It’s doable to predict the last word in the sentence “Sun is shining in the <strong>sky</strong>”. But it is harder to predict the last word of the sentence “The weather during November is mainly <strong>sunny</strong>.” when 100 words earlier there was a sentence “I am planning a trip to Cyprus.”.</blockquote><p><strong>RNNs struggle</strong> to remember long range dependencies mainly due to the so-called <strong><em>vanishing gradient problem</em></strong><em> </em>and<em> </em>the<em> </em><strong><em>linear decay of the context information</em></strong>. The magnitude of gradients are affected by the weights and the derivatives of the activation functions (due to the chain rule), which are recurrently appearing in the network. The gradients may vanish in time, if either of these factors is smaller than 1 (as we multiply small values together) and the explosion of gradients might occur if these factors are larger than 1. In both cases we lose information especially when the text is longer. Very small gradients during training translate to insignificant changes in the weights and thus, <em>no significant learning</em>.</p><blockquote>LSTM and later GRU were designed to mitigate the vanishing gradient problem controlling how the model updates its memory.</blockquote><p>The repeating modules (A in the diagram) in <strong>LSTMs</strong> and <strong>GRUs</strong> have a different structure, which makes them <strong><em>capable of learning long-term dependencies</em></strong>. Their structure uses gates that are composed of a nonlinearity (eg. sigmoid) neural net layer and a multiplication or addition operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mcTWNLcHCYMIIk2f2wtGtw.png" /><figcaption>LSTM architecture and equations of its repeating module (modified figure from <a href="http://colah.github.io/posts/2015-08-Understanding-LSTMs/">source</a>)</figcaption></figure><p>There are different types of <strong><em>gates</em></strong> that can be used to <strong><em>update the states</em></strong>. For example, <em>forget gates</em> decide what information we’re going to throw away and <em>input gates</em> decide what new information we’re going to store. A key characteristic of LSTM is the <em>cell state</em> (top horizontal line in LSTM diagram above) that goes through the network with only some minor linear interactions allowing information to just flow along the network. <strong><em>GRU is a faster (but less powerful) variation on the LSTM</em></strong> that merges the cell state and hidden state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GMuZ0O8uARPkOF0rYEGVMA.png" /><figcaption>GRU architecture and equations of its repeating module (modified figure from <a href="http://colah.github.io/posts/2015-08-Understanding-LSTMs/">source</a>)</figcaption></figure><h3><strong>Conditional Language Model — Seq2Seq</strong></h3><p>We have seen so far different models (n-gram, RNN, LSTM, GRU) that can generate text, but we have not explored how we can generate text based on a condition other than the starting text. Some conditioned text generation <strong>applications</strong> are the following:</p><blockquote>Author Name <strong>&gt;</strong> Text in author’s style</blockquote><blockquote>Topic <strong>&gt; </strong>Article about that topic</blockquote><blockquote>Email <strong>&gt; </strong>Email subject line (aka summarisation)</blockquote><blockquote>Question <strong>&gt; </strong>Freeform Question Answering (aka chatbot)</blockquote><blockquote>Article <strong>&gt; </strong>Summary for that article (aka summarisation)</blockquote><blockquote>Image <strong>&gt; </strong>Text describing the image (aka image captioning)</blockquote><blockquote>Description of code in natural language <strong>&gt; </strong>Code (aka code generation)</blockquote><blockquote>Sentence <strong>&gt; </strong>Sentence translated to a different language (aka machine translation)</blockquote><p>In a conditional language model, we want to assign probabilities to a sequence of words (<em>y</em>) given some conditioning context (<em>x</em>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O8p583DgliA0GGd-" /></figure><p>This paradigm is called <strong><em>Seq2Seq</em></strong> modelling and it was a big breakthrough in 2014 for <em>neural machine translation</em>. It has been a leading standard method since then and <strong><em>google translate</em></strong> used it in 2016. For training such a model we need large amount of <em>parallel data</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/0*fUziQUkUZuNMY6-U" /><figcaption>The Rosetta Stone: First parallel language dataset</figcaption></figure><p>The architecture of Seq2Seq is a single neural network model comprised of two RNNs:</p><ul><li><strong>An <em>encoder</em></strong>: Creates a fixed-length encoding (a vector of real numbers) that <em>encapsulates information about the input</em>. In machine translation, the encoder extracts all of the pertinent information from the source sentence to produce an encoding.</li><li><strong>A <em>decoder </em></strong>(essentially a conditional LM): A language model that <em>generates the target sequence conditioned</em> with the encoding created by the encoder. In machine translation, the decoder generates the translated sentence of the source sentence.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LPw-Dra7nsUfbt67ckeY8g.png" /><figcaption>Seq2Seq example for generating a message to property agents based on some search criteria</figcaption></figure><p>The decoder is trained with a method called<em> </em><strong><em>teacher forcing</em></strong>. This means that the “teacher” forces the inputs of the decoder to be the gold target inputs instead of its predictions. The target sequence is the input sequence offset by one word so that the network learns to predict the word that comes next. <em>Backpropagation</em> in Seq2Seq operates <em>end to end</em> (one end being the loss functions and the other the beginning of encoder RNN), and we <strong><em>learn the entire system</em> </strong>with respect to<strong> <em>a single loss</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t_McQ_a1M0_x8bJqBiAN7Q.png" /><figcaption>End-to-end training using one loss function <em>J</em></figcaption></figure><p>The embedding created by the encoder becomes the initial state of the decoder RNN. We are forcing all of the information about the source sentence to be captured in this single vector as this is the only thing that is given to the decoder. In this way we are running in a kind of<em> </em><strong><em>information bottleneck</em> </strong>problem. If some information isn’t in that vector then there’s no way the decoder is going to be able to translate the sentence correctly. <strong><em>Attention</em></strong> provided a solution to this problem while also helping with other problems including the <strong><em>vanishing gradient problem</em></strong>.</p><blockquote><strong><em>Attention</em> is a general <em>deep learning technique</em>. Given a set of <em>vector values</em> and a <em>vector query</em> it computes <em>a weighted sum</em> of the values dependent on the query.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pfjsL8SjXXIbTa429agOTw.png" /><figcaption>Seq2Seq with Attention</figcaption></figure><p>In the Seq2Seq case, each decoder hidden state s𝘵 (query) attends to all the encoder hidden states h₁,…,h_N (values). Hence, on each step of the <strong>decoder</strong> we have a <strong>direct connection to the encoder</strong> but we <strong>focus on different parts</strong> of the source sentence.</p><p>What the network diagram above does <strong>mathematically</strong> is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*EHIKmLNZDk0oJ7A9plIZfw.png" /><figcaption>Attention (a_t) translated in mathematical equations</figcaption></figure><ol><li>Calculate the dot product of the decoder hidden state (s at step t) with every encoder hidden state (h₁,…,h_N) in order to get the attention scores (eᵗ)</li><li>Use softwax to get the attention distribution (αᵗ) for this step</li><li>Use this distribution to get the attention output (a at step t) as the weighted sum of the encoder hidden states.</li><li>Concatenate the attention output with the decoder hidden state ([a; s]) and proceed as in the non-attention Seq2Seq model.</li></ol><p>Lastly, after training a Seq2Seq model there are different <strong>strategies one can follow to predict the next word</strong> via the decoder:</p><ul><li><strong><em>Greedy</em></strong>: We always <strong>pick the word with the highest probability</strong> (aka argmax). We take the best option we have right now and there is no way to go back. Nevertheless, this is not necessarily going to give us the argmax over the entire sentence.</li><li><strong><em>Beam search</em></strong>: A beam search <strong>keeps track of <em>k</em> probable variants</strong> at each step to avoid being led astray by local maxima. When k is <em>small</em> (<em>k=1 for greedy</em>), we might get <em>ungrammatical unnatural</em>, <em>nonsensical incorrect </em>sentences. When k is <em>larger</em>, these problems are reduced but it is more <em>expensive</em> and gives more <em>generic</em> replies converging to a <em>safe “correct”</em> response, which is however <em>less relevant</em>.</li><li><strong><em>Sampling</em></strong>: We <strong>sample from a truncated conditional word probability distribution</strong> i.e. from top-k most probable words. With this method, usually sentences don’t have much meaning due to randomness. Note that <em>k=1</em> is the same as <em>greedy</em> decoding, <em>k=</em>size of the <em>vocabulary</em> is the same as pure <em>sampling</em>.</li></ul><h3><strong>Last words</strong></h3><p>We covered different methods of generating text from the simple <strong><em>n-gram</em> </strong>approach to different <strong><em>RNN</em></strong> architectures including <strong><em>LSTM</em></strong> and <strong><em>GRU</em></strong>. We also studied <strong>S<em>eq2Seq</em></strong> architecture which with <strong><em>attention</em></strong> can handle <strong><em>conditional text generation</em></strong> problems such as machine translation.</p><p>These models have <strong>plenty of use cases outside Google</strong> and my team — <strong>Data Science team at </strong><a href="https://www.zoopla.co.uk/"><strong>Zoopla</strong></a><strong> challenges the property portal experience</strong> with this knowledge. Hopefully after reading the article you have gained a better intuition on text generation and you are now also able to find useful applications for your industry. If you want to learn more, below are some resources I found useful and insightful:</p><ul><li><a href="http://web.stanford.edu/class/cs224n/">CS224n</a>: Natural Language Processing with Deep Learning. Stanford, Winter 2019 (the course that was the inspiration for this blog)</li><li>A. Karpathy. <a href="http://karpathy.github.io/2015/05/21/rnn-effectiveness/">The Unreasonable Effectiveness of Recurrent Neural Networks</a>, 2015</li><li>C. Olah.<a href="http://colah.github.io/posts/2015-08-Understanding-LSTMs/">Understanding LSTM Networks</a>, 2015</li><li>Z. Xie. <a href="https://cs.stanford.edu/~zxie/textgen.pdf">Neural Text Generation: A Practical Guide</a>. arXiv preprint arXiv: 1711.09534v1, 2017</li><li>Z. Hu. <a href="https://arxiv.org/pdf/1703.00955.pdf">Toward Controlled Generation of Text</a>, 2018</li><li><a href="https://www.tensorflow.org/beta/tutorials/text/text_generation">https://www.tensorflow.org/beta/tutorials/text/text_generation</a></li><li><a href="https://pytorch.org/tutorials/intermediate/seq2seq_translation_tutorial.html">https://pytorch.org/tutorials/intermediate/seq2seq_translation_tutorial.html</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*7XNnFDABPItxPLNlHRC4Qw.png" /></figure><p>A special thanks to my colleagues at <a href="https://www.zoopla.co.uk/">Zoopla</a>, who value knowledge sharing and experimentation with new ideas, and <a href="https://uk.linkedin.com/in/janteichmann">Jan Teichmann</a> for his feedback and support with the article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e816edd89c6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/exploring-wild-west-of-natural-language-generation-from-n-gram-and-rnns-to-seq2seq-2e816edd89c6">Exploring wild west of natural language generation — from n-gram and RNNs to Seq2Seq</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The secret sauce for growing from a data analyst to a data scientist]]></title>
            <link>https://medium.com/data-science/the-secret-sauce-for-growing-from-a-data-analyst-to-a-data-scientist-819595c3c43c?source=rss-25c7fde7b6e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/819595c3c43c</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Natalia Koupanou]]></dc:creator>
            <pubDate>Tue, 09 Jul 2019 14:17:58 GMT</pubDate>
            <atom:updated>2019-07-09T14:17:58.069Z</atom:updated>
            <content:encoded><![CDATA[<h4>Top tips for moving laterally from data analytics to data science</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wt91YU5Jnkyfaf9fC3Xw5Q.jpeg" /><figcaption>Road to Data Science (Photo by <a href="https://unsplash.com/@aleksandr_barsukov?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Aleksandr Barsukov</a> on <a href="https://unsplash.com/@aleksandr_barsukov?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>)</figcaption></figure><p>Undoubtedly a data science heatwave has hit most industries making data scientist the sexiest job of the 21st century as referred in <a href="https://hbr.org/2012/10/data-scientist-the-sexiest-job-of-the-21st-century">Harvard Business Review</a>. Despite the increasing demand and appetite for experienced data scientists, the job is ambiguously described most of the times. Also, the delineation between data science and data analytics or engineering is still loosely defined by a lot of hiring managers. This lack of real industry standard confuses a lot of professionals who desire to switch to a data science role. Speaking to many analysts and software developers I realise how overwhelming the available information about AI and machine learning (ML) can be. I also know from experience how hard it is to know where to start without any guidance. Currently, I am a data scientist at <a href="http://www.zoopla.co.uk/">Zoopla</a> and I’d like to share some lessons I’ve learnt from my personal professional journey from analytics to data science.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*KUk_Nr9ImJlUeY_4" /><figcaption>Cute GIF from <a href="https://imgur.com/gallery/oJSx1YR">https://imgur.com/gallery/oJSx1YR</a></figcaption></figure><h4>Stand firm on a solid mathematical foundation</h4><p>The majority of ML algorithms are built on <em>multivariable calculus and linear and nonlinear algebra</em>. Highly skilled data scientists are able to change the computer program at the level of mathematics and thus drive real improvement in model performance. It is important to have the mathematical skills, especially statistics and linear algebra. Having the <em>ability to learn and understand machine learning techniques</em> is a requirement for becoming a data scientist. Whether you’ve learnt that from a psychology or mathematics degree, a PhD or an online course is not relevant.</p><p>Personally, I have a Bachelor’s and Master’s degree in Engineering from Cambridge University. Typically, STEM bachelor degrees already provide <em>fundamentals</em> in mathematics required to learn machine learning and data science techniques. Many aspiring data scientists are discouraged by the <a href="https://vimeo.com/214233053">myth</a> of a PhD being a prerequisite for a career in data science. Currently, there are many data scientist with a doctoral degree but this is not a rule. For example, my former colleague <a href="https://www.linkedin.com/in/jorge-brasil-60917846/">Jorge Brasil</a> with a Master’s in applied mathematics has more than 7 years of experience in data science at top companies including Microsoft.</p><blockquote><em>Tip 1: Focus on your abilities rather than your background.</em></blockquote><p>As a data scientist, you often break <em>difficult, open-ended, badly defined problems</em> into <em>small steps</em>. This is a skill you are trained for during a postgraduate degree in a 3–6year period. Industry can also offer that skill, and that’s why I personally chose to join an e-commerce start-up after my undergraduate studies where I was the second member of the digital analytics and pricing team.</p><h4>Teach yourself before teaching your machine</h4><p>A data analyst reports, summarises and interprets both historical and current information to make it useable for the business. That is very different from a data scientist, whose role is to summarise data in a way that allows to make a prediction about the future or a prescriptive decision. The core task of data scientists is to <em>train, test and optimise ML algorithms</em> and therefore, their skillset is heavily weighted on ML modelling.</p><p>Many blog posts in medium and other platforms are ideal for beginners and can guide you with specific problems you might want to tackle. Other, helpful reads are the following:</p><ul><li>Bishop <a href="https://cds.cern.ch/record/998831/files/9780387310732_TOC.pdf">— Pattern Recognition And Machine Learning</a> (many call it the machine learning bible)</li><li>Hal Daumé III <a href="http://ciml.info/">— A course in machine learning</a></li><li>Michael Nielsen <a href="http://neuralnetworksanddeeplearning.com/">— Neural Networks and Deep Learning</a></li></ul><p>Theory and heavy equations can be overwhelming sometimes and should not keep someone out of the field. An approach that worked for me was doing my reading in parallel to coding. For example, try to build a single-layer perceptron (the simplest kind of neural network) from scratch to fully understand what you’ve read in the books.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*GwVPyS81l2IugFB1rsUDzA.png" /><figcaption>Learning combo: books, courses and code.</figcaption></figure><blockquote><em>Tip 2: Apply the scientific methodologies you’ve learnt.</em></blockquote><p>There are also numerous online courses and masters with different weightings on theory and practise covering fundamentals of machine learning ML. My favourite picks are:</p><ul><li><a href="https://www.coursera.org/learn/machine-learning">Coursera ML course</a> from Andrew Ng, a leader in the field, which covers some basics. It might be better to try the assignments in Python rather than Octave/Matlab as you will be better positioned in the job market if you have stronger Python skills.</li><li><a href="https://www.fast.ai/">Fast.ai</a> courses (<a href="http://course18.fast.ai/ml">Introduction to Machine Learning for Coders</a>, <a href="http://course.fast.ai/">Practical Deep Learning for Coders</a>, <a href="http://course18.fast.ai/part2.html">Cutting Edge Deep Learning for Coders</a>) with an inspiring <a href="https://www.fast.ai/2016/10/08/teaching-philosophy/">teaching philosophy</a> and a more practical focus, created by ML celebrities Jeremy Howard and Dr Rachel Thomas.</li><li>Stanford university shares the material of a range of AI classes, to name a few that I personally liked: <a href="http://web.stanford.edu/class/cs224n">cs224n</a> Convolutional Neural Networks for Visual Recognition and <a href="http://cs231n.stanford.edu/">cs231n</a> Natural Language Processing with Deep Learning.</li></ul><p>The objective here is neither to memorise formulas and derivations nor to read every page of these books and lectures. You should aim to <em>capture fundamental concepts which most models and algorithms address just in different ways</em>, e.g. drop-out layers in neural networks, vanishing gradient, signal/noise relationships. Gaining the ability to relate problems back to these fundamentals will make you a good applied data scientist, whom a lot of employers would want to have.</p><h4>Research to do science</h4><blockquote><em>Tip 3: Pick the right methodology for your business setting and problem.</em></blockquote><p>The real skill of a data scientist is knowing what technology and machine learning methodologies are needed to answer business questions at hand. The field is booming during the last decade and continuous thirst for knowledge is required to shine as a data science professional. I would strongly advise to read both published academic papers and ML/AI blogs of different technology companies and key personas in the field. This can turn out helpful when you are asked to deliver solutions for abstract problem statements which do not provide an immediate solution. Finding the right solution via researching what’s out there is 80% of the job done. Andrej Karpathy very well said in the Stanford class <a href="http://cs231n.stanford.edu/">cs231n</a>, <em>“don’t be a hero”</em>. In my team, we don’t underestimate the effort and time others have put in finding the architecture that currently works best. Instead of rolling our own architecture for a common problem, we import libraries, download pre-trained models and fine-tune them on our data. The business world expects you to <em>deliver (and fail) fast</em>, hence when possible you shouldn’t reinvent the wheel but stand on the shoulders of giants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*GA5v0gPHFHorZaLg" /><figcaption>“If I have seen further it is by standing on the shoulders of Giants”, Isaac Newton (1675) (image from <a href="https://me.me/i/3487477">https://me.me/i/3487477</a>)</figcaption></figure><h4>Work on your programming skills</h4><p>Data analysts use data in a way to help businesses make informed decisions. They are masters of SQL, Excel and visualisation tools such as Tableau or Power BI. On the other hand, data scientists need to build robust models to extrapolate and solve business problems at scale. Hence, they are required to develop their programming skills. I wasn’t coding from the age of 10 with a hoodie on, but it was never too late for me to start learning how to code. At university I learnt Machine Learning in Matlab and I coded in JavaScript for different work projects, but it was important to practise the pythonic ways.</p><p>Python is becoming the world’s <a href="https://www.economist.com/graphic-detail/2018/07/26/python-is-becoming-the-worlds-most-popular-coding-language">most popular coding language</a> and has countless well-tested libraries for data science that are continually updated. Unsurprisingly most data science teams, including mine, are looking for Python users. So if you don’t know Python, sign up for an <a href="https://wiki.python.org/moin/BeginnersGuide/Programmers">online course</a> and learn the basics to get you going. You shouldn’t ignore the style guides such as <a href="https://www.python.org/dev/peps/pep-0008/">PEP8</a> and show patient since practice will bring the desired results. Also, <a href="https://nbviewer.jupyter.org/github/fastai/course-v3/blob/master/nbs/dl1/00_notebook_tutorial.ipynb">learning</a> how to use <a href="https://github.com/jupyter/jupyter/wiki/A-gallery-of-interesting-Jupyter-Notebooks">Jupyter</a> will be key for a quicker workflow and data/model exploration.</p><blockquote><em>Tip 4: Practise practise and practise for stronger better faster programming skills.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/0*TyujGpmzt8HD1PXR" /><figcaption>Because programming gives you magical powers</figcaption></figure><p>Entering hackathons, participating in kaggle competitions, working on a personal coding projects are all different ways of improving your programming skills. Identifying or getting involved in data science opportunities that come out of the results of your analysis can be a way to gain experience in your current role. Algorithms for forecasting and anomaly detection can be other projects you can ask to work on even as part of your development as an analyst. I remember my first data science project in the industry was an algorithm to autocomplete search queries on an <a href="https://www.zoro.co.uk/">e-commerce website</a>. This project was initiated by some interesting analytics insights around search and shopping baskets that I reported whilst still being a junior analyst.</p><h4>Gain software engineering skills</h4><p>Software engineering skills become necessary when you want your models to see the production light. Cultivating a coding attitude that aims for reproducibility of projects and results via automation is critical for both methodological and legal reasons. In a company with a mature data science culture, someone might create the prototype, someone else might write the production code and someone else might deploy it. In reality though and irregardless of the company’s size, it’s unlikely that you will have all the support required and knowing just the statistics will not be enough to deliver a data science project.</p><blockquote><em>Tip 5: Automate the steps in your project as early as possible.</em></blockquote><p>Hence, an initial data science bucket list might look like this:</p><ul><li><strong>Reproducible data pipelines (eg. in spark and python)</strong>: Have you ever had to reproduce an analysis that you did before? Creating a logical data flow (eg. raw (immutable data) -&gt; intermediate (in-progress work) -&gt; processed (final features)) and using<a href="https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html#Makefile-Conventions"> Makefiles</a> will save both you and your colleagues a lot of time. My team and I are huge fans of<a href="https://github.com/audreyr/cookiecutter"> cookiecutter</a>, which offers a logical project structure like this one.</li><li><strong>End-to-end automation of training and scoring</strong>: A model is most of the times a living organism, new predictions are needed and data might shift. This translates to retraining, scoring and refining. It’s a necessity then to put your model parameters, secrets and random seeds in config files, break up a DS project into different elements and apply <a href="https://scholarspace.manoa.hawaii.edu/bitstream/10125/59549/0109.pdf">modularity</a> e.g. creating a shared feature library which can be used both during training and scoring.</li><li><strong>Unit test coverage</strong>: I bet that you’d like to have carefree sleep and uninterrupted holidays. Then, it’s important to write tests for your projects in order to ensure robustness.</li><li><strong>Building an API to provide predictions</strong>: To pitch your ideas and models you need to have a proof of concept and in many cases this is equivalent to a REST API. If you can’t be bothered to use another language other than Python, you can use <a href="http://flask.pocoo.org/docs/1.0/">Flask</a> and <a href="https://github.com/rochacbruno/flasgger">Flasgger</a> that comes with <a href="https://swagger.io/tools/swagger-ui/">Swagger UI</a>. Swagger will come in useful for documenting and visualising your RESTful web services.</li><li><strong>Containerisation of a data science solution for ECS deployment or production environment</strong>: <a href="https://www.youtube.com/watch?v=GOW6yQpxOIg">Docker</a> allows you to isolate projects and their dependencies, move models between environments and run your code in exactly the same way every time achieving 100% reproducibility. This will help your collaboration with DevOps and engineers, since they can use your containers as a black box without having to know data science.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/0*ZRfahc4vtzU_Me2F" /><figcaption>Some tick-off items on a data scientist’s programming list</figcaption></figure><h4>Translate science to domain language</h4><p>As a data person and a subject matter expert, you can overcome blockers such as a missing business or KPI definition by finding proxies in data or make it outright a latent factor which you learn with ML. Data science usually brings disruption to a business and as a result, you will need to pitch your ideas to senior leadership in order to get the appropriate support and resources. Someone might say that making an algorithm understandable for all stakeholders in the business is a form of art. Learning how to translate what I’ve built in order to show its importance to others is something I am constantly having to learn and relearn. As <a href="https://www.linkedin.com/in/rebecca-pope-ph-d-hiring-1900b0a4/?originalSubdomain=uk">Rebecca Pope</a>, current head of data science and engineering at KPMG, emphasised in <a href="https://www.women-in-technology.com/">Women of Silicon Roundabout</a> conference “Always remember that you (not your code) is impactful. People don’t buy algorithms, they trust you and your abilities.”. Hence, ensure you pay attention and time to the ability of translating maths into a visual narrative that is specific to your vertical industry.</p><blockquote><em>Tip 6: Communicate your work with terms from your vertical industry.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eyFb-n8_rOsOE7xO" /><figcaption>A data scientist explaining deep learning . (image from <a href="https://memegenerator.net/img/instances/63241330.jpg">https://memegenerator.net/img/instances/63241330.jpg</a>)</figcaption></figure><h4>Time to grow</h4><p>Being in a newly shaped profession is more exciting than hard. <a href="http://www.zoopla.co.uk/">Zoopla</a> has given me the opportunity to work in a talented data science team and working with people I can learn from helps me to achieve my professional goals faster. Finding a team that lets you grow and having a mind like a sponge will accelerate your journey to success. I have been lucky that my line manager, <a href="https://www.linkedin.com/in/janteichmann/">Jan Teichmann</a>, has the experience to mentor me in order to become a high-skilled data scientist. Ideally, your manager understands your day to day job and where you want to get to. Otherwise, find the extra guidance you might need outside your team or company, for example from an alumni or professor from your university or from a friendly data scientist from your network. Meet-ups and conferences could also be inspiring and help you with this task.</p><blockquote><em>Tip 7: Remember no textbook or course would be as important as mentoring.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1IMzGS56ZIZpY2QI" /><figcaption>Customised meme (Read it with Don Corleone’s voice)</figcaption></figure><p><em>To sum up</em>, the skillset you should focus on to launch a career in data science is s<em>tatistics, multivariable calculus and linear algebra, machine learning, programming skills, software engineering and visualisation skills</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*1-dv93NJ17_ckZbRCyOmgA.png" /><figcaption>Data Science Venn Diagram by Steven Geringer Raleigh, NC.</figcaption></figure><p>Top tips to achieve your goal:</p><ol><li><em>Focus on your abilities rather than your background</em></li><li><em>Apply the scientific methodologies you have learnt.</em></li><li><em>Pick the right methodology for your business setting and problem.</em></li><li><em>Practise practise and practise for stronger better faster programming skills.</em></li><li><em>Automate the steps in your project as early as possible.</em></li><li><em>Communicate your work with terms from your vertical industry.</em></li><li><em>Remember no textbook or course will be as important as mentoring.</em></li></ol><p>What are you waiting for? Relish the opportunity and make the effort to become what you are dreaming of. ;)</p><p>Feel free to share the data science love and connect with me on <a href="https://uk.linkedin.com/in/natalia-koupanou-51563269">LinkedIn</a>. Special thanks to <a href="https://www.linkedin.com/in/janteichmann/">Jan Teichmann</a> for his feedback and support!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=819595c3c43c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/the-secret-sauce-for-growing-from-a-data-analyst-to-a-data-scientist-819595c3c43c">The secret sauce for growing from a data analyst to a data scientist</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>