<?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 Abhay Malik on Medium]]></title>
        <description><![CDATA[Stories by Abhay Malik on Medium]]></description>
        <link>https://medium.com/@abhaymalik14?source=rss-220a3b57bca8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*qpHXLCFdNY1jOBGdN-Lc6g.jpeg</url>
            <title>Stories by Abhay Malik on Medium</title>
            <link>https://medium.com/@abhaymalik14?source=rss-220a3b57bca8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:10:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhaymalik14/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[Predicting Customer Reviews with Multi-Modal Machine Learning]]></title>
            <link>https://medium.com/predibase/predicting-customer-reviews-with-multi-modal-machine-learning-25ffd40695ab?source=rss-220a3b57bca8------2</link>
            <guid isPermaLink="false">https://medium.com/p/25ffd40695ab</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Abhay Malik]]></dc:creator>
            <pubDate>Mon, 13 Mar 2023 17:36:14 GMT</pubDate>
            <atom:updated>2023-03-13T17:36:14.958Z</atom:updated>
            <content:encoded><![CDATA[<h3>Predicting Customer Review Ratings on Multi-Modal Data with Predibase and Ludwig</h3><p><em>Watch our recent webinar to see this use case in action: </em><a href="https://go.predibase.com/hands-on-with-multi-modal-machine-learning-lp"><em>https://go.predibase.com/hands-on-with-multi-modal-machine-learning-lp</em></a><em>.</em></p><p>In this blog post, we will show how you can easily train, iterate, and deploy a highly-performant ML model on a multi-modal dataset using Predibase, the low-code declarative ML platform, and open-source Ludwig.</p><p>If you want to see this use case in action, make sure to watch the <a href="https://go.predibase.com/hands-on-with-multi-modal-machine-learning-lp">on-demand webinar</a> or request a <a href="https://predibase.com/request-early-access">demo</a> to learn more about the platform. If you’d like to follow along, you can use our OSS project Ludwig with a Jupyter Notebook <a href="https://colab.research.google.com/drive/1Tf1wjSzJWzGXH60Rgv7p_rkyuaPmD0h1?usp=sharing">here</a> and if you are new to Ludwig, feel free to check out our <a href="https://ludwig.ai/latest/getting_started/">quick tutorial.</a></p><h3>Predicting Customer Reviews with ML</h3><p>For today’s use case, we’ll take a look at the <a href="https://www.kaggle.com/datasets/nicapotato/womens-ecommerce-clothing-reviews?datasetId=11827">Women’s E-commerce Clothing Reviews dataset</a>. With a surge in e-commerce shopping in recent years, customer reviews have become an important factor in both understanding customer satisfaction as well as influencing customer demand. We’ll be using the e-commerce dataset to predict customer ratings from detailed reviews. With this information, organizations can proactively reach out to dissatisfied customers or improve products before negative reviews start to amass. This use case can also be easily modified into a product recommendation or product sentiment use case directly within the Predibase platform depending on what you’re interested in predicting.</p><p>The dataset itself contains over 20k rows of real, anonymized reviews for women’s clothing in the e-commerce industry. In addition, this multimodal dataset includes a wide variety of feature types including categorical, numerical, and text features. These features include the age of the reviewer, product department, text description of the reviews, and the number of other users who found this review helpful. This set of wide-ranging features makes this use case a great fit for a platform like Predibase, which allows you to leverage all your structured and unstructured data to train cutting-edge ML models.</p><p>The ML task we’ll investigate will be to predict the number of stars (from 1 through 5, where 5 indicates the best score) of a given review. Since we will treat this rating score as a numerical value, this is a regression task and we’ll choose a corresponding performance metric of R2.</p><p>So without further ado, let’s dive in!</p><h3>Connecting to Structured and Unstructured Data</h3><p>Predibase allows you to instantly connect to your cloud data sources, pulling in all your data — including tabular, text, images, audio, and more — wherever it may live. For today’s example, the Women’s Clothing Review dataset is included in the out-of-the-box Ludwig datasets which makes it just a few clicks to pull it into Predibase.</p><p>If you’re following along with Ludwig, follow the instructions in the <a href="https://colab.research.google.com/drive/1Tf1wjSzJWzGXH60Rgv7p_rkyuaPmD0h1?usp=sharing">notebook</a> to download the dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Xa6qXi2nlQdO1dBz" /></figure><p>Predibase makes it easy to try out a variety of datasets out of the box.</p><h3>Getting our first ML models trained</h3><p><strong>Phase 1 — Train Model Baselines</strong></p><p>Now that we have our data in Predibase, let’s continue to the exciting part of training models!</p><p>One of the benefits of a tool like Predibase is the ability to quickly establish baselines for a given dataset and task. When you are first analyzing a dataset, you may not immediately know if an ML-based approach could be useful, let alone what initial results you can expect to see. Built on top of Ludwig’s data-centric configuration approach, Predibase makes it easy to train your first baseline models. Let’s see this in action by training Neural Networks and Tree-based models.</p><p><strong>Default Neural Network Model</strong></p><p>Configuration</p><pre>input_features:<br>  - name: Clothing ID<br>    type: number<br>  - name: Age<br>    type: number<br>  - name: Recommended IND<br>    type: binary<br>  - name: Positive Feedback Count<br>    type: number<br>  - name: Division Name<br>    type: category<br>  - name: Department Name<br>    type: category<br>  - name: Class Name<br>    type: category<br>output_features:<br>  - name: Rating<br>    type: number<br>model_type: ecd</pre><p><strong>Default Neural Network Configuration</strong></p><ul><li>Training R2: 0.4921</li><li>Test R2: 0.4896</li></ul><p><strong>Default Gradient-boosted Tree Model</strong></p><p>Configuration</p><pre>input_features:<br>  - name: Clothing ID<br>    type: number<br>  - name: Age<br>    type: number<br>  - name: Recommended IND<br>    type: binary<br>  - name: Positive Feedback Count<br>    type: number<br>  - name: Division Name<br>    type: category<br>  - name: Department Name<br>    type: category<br>  - name: Class Name<br>    type: category<br>output_features:<br>  - name: Rating<br>    type: number<br>model_type: gbm</pre><p><strong>Default Gradient-boosted Tree Model Configuration</strong></p><ul><li>Training R2: 0.6619</li><li>Test R2: 0.6141</li></ul><p>Before moving on, let’s highlight a few key points.</p><p>To get started with Ludwig, all you have to do is specify your input and output features in a configuration-driven manner–in this case, YAML–to start to train your baselines. Predibase simplifies thmodeling process even further, reducing the process to arrive at a trained model, with just a few clicks.</p><p>In addition, one of the unique advantages you get is the ability to train both deep learning and tree-based models at the same time. This provides you with more confidence in the results of your baselines and serves as a starting options for future iteration. Below, we see the two models have varying performance which suggests there may be some room for improvement.</p><p>Default Neural Network. R2: 0.4896</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UNsj-bPRa9YOgW8u" /></figure><p>Default GBM Model. R2: 0.6141</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p5vxAGtHRJUyefvu" /></figure><h3>Iterating Models to Success</h3><p>With real-world machine learning, it’s rarely the case that the first model we train will be our final model. There are typically many iterations of exploration before converging on a model that meets our performance criteria while ensuring the model performs well on different slices of our data. So now that we have a few good baselines, what if we want to improve the model further?</p><p>In our experience, this question comes up all too often and other options on the market don’t quite work. If you look at other tools, you’ll likely find two broad types of options:</p><ul><li>Fallback to the DIY approach of building models from scratch requiring lots of code, or</li><li>Try AutoML solutions hoping they can improve performance, but at the cost of flexibility</li></ul><p>We’ve seen companies try both approaches, but in our opinion neither provides a truly efficient way for users of all skill levels to iterate on ML models. With Predibase and declarative ML, you get the best of both worlds through a unique combination of <em>simplicity</em> and <em>flexibility, </em>specifically:</p><ul><li>The <em>simplicity</em> of simply declaring what you want to change and Predibase automatically making the necessary modifications and training the end-to-end pipeline for you</li><li>The<em> flexibility</em> to customize nearly *any* aspect of the model pipeline from how text is preprocessed to the learning rate used during training</li></ul><p>This approach of declarative machine learning has been tried and tested by companies like <a href="https://research.facebook.com/publications/looper-an-end-to-end-ml-platform-for-product-decisions/">Meta</a>, <a href="https://machinelearning.apple.com/research/overton">Apple</a>, and <a href="https://www.uber.com/blog/introducing-ludwig/">Uber</a> (where Ludwig itself was created). Let’s discover how easy this declarative approach makes it to experiment and iterate!</p><p><strong>Phase 2 — Adding Unstructured Text Data</strong></p><p>How then should we begin thinking about iterating on our models? There are a variety of different approaches we can try including (but not limited to):</p><ul><li>Using additional preprocessing on the dataset</li><li>Choosing different model types for encoders / combiners / decoders</li><li>Tuning specific hyperparameters related to the training process like batch size and learning rate</li></ul><p>In our case, we can try something even simpler to start. You may have noticed that although we used a neural network for one of our baseline models, we actually didn’t use the text features at all!</p><p>Given both the signal that could lie within customer review text and the ease of Predibase to handle unstructured data, let’s go ahead and add those text features and retrain our model. For Predibase, it’s a matter of a few toggles enabling those features, and in Ludwig, it’s only a few lines of code as shown below.</p><p><strong>Neural Network using Text features</strong></p><pre>input_features:<br>  - name: Clothing ID<br>    type: number<br>  - name: Age<br>    type: number<br>  - name: Title<br>    type: text<br>  - name: Review Text<br>    type: text<br>  - name: Recommended IND<br>    type: binary<br>  - name: Positive Feedback Count<br>    type: number<br>  - name: Division Name<br>    type: category<br>  - name: Department Name<br>    type: category<br>  - name: Class Name<br>    type: category<br>output_features:<br>  - name: Rating<br>    type: number<br>combiner:<br>  type: tabnet</pre><p><strong>Neural Network using Text Features Config</strong></p><p>Once we train this new neural network model with the updated text features, we can see the performance metrics and compare how it performed to the previous iteration. Before we do that, however, it’s worth noting one of the many benefits of having models expressed as configuration files: Model Version Diff.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/0*DxixnXPlHXujmCYY" /></figure><p>Comparing model parameters in Predibase is as easy as looking at a few lines of code in a config file.</p><p>With an entire model pipeline expressed as a single configuration file, we can visually inspect the differences between these two models and verify that we did indeed add the unstructured text fields in the new model versions. Neat!</p><p><strong>Performance of Neural Network using Text Features</strong></p><ul><li>Training R2: 0.7543</li><li>Test R2: 0.5671</li></ul><p>Great, it looks like adding text features helped the model achieve a better R2 score. Now you may be wondering if this should be our final model or if we should continue iterating. Predibase offers a variety of visualizations to understand the nuances of how our model performed and help answer that question including ROC curves, Confusion Matrices, and Feature Importances.</p><p>In particular, let’s take a look at the feature importance plots (powered by Integrated Gradients) to see if we can build stronger intuition for how much these text features aided model performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S6o3YySSZAu3xGYd" /></figure><p>Feature Importance for Neural Network with Text Features.</p><p>The chart above shows the relative importance values for each of the input features in the model. It looks like those text features (Review Text and Title) were critically important for the model to learn after all! The contrast becomes even starker when comparing relative to the original neural network’s feature importance chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/0*c2vsGb4mjy_MDYd7" /></figure><p>Feature Importance for Neural Network without Text Features.</p><p><strong>Phase 3 — Fine-tuning BERT</strong></p><p>Now that we’re using all the features, let’s try something a bit more advanced! Predibase (and Ludwig) have integrations with <a href="https://huggingface.co/">Hugging Face</a>, providing us with state-of-the-art models at our fingertips. Together with the fact that Ludwig leverages a <a href="https://ludwig.ai/latest/user_guide/how_ludwig_works/#ecd-architecture">compositional model architecture</a>, we can use Hugging Face models as encoders at the individual input feature type level.</p><p>In our case, let’s try two things:</p><ol><li>Use a heavyweight encoder like BERT to encode our text features. We’ll use the pre-trained version model and choose to fine-tune the model on our dataset.</li><li>We’ll also do a bit of feature selection and will only choose these two features as they were the most influential overall in our previous iteration.</li></ol><p><strong>Neural Network with fine-tuning BERT</strong></p><pre>input_features:<br>  - name: Title<br>    type: text<br>  - name: Review Text<br>    type: text<br>output_features:<br>  - name: Rating<br>    type: number<br>trainer:<br>  optimizer:<br>    type: adamw<br>  batch_size: auto<br>  learning_rate: 0.00002<br>  learning_rate_warmup_epochs: 0<br>defaults:<br>  text:<br>    encoder:<br>      type: bert<br>      trainable: true</pre><p><strong>Neural Network with Fine-Tuning BERT Config</strong></p><ul><li>Training R2: 0.9186</li><li>Test R2: 0.6429</li></ul><h3>The Ease of Model Iteration with Predibase</h3><p>Let’s summarize our findings from this iteration journey!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ieuLsWaYS7tejcGj" /></figure><p>Summary of R2 scores for our customer rating prediction models.</p><p>You can see that training a multi-modal model that fine-tuned BERT for our text features along with defaults for our structured features resulted in the best performance with a Test R2 of 0.6636.</p><p>And while training baselines were simple to get started, Predibase also allowed us to easily experiment by adding features and modifying cutting-edge encoders to reach a high-performing model. Today, we experimented with some high-level parameters but in a future post, we’ll take a look at how we can tweak more advanced parameters as well. With Predibase, this iteration journey can also continue in a more automated fashion by leveraging distributed hyperparameter optimization.</p><h3>Ready to Deploy Models into Production</h3><p>Perfect, that final model is the best performing model we’ve trained so far! Now that we have a model we’re satisfied with, how exactly should we go about operationalizing it? Building a custom, in-house deployment process would be quite time-consuming and complex. Without Predibase, we’d likely have to pass the model over to the ML Engineering team who would have to figure out the best way to deploy the model. Given the use-cases and performance requirements for inference vary significantly per model, we’ve seen many organizations fall into the trap of creating insurmountable tech debt while building out a model deployment pipeline.</p><p>Recognizing these challenges, Predibase offers performant, hassle-free deployments natively within the platform for both batch and real-time serving through the use of <a href="https://predibase.com/blog/how-to-run-inference-on-ludwig-models-using-torchscript">Torchscript</a> and other cutting-edge technologies.</p><p>In the case of batch inference, we can use Predibase’s PQL (Predictive Query Language) to get predictions instantly and examine how the <em>Rating_predictions</em> compare to the ground truth <em>Rating</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/0*2dwTgFXzAmpKJRDT" /></figure><p>You can quickly explore rating predictions inline using Predibase’s predictive query language (PQL) and editor</p><p>If instead, we want to deploy this to a REST endpoint for real-time inference, we can deploy to a high-throughput, low-latency endpoint that is live in just a few clicks!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1yJwUehWVMU38Sce" /></figure><p>You can deploy to a REST endpoint in just one click using Predibase.</p><h3>Trying Multimodal Datasets on Predibase</h3><p>In this example, we showed you how to build a review ratings prediction engine in less than 10 minutes using state-of-the-art deep learning techniques and multi-modal data on Predibase. This was possible due to the underlying compositional Encoder-Combiner-Decoder (ECD) model architecture that makes unstructured data as easy to use as structured data. This is powerful for any e-commerce or retail companies looking to better understand customer sentiment and apply ML to their business.</p><p>This was also just a quick preview of what’s possible with Predibase, the first platform to take a low-code declarative approach to machine learning. Predibase democratizes the approach of declarative ML used at big tech companies, allowing you to train and deploy deep learning models on multi-modal datasets with ease.</p><p>If you’re interested in finding out how declarative ML can be used at your company:</p><ul><li>Request a personalized <a href="https://predibase.com/request-early-access">demo</a> of Predibase</li><li>Check out the OSS project <a href="https://ludwig.ai/latest/">Ludwig</a> and download the ratings prediction <a href="https://colab.research.google.com/drive/1Tf1wjSzJWzGXH60Rgv7p_rkyuaPmD0h1?usp=sharing">notebook</a></li><li>Explore more deep learning and machine learning use cases in our <a href="https://predibase.com/blog">blog</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25ffd40695ab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/predibase/predicting-customer-reviews-with-multi-modal-machine-learning-25ffd40695ab">Predicting Customer Reviews with Multi-Modal Machine Learning</a> was originally published in <a href="https://medium.com/predibase">Predibase</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Declarative Machine Learning and the Future of Data Science]]></title>
            <link>https://medium.com/predibase/declarative-machine-learning-and-the-future-of-data-science-2de3c1c7de2b?source=rss-220a3b57bca8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2de3c1c7de2b</guid>
            <dc:creator><![CDATA[Abhay Malik]]></dc:creator>
            <pubDate>Tue, 18 Oct 2022 23:41:10 GMT</pubDate>
            <atom:updated>2023-01-13T22:58:55.214Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>ABSTRACT: Declarative ML has the potential to reduce the time, effort, and skills required to bring ML into production in a wide range of enterprise environments.</em></strong></p><p>This is a guest post co-authored with <a href="https://medium.com/u/4968d2f593a8">Kevin Petrie</a>, VP of Research at the Eckerson Group. The blog was originally posted on the <a href="https://www.eckerson.com/articles/declarative-machine-learning-and-the-future-of-data-science">Eckerson blog</a>.</p><p>Authors: <a href="https://medium.com/u/4968d2f593a8">Kevin Petrie</a>, <a href="https://medium.com/u/1dad367afd91">Daliana Liu</a>, and <a href="https://medium.com/u/220a3b57bca8">Abhay Malik</a>.</p><p>The irony of machine learning (ML) models is that, while they automate business decisions and processes, building them takes a lot of manual effort. Data science teams struggle to handle all the complex programming required to implement ML models in production. Skilled, <a href="https://www.python.org/">Python</a>-savvy data scientists and ML engineers might spend months training, tuning, and finally deploying ML models. But if they use AutoML solutions to simplify the model building process, they risk losing visibility and control.</p><p>No surprise, then, that three quarters of enterprise respondents to a recent KDNuggets <a href="https://www.kdnuggets.com/2022/01/models-rarely-deployed-industrywide-failure-machine-learning-leadership.html">survey</a> said that most of their ML models never make it into production. This is just one of many research findings that indicate a sobering lack of ROI on AI/ML initiatives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tLftrwJBT5z7WJN4Fsqg3w.png" /></figure><p>But there is cause for hope. A new approach called Declarative ML, inspired by Declarative programming, might help data science teams bring ML models to fruition with less time and effort.</p><h4>The Value of Declarative Machine Learning (ML)</h4><p>Declarative ML has data science teams define <strong>what</strong> they want to predict, classify, or recommend, then let the software figure out <strong>how</strong> to do it. They enter intuitive commands without needing to specify the code, rules, or other elements that execute on those commands. If this sounds familiar, it should, because popular languages such as hypertext markup language (<a href="https://en.wikipedia.org/wiki/HTML">html</a>) and structured query language (<a href="https://www.techtarget.com/searchdatamanagement/definition/SQL">SQL</a>) take the same approach. These languages achieved mainstream adoption by enabling less skilled users to define what they want without worrying about how it will get done. More advanced users can still inspect what happens under the covers if they want.</p><p>A Declarative ML system trains the ML model(s) on historical data, applying various default features, parameters, and algorithms. Using just a simple configuration file that defines the model and data, Declarative ML allows data scientists and engineers alike to train models without low-level knowledge of frameworks such as <a href="https://pytorch.org/">PyTorch</a> or <a href="https://www.tensorflow.org/">TensorFlow</a>. They can accept the default selections or adjust them to meet custom, dynamic requirements, then implement and monitor the models.</p><p>This flexible approach supports ML projects that range from the simple to the sophisticated, depending on the use case and the skills of the user. In fact, that user might be a SQL-savvy analyst rather than a python-savvy data scientist. Since it’s declarative, they can inspect and modify the parameters at their preferred level of detail.</p><p><strong><em>Declarative machine learning enables users to specify what they want,</em></strong></p><p><strong><em>and let the software figure out how to do it</em></strong></p><p>Declarative ML is similar to AutoML tools that also make default selections and automate part or all of the ML lifecycle. But AutoML might hide certain elements within automated workflows for the sake of simplicity, reducing the ability of data scientists to customize or explain what is happening. Declarative ML maintains full visibility and control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/0*YJaFPt9RmhoqqiXw" /></figure><p><strong>Benefits.</strong> Designed and implemented well, Declarative ML has the potential to democratize implementation of complex algorithms. It can empower data analysts and engineers to tackle basic ML projects — or even complex projects such as natural language processing or computer vision — without waiting on more ML-savvy colleagues such as data scientists and ML engineers. With Declarative ML, they can improve team productivity by spending less time on minutiae and more time on innovation. They can improve agility by assembling and reusing pre-built, modular features and models. Finally, they can maintain oversight of details to ensure explainability and governance.</p><p><strong>SQL Precedent.</strong> The history of structured query language (SQL) demonstrates the power of declarative approaches to programming. SQL helped drive adoption of relational databases in the 1980s, 90s, and onward by simplifying data manipulation and retrieval. For example, analysts define which records they want to query, but don’t need to specify how to reach it — e.g., whether to use an index. Decades on, SQL remains analysts’ lingua franca for managing business intelligence projects.</p><p>Recently data science teams within several large technology companies have applied a declarative approach to their ML model development. Their projects include the Overton project at Apple, Looper at Meta, and Ludwig at Uber.</p><p><a href="https://venturebeat.com/2019/09/13/apple-details-overton-ai-development-tool-whose-models-have-processed-billions-of-queries/"><strong>Overton</strong></a>. Apple developed this project to enable its data scientists and developers to build and operationalize ML or deep learning without writing code. They provide a schema that includes the data inputs, model tasks, and data flow that supports those tasks. Overton then compiles the schema for frameworks such as TensorFlow or Apple’s CoreML, and finds the right architecture and hyper parameters to support that schema. Overton-based applications have processed billions of queries and trillions of records.</p><p><a href="https://ai.facebook.com/blog/looper-meta-ai-optimization-platform-for-engineers/"><strong>Looper</strong></a>. Meta developed the Looper project for similar reasons as Apple. Looper helps build and operationalize ML models to support real-time use cases such as prediction and classification. Based on high level specifications from the user, Looper recommends configurations of models, parameters, features, etc. based on prepared blueprints. As of April 2022 Looper hosted 700 AI models and generated 4 million AI outputs per second.</p><p><a href="https://ludwig-ai.github.io/ludwig-docs/0.5/"><strong>Ludwig</strong></a>. Uber’s Ludwig project recommends features and model outputs based on simple user commands, while also enabling users to enter additional specifications for feature processing, model training, etc. They can adapt and scale by adding models, metrics, and functions to a unified configuration system. The startup <a href="https://predibase.com/">Predibase</a> offers a Declarative ML system based on Ludwig.</p><p>Another innovation in this space is predictive query language (PQL), offered via Predibase, which provides SQL-like commands for managing the ML lifecycle. PQL helps data scientists or data analysts use a familiar declarative interface as they connect with data, then train, deploy, and monitor ML models.</p><h4>Declarative ML in Practice</h4><p>To understand what this looks like in practice, let’s examine how Declarative ML compares with traditional approaches to the three stages of the ML lifecycle: data and feature engineering, model development, and model production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/0*UxqfnTtj8uB8N-Do" /></figure><h4>Data and feature engineering</h4><p><strong>Traditional approach. </strong>In this stage, the data scientist and data engineer ingest and transform data inputs from various sources. They apply common labels to historical outcomes, perform exploratory data analysis, and derive the most telling data inputs — called features — that they think will best predict outcomes.</p><p><strong>Declarative ML approach</strong>. A Declarative ML system<strong> </strong>will select and assemble features based on a simple specification by the data scientist or even data analyst. For example, to detect fraud using features such as purchase description and transaction type, the user just needs to specify the data types of the features. In this case, the data type for purchase description is “text,” and for transaction type it’s “category.” The Declarative ML system then presents a suggested set of features and model framework based on the data types.</p><h4>Model development</h4><p><strong>Traditional approach. </strong>In this stage, the data scientist experiments with various ML techniques. These can range from simple linear regressions that define the relationship between features and outputs, to deep learning neural networks that use multiple models for use cases such as image classification or natural language processing. The data scientist spends time training, tuning, and re-tuning parameters to make accurate predictions. They also might need to synchronize elements such as the layered algorithms that feed one another in an artificial neural network for deep learning.</p><p><strong>Declarative ML approach. </strong>A Declarative ML system automates this stage in a big way. Based on a few basic commands from the user, the system creates individual models that perform the tasks listed above. The data scientist or analyst reviews each model and how it relates to the others, approves or adjusts each, and kicks off the automated training process. The system inspects the outputs and adjusts features, parameters, and models to make them more accurate. Users can oversee, approve, or override steps along the way.</p><p>Similar to AutoML, users can train models without worrying about the minutiae. But Declarative ML does enable users to improve their models by iterating in a transparent and flexible way. They can inspect and make specific changes to features, parameters, and models based on their skills.</p><h4>Model production</h4><p><strong>Traditional approach</strong>. Once the ML model meets the requirements, the ML engineer takes the trained model from the data scientist and implements it in production applications or workflows. The ML engineer monitors model operations, including its performance, accuracy, cost, and potential bias. They also collaborate with data stewards to govern the model by cataloging key metrics and intervening when necessary to replace or re-train models.<strong> </strong>This process can become complex given the varying infrastructure, maintenance, and alerting requirements of different models and use cases.</p><p><strong>Declarative ML approach</strong>. A well-designed Declarative ML system<strong> </strong>can assist this stage by abstracting away complex ML infrastructure while providing metrics for model monitoring. It helps identify drifting data inputs or model outputs; inspect features, parameters, and models — and recommends actions to optimize these elements or fix issues. For instance, Predibase provides “blue-green” updates that allow users to quickly deploy models to a high-throughput, low-latency endpoint.</p><h4>Conclusion</h4><p>In summary, Declarative ML:</p><ul><li>Has been adopted by Uber (Ludwig), Apple (Overton), and Meta (Looper).</li><li>Offers a higher abstraction layer that provides flexibility, automation, ease-of-use.</li><li>Can improve efficiency across the entire ML life-cycles of feature engineering, model development, and production.</li></ul><p>While we’re early in the adoption curve, Declarative ML has the potential to reduce the time, effort, and skills required to bring ML into production in a wide range of enterprise environments. If you’d like to see what Declarative ML looks like in practice, I’d recommend requesting a demo from <a href="https://predibase.com/">Predibase</a> to learn more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2de3c1c7de2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/predibase/declarative-machine-learning-and-the-future-of-data-science-2de3c1c7de2b">Declarative Machine Learning and the Future of Data Science</a> was originally published in <a href="https://medium.com/predibase">Predibase</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spotify Product Review]]></title>
            <link>https://medium.com/@abhaymalik14/spotify-product-review-e3210fff452e?source=rss-220a3b57bca8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3210fff452e</guid>
            <category><![CDATA[product]]></category>
            <category><![CDATA[music]]></category>
            <dc:creator><![CDATA[Abhay Malik]]></dc:creator>
            <pubDate>Mon, 07 Oct 2019 02:58:28 GMT</pubDate>
            <atom:updated>2019-10-07T03:01:40.746Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rTZqgRoTAsb9m_H0ym-IWw.png" /><figcaption>Spotify on all devices</figcaption></figure><p>I first tried Spotify a few years ago on a recommendation from a friend. At that time, the way I listened to music was fragmented at best. Whether it be classic rock in my iTunes Library, Hip Hop playlists on Youtube, or my favorite stations on Pandora, I basically decided what to listen to on a whim.</p><p>My initial reaction was that this was just an alternative to iTunes — were the switching costs really worth the hassle? As I slowly began to use it more, I unknowingly fell in love with it and soon Spotify became the unified music product I didn’t know I needed (and the first application that I ever paid a monthly subscription for!). As we’ll explore below, the magical ingredient to Spotify’s success is that innovation is in their DNA.</p><h3>What is Spotify?</h3><p>For those who may be unfamiliar, Spotify is a streaming service that allows listeners to listen to audio and podcasts using their mobile or web application. The overarching goal is to bring you the right music for every occasion. They have a free version which allows you the basic feature set of listening to songs (with ads) and making playlists. The premium subscription of $10/month allows you to have better quality audio and no advertisements. They have nearly 230 million Monthly Active Users(MAU) and were able to acquire their first million <strong>*paying*</strong> customers within roughly a year (yes, that’s extremely impressive!)</p><p>Clearly, they have created a product with product-market fit and a solidified user base. What makes Spotify stand out, however, is that they innovate in all aspects of their product leading to a delightful user experience. Curious what I mean? Let’s dig deeper!</p><h4><strong>Personalized for your Tastes</strong></h4><figure><img alt="Typical homepage" src="https://cdn-images-1.medium.com/max/750/1*1qSY_16nqBQLZxCz_oJXWg.jpeg" /><figcaption>Typical homepage</figcaption></figure><p>While all music applications let you listen to music, Spotify began to innovate in the space by taking personalization to the next level. By realizing that music is highly individual, they have taken a data-driven approach and applied machine learning techniques based on items such as acoustics features and groupings from existing playlists to continuously improve their algorithms. This has led to the creation of famous playlists like”Discover Weekly”, a playlist curated by Spotify and based on your listening history, with new tracks updated weekly. For millions of listeners like me, this playlist is the first thing to look forward to on a Monday morning and only increased my love with the platform. The best part is that the playlists get better and better as Spotify learns (or rather its algorithm “learn”) what type of music I, as a user, love. In contrast to the status quo, this personalization didn’t require conscious action on the users’ behalf, and moreover was a clever way to have users keep returning to the platform. This personalization has grown exponentially from a few custom playlists to now where a typical homepage shows carousels of playlists with customized themes such as “Keep the vibe going” and “More of what you like.”</p><h4>Designed for everyone</h4><p>Another issue with music platforms before Spotify is that they were designed with different segments in mind. Broadly speaking, iTunes was adopted by most Apple users, Pandora was designed for people who wanted to explore new songs within a particular genre, and Youtube was used by the younger generation. It obviously takes time to build out features for multiple customer segments, but today Spotify has playlists across more than 50 different genres and for all different activities including sports, sleep, focus, hanging out, and commuting. This has allowed for the word-of-mouth to contribute to much of Spotify’s growth as there’s something in the app for everybody. Personally, I have Spotify as my go-to app while running and studying while others I know use it on weekends or during events — it’s openness is what makes it wonderful. Keeping in line with their innovation, they have added new content such as podcasts and have started expanding internationally beyond just the Europe and the United States. Not to mention, even as mostly a software company, they quickly adopted the trend of smart speakers and have integrations with Amazon Alexa and Google Home to make sure Spotify is available anywhere you are. With this sort of non-stop growth, listeners can’t wait to hear what’s up next.</p><figure><img alt="With over 40 different genres, you’ll never run out of music to try" src="https://cdn-images-1.medium.com/max/746/1*BF8dF2gXwu_qxvemOhNWPA.png" /><figcaption>With over 40 different genres, you’ll never run out of music to try</figcaption></figure><h4>The Beauty is in the Details</h4><p>Spotify has innovated on their product by imagining what the ideal music app would look like and designing it from the ground up. If you’re a Spotify user, you’re probably familiar with the dark color theme throughout the app (if not, see screenshots to follow along). What you may not have recognized was that this is designed with a specific purpose. In contrast with apps like iTunes with a light theme, Spotify’s goal with a dark theme was to transform music into an experience. Have you noticed the subtle spotlight in the top of the app? How about the rectangles moving like a curtain across the stage when you select a playlist? My guess is that this was a purposeful design choice to make users feel in a theater with Spotify being the main show. In a conversation with Shiva Rajaraman, a former VP Product at Spotify, my hypothesis about this “show-like” effect was confirmed.</p><p>Ultimately, this “show-like” design leads Spotify to act like your guide into the world of music. By combining this with a great practice of user empathy of music being intimately tied with emotions, Spotify has effectively turned into a way to manifest your emotions. When you’re excited, you’re most likely to listen to upbeat music while if you’re sad it wouldn’t be surprising to listen to slower-tempo music. Together with the personalization provided for the user, the user now subconsciously feels that this product caters to their emotions and is almost a natural extension of themselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*uc-i-mqNQSWjhngLVCGw8Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*i7XJxaZ59lGNQVAfLF1mbA.png" /><figcaption>Home and Search Screen. Note the dark theme &amp; spotlight.</figcaption></figure><p>The beauty lies in the details.</p><h3>Treating Business as a Product</h3><p>As I mentioned before, Spotify has this innovation in its DNA and didn’t hold back on the business side, treating it just as they would a product. In particular, it’s easy to look in hindsight and say that of course Spotify made the right decisions as they are obvious. I would argue that Spotify made the calculated decisions that the market wanted making them seem ‘obvious’ in today’s world. From switching from pay-per-song to pay-for-service, they effectively eliminated the barrier to quantity of songs one can listen to, thereby unleashing the gates on music availability. They iterated to find exactly the right feature set to balance growth with monetization of the product, so that they would make money of ads for free users and recurring revenue from subscription-based users all while gaining users.</p><p>Likewise, their product decisions such as the powerful recommendation algorithm didn’t come from wishful thinking. Taking a look at their history, they made calculated bets on what the future would (and more importantly, should) look like. For instance, they acquired Tunigo for their data-driven genres and pre-built playlists for certain occasions to venture into the recommendations. Once they started seeing success in that area, they doubled down acquiring Echonest to build state-of-the-art machine learning algorithms since at this point, they had collected enormous amounts of data on users’ preferences.</p><p>Ultimately, what makes people love Spotify is that it’s perfectly crafted just for them. <strong>At scale, that is an enormous challenge </strong>that can only be tackled successfully if they have innovation in their DNA. Their inability to remain content with the status quo of what a product looks like has led them to create what I would claim is one of the most successful products of our generation. Their first-principles thinking has led competitors like Apple to launch competitors such as Apple Music to catch up, but Spotify continues to grow with their creativity.</p><h3>Recommendations for Future Improvements</h3><p>While this is all good and well, there must be something that could be improved on Spotify, right? Of course, there’s no such thing as market saturation — that’s just a lack of innovation on what can be improved. In Spotify’s case, they are just getting started with audio, but the entire media market is mostly untapped and presents many opportunities for the product to continue to expand.</p><p>Here are a few ideas that Spotify could implement in the future along with the initial hypotheses that inspired them. As a side note, there are a lot of customer conversations/market research/product roadmap discussions that would have to take place before diving into the implementation of any of the following features.</p><p><strong>Active Social Features:</strong> So far, Spotify has introduced collaborative playlists and the option to see what your friends are listening to (mainly through a Facebook integration). However, there seems to be room for expansion on this front. As an example, users could have their own publish and subscribe channels, instead of simply public playlists. The particular use case I’m imagining is within social groups, Spotify could automatically share top played/liked songs per month with everyone subscribed. In other words, this would be Discover Weekly, but curated from friends’ listening behaviors as well.</p><p><strong>Hypothesis:</strong> All generations are becoming more and more socially connected through technology and Spotify has room to grow in this area. This particular option allows for increased serendipitous social groups to form based on similar musical taste. This would help increase retention and loyalty of Spotify’s users as other audio streaming platforms begin catching up.</p><p><strong>Interaction with Artists:</strong> Spotify relies heavily on the artists to maintain the supply of content to keep users happy. In fact, Spotify says it pays 70% of its gross revenue in royalties to artists. As evidenced by the popularity of concerts and Genius (the lyrics prediction platform), I believe there is a segment of current/would-be Spotify users that would appreciate interacting with particular artists. Currently, Spotify shows where certain artists are going on tour and provides a bio about them. This feature could take the form of video updates on the Artist Page about their album/tour/concerts/personal lives or a Q/A page where artists could answer top questions posed by listeners.</p><p><strong>Hypothesis: </strong>By making the interaction between listeners and artists dynamic, Spotify would be tightening the feedback loop between both sides of their “marketplace”, thereby solidifying their core business of making artists enjoy being on the platform and making listeners have access to a vast collection.</p><p><strong>Explore Button:</strong> Spotify has seen massive success from its ML algorithms and they have billions of data points on the preferences of users. Currently, users can play the “Radio” of a certain artist/genre to listen to songs by that artist or those of a similar genre. However, Spotify can take this a step further and simply have a universal explore button on the main page. This will take the pressure off of deciding what to choose and allow users to simply skip if it’s not their type. This will help even the distribution of music listens as Spotify and will allow users to explore even more songs. It would be similar to Pandora, but with all stations combined into one. They could also use other data such as geo-location, and time of day to cater the songs accordingly.</p><p><strong>Hypothesis:</strong> Many users were attracted to Spotify initially because of catered playlists based on their tastes. Spotify can come full circle by flipping the responsibility of finding stations away from the user. By unifying the functionality into a single button, it becomes *even* easier to open Spotify and start listening to music. In essence, Spotify would become a full recommendation engine for those interested and take the thinking out of listening. Note: This idea is bold and would definitely require more research to see how feasible and desirable it is. However, the upside potential is nearly unbounded.</p><p>Well, that’s it for today! I hope you enjoyed this product review and have a better sense of what makes Spotify so unique. Its innovation across the board has led to not just a delightful user experience, but redefining the entire music industry. That, in short, is the power of an exceptional product.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3210fff452e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>