<?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 Kunal Banerjee on Medium]]></title>
        <description><![CDATA[Stories by Kunal Banerjee on Medium]]></description>
        <link>https://medium.com/@kunal.banerjee.cse?source=rss-aea2b1d1801------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*T9XnoLY9CLcTb193qNutmQ.jpeg</url>
            <title>Stories by Kunal Banerjee on Medium</title>
            <link>https://medium.com/@kunal.banerjee.cse?source=rss-aea2b1d1801------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:48:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kunal.banerjee.cse/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[Handling Class Imbalance — Will your approach differ depending on the level of skewness in the data?]]></title>
            <link>https://medium.com/@kunal.banerjee.cse/handling-class-imbalance-will-your-approach-differ-depending-on-the-level-of-skewness-in-the-data-a3582b221773?source=rss-aea2b1d1801------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3582b221773</guid>
            <category><![CDATA[data-science-training]]></category>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[class-imbalance]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[interview-questions]]></category>
            <dc:creator><![CDATA[Kunal Banerjee]]></dc:creator>
            <pubDate>Fri, 24 Mar 2023 11:19:58 GMT</pubDate>
            <atom:updated>2023-03-24T11:19:58.978Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Handling Class Imbalance — Will your approach differ depending on the level of skewness in the data?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*wVUe89DGlwGVc1ZScMkzdw.png" /></figure><p><em>[This blog tries to touch upon a well-known phenomenon: class imbalance in machine learning whose nuances, unfortunately, does not seem to be well understood by the data science candidates that I have interviewed. Here I try to explain the subtleties on how to adopt your approach for handling class imbalance based on the level of skewness in the data. I also elucidate why this is an important ML question that helps me shortlist a candidate. Additionally, the blog contains observations from my personal experience in the field of data science that may not always match with typical textbook answers.]</em></p><p>Suppose you want to build a classifier for automobiles. For this purpose, you go down to a sidewalk beside a highway and start taking pictures of the cars that drive past you. You come back home in the evening and label your pictures. You may repeat this process for a few days or a few weeks and in the end, you should have a sizeable corpus of automobile images with their labels. It is expected that your corpus will have a lot more pictures of the cars manufactured by Honda than those by Lamborghini (which are a lot costlier and hence can be afforded by a few people). This disproportion in the number of samples present in the training set leads to <strong>class imbalance</strong>. Note that class imbalance is a widely occurring phenomenon because it is rarely the case that the samples belonging to the classes that one may be interested in appear in equal frequency. Furthermore, let’s assume that in our example there are only two car manufacturers: Honda and Lamborghini; in such a case, Honda will be referred to as the <strong>majority class</strong> (since majority of the samples belong to this class), whereas Lamborghini will be referred to as the <strong>minority class</strong>.</p><h3><strong>Case 1:1</strong></h3><p>Before diving into the intricacies of class imbalance, we will briefly cover the case where there is no class imbalance, i.e., the ratio of the majority class to the minority class is 1:1. (To be more specific, since both the classes appear in equal frequency, one cannot be termed as the majority class or as the minority over the other.) Handling this situation does not require any pre-processing to balance the classes and hence I shall not be spending time on this case any further. Interested candidates may look into different ML models, such as, logistic regression, decision tree, K-nearest neighbors, or neural networks to tackle (vanilla) classification.</p><h3><strong>Case 10:1</strong></h3><p>Things start getting interesting here onwards. In this case, the ratio of the majority class to the minority class is 10:1.</p><p><strong><em>Firstly, why does class imbalance create a problem?</em><br></strong>A primary reason at the root of the problem is actually our choice of the metric to measure the model’s performance: <em>accuracy.<br></em>Let’s say our model always predicts that the sample belongs to the majority class (i.e., in reality, it has learnt nothing and gives a constant response); in this (worst) case, the model’s performance will still be (10/11 * 100) = 91%, which may seem quite high to a novice. Moreover, a superior model’s performance may not get highlighted in the presence of a high baseline of 91% accuracy because there is not much room to improve upon to begin with — more on this later!</p><p><strong><em>So, how to handle class imbalance in such a scenario?</em><br></strong>The popular answers are <em>“under-sample from the majority class”</em> or <em>“over-sample from the minority class”</em>. While this is a correct textbook answer, one has to wonder whether these two approaches lead to identical performance in practice or not.</p><p><strong><em>Under-sampling or over-sampling — do you have a preference?</em><br></strong>Prima facie, these two approaches should lead to identical performance. However, based on my professional experience, I prefer <em>over-sampling of the minority class</em> over <em>under-sampling of the majority class</em>. The reason being while over-sampling does not skip samples present in your training set, under-sampling does. In my experience, randomly selecting samples from the majority class at times misses important samples which can be corner cases that one should not have omitted. Accordingly, over-sampling from the minority class has proved to be a better strategy than the other alternate.<br>In the interviews for junior roles, the candidates rarely seem to differentiate between the under-sampling and the over-sampling approaches; however, the candidates for senior roles often corroborate with my observations and show preference for the over-sampling strategy.</p><p><strong><em>Is there any other way to handle class imbalance? (Hint: Configure class weights)</em><br></strong>The scikit-learn models come with the parameter <em>class_weight</em> and if you set its value to <em>“balanced” </em>then it will assign weights which are inversely proportional to the number of samples in each class (exact formula is given <a href="https://scikit-learn.org/stable/modules/generated/sklearn.utils.class_weight.compute_class_weight.html">here</a>) and thus should tackle the class imbalance in the training set.<br>While this is a perfectly good answer, in my experience, class_weight has never helped me gain any significant boost in a model’s performance (although, in theory, it should have).</p><p><strong><em>How will you compare the performance of two models in the presence of class imbalance (given that the room for improvement may be minimal to begin with)?</em><br></strong>Here I am alluding to the fact that the worst model that always predicts the majority class has an accuracy of 91%. Therefore, a model that has an accuracy of 94%, say, may be much better than this worst model; however, its superiority may not be adequately reflected by the difference of their accuracy scores.<br>To tackle this problem, some candidates have pointed out that we can have <em>equal number of samples from the majority and the minority classes in the validation set</em>. This is an important point to note — the ratio of the samples from the different classes need NOT be identical in the training and the validation sets. In other words, although having the samples proportionate in the training and the validation sets is the common practice, it is not mandatory. With equal number of samples in the validation set, the worst classifier which gives constant output will have an accuracy of 50% and if the other classifier is indeed much better, then its accuracy should be considerably higher with this modified validation set.</p><p><strong><em>Can we have made a better choice for the metric to measure a model’s performance in the presence of class imbalance?</em><br></strong>Note that having proportionate samples in the training and the validation sets has its advantages. To have an equal split in the validation set, you have to either put very less number of samples of the majority class in the validation set, or worse you have to put very less number of samples of the minority class in the training set. Note that all these complications are actually arising because of our poor choice of the metric to measure the model’s performance: <em>accuracy</em>. A better choice would have been <em>balanced accuracy</em>.<br>Most of the candidates that I have interviewed don’t seem to be aware of this metric although class imbalance is prevalent in the world. (Sigh!) The few that knew defined balanced accuracy as “the arithmetic mean of sensitivity and specificity”. This definition is correct; however, it is applicable only when the number of classes is two. Somehow, rarely anyone could answer what will be the formula for balanced accuracy in case of three or more classes. So, here it is:</p><figure><img alt="Formula for balanced accuracy" src="https://cdn-images-1.medium.com/max/390/1*7OT9fqkr9wJQ4oeYLJu0yA.png" /><figcaption>Formula for balanced accuracy</figcaption></figure><p>In words, balanced accuracy is the arithmetic mean of the sum of all individual recall values.</p><p><strong><em>Is Precision, Recall or F1-score a better metric than accuracy?</em><br></strong>I am including this question in this blog because when asked for an alternate to accuracy, candidates generally mention one or all of these three metrics. And the answer is: it depends! These metrics may shed more light than accuracy in case of class imbalance; however, one needs to articulate such scenarios. Of course, none of these is as good as balanced accuracy which is specifically designed to handle class imbalance. It may be noteworthy that whenever someone mentions any of these three metrics, I ask: “So, between the majority and the minority class, which one should you consider as the positive class?” (Because the results will differ based on your choice). And the correct answer is the “<em>minority class</em>”. ;-)</p><p><strong><em>What are some additional follow-up questions that I typically ask?</em><br></strong>What are the different types of over-sampling strategies you may use?<br>What are the basic conditions that should ideally hold to apply SMOTE for over-sampling?<br>Suppose you have 5 classes in the ratio 10:1:1:1:1, what will you do?<br>Now suppose you have 5 classes in the ratio 10:10:10:10:1, will your strategy differ from the previous one?<br>In either of the two previous cases, will you consider building a single classifier or go for a hierarchical classifier? What are the potential pros and cons for these two approaches?</p><h3><strong>Case 100:1</strong></h3><p>Things get a lot more interesting at this stage. Usually, neither over-sampling nor under-sampling works well at this stage. Moreover, balanced accuracy can help capture a model’s performance but cannot help the model in learning how to classify better. <em>So, what to do in this case?</em><br>It is worth noting that if the occurrence of one class is so highly skewed compared to the other, then the minority class can perhaps be considered as an <em>anomaly</em>. Voila! This observation allows you to apply clustering-based techniques to differentiate the two classes; the literature on anomaly detection comes handy in this case. To underline, we may transition from the realm of supervised machine learning to the realm of unsupervised (semi-supervised) machine learning when the class imbalance becomes highly skewed.</p><p>The cases 1000:1 or 10000:1 don’t add more interesting insights. Furthermore, the interviews come with hard time constraints, and hence I generally leave this line of question-answering with the candidate at this stage.</p><p><strong><em>What are some additional follow-up questions that I typically ask?</em><br></strong>Suppose you have 5 classes in the ratio 100:1:1:1:1, what will you do?<br>Now suppose you have 5 classes in the ratio 100:100:100:100:1, will your strategy differ from the previous one?<br>(Note that your answer may not be the same as that of Case 10:1.)</p><h3><strong>Why is handling class imbalance an important question for me to shortlist candidates?</strong></h3><p>Firstly, classification (and binary classification specifically) is often the first ML task that one undertakes, and class imbalance is a common challenge that one faces in this task. A candidate whose understanding of this basic subject is not strong is typically not a good choice for a data science role.<br>Secondly, I have to regularly work with datasets having class imbalance and I expect the newly hired colleagues (especially for my team) to work on similar problems.<br>Thirdly, and perhaps most importantly, it helps me evaluate whether a candidate can think out-of-the-box or not. When we talk about the cases 1:1 and 10:1, the candidates usually get conditioned to think about the task as a supervised problem and most candidates cannot switch their thinking process and approach the case 100:1 from a different perspective. Those who can — I strongly recommend them for subsequent hiring rounds usually.</p><p><strong><em>Why is judging whether one can think out-of-the-box so important?</em><br></strong>The simple reason behind this is that in my job, I am asked to solve a real-world problem and not an ML problem. Most recent graduates and ML competition enthusiasts have always solved machine learning problems with clearly defined asks, metrics, and acceptable thresholds. In practice, many of the times, nobody defines these for you. Also, the libraries, tools and frameworks for ML have advanced a lot; AutoML (you can read my <a href="https://medium.com/walmartglobaltech/walts-walmart-automl-libraries-tools-and-services-936c73e5ec67">blog</a> and <a href="https://ieeexplore.ieee.org/document/10011477">paper</a> on this subject) may solve the problem for you if you are able to articulate it properly in terms of an ML task and a suitable metric. So, I try to emphasize on hiring candidates who have the quality to investigate a problem from different perspectives and frame it appropriately to get the optimal solution.</p><h3><strong>Conclusion</strong></h3><p>Handling class imbalance is an important problem — a data scientist may need to adopt different strategies to tackle this problem based on the level of skewness in the data. I hope the readers learnt something useful from this blog. Please let me know if you agree with my observations that sometimes do not match with the textbook answers. Constructive criticism is always welcome! Also, I shall love to know how you will approach some of the follow up questions that I have mentioned here — may be your solutions are better than what I have in mind. Adios!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3582b221773" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WALTS: Walmart AutoML Libraries, Tools and Services]]></title>
            <link>https://medium.com/walmartglobaltech/walts-walmart-automl-libraries-tools-and-services-936c73e5ec67?source=rss-aea2b1d1801------2</link>
            <guid isPermaLink="false">https://medium.com/p/936c73e5ec67</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[automl]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Kunal Banerjee]]></dc:creator>
            <pubDate>Mon, 07 Nov 2022 15:02:21 GMT</pubDate>
            <atom:updated>2022-11-07T15:02:21.266Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L4L8xhteGofxzd5o5M7urg.png" /><figcaption>Fig. 1: Overview of an AutoML system.</figcaption></figure><p>Authors: <a href="https://kunalbanerjee.github.io/">Kunal Banerjee</a>, <a href="https://www.linkedin.com/in/rahul-bajaj-b70713136/">Rahul Bajaj</a>, <a href="https://www.linkedin.com/in/sachinparmar/">Sachin Parmar</a></p><p>Automated Machine Learning (AutoML) is an upcoming field in machine learning (ML) that searches the candidate model space for a given task, dataset and an evaluation metric and returns the best performing model on the supplied dataset as per the given metric. AutoML not only reduces the manpower and expertise needed to develop ML models but also decreases the time-to-market for ML models substantially. We have designed an enterprise-scale AutoML framework called WALTS to meet the rising demand of employing ML in retail or any other business of interest, and thus help democratize ML within our organization. In this blog, we elaborate on how we explore models from a pool of candidates and underline how it has helped us with a business use-case.</p><p>To give an overview of the AutoML process, its current landscape, and showcase the benefits of WALTS, we will be covering:<br>· What is AutoML?<br>· What are the advantages of AutoML?<br>· Who are the current players in this field?<br>· What is WALTS?<br>· What are the advantages of WALTS?<br>· What is the architectural overview of WALTS?<br>· How can WALTS help an organization?</p><h4><strong>What is AutoML?</strong></h4><p>AutoML takes the pressure off from its users for designing an ML model for her dataset by coming up with a suitable model on its own. As shown in the figure at the top, AutoML typically takes three inputs from the user: (i) a dataset, (ii) the ML task that is to be performed on this dataset, and (iii) the metric that is to be used to determine which model has performed best. For example, the dataset can be <em>ImageNet</em>, the task can be <em>image classification</em> and the metric can be <em>accuracy</em>.</p><p>Once given the input, the AutoML tool will explore various ML algorithms — these algorithms may range from classic ones (e.g., linear regression, support vector machine, decision tree) to advanced neural networks. At the end of the exploration, the tool will report the model which performed the best according to the user-supplied metric. This algorithm exploration part, however, is kept as a black box in most of the current AutoML tools.</p><h4><strong>What are the advantages of AutoML?</strong></h4><p>There are multiple benefits of adopting AutoML as mentioned below.</p><p>1. <strong>Democratizing AI:</strong> This is perhaps the biggest contribution of AutoML and the primary motivation for conceptualizing it. <em>Now you don’t need to be an ML expert to use ML!</em> With the help of AutoML, anyone can get an ML model that suits their needs without investing into elaborate model development process.</p><p>2. <strong>Reduced Time-to-Market:</strong> This is the second advantage that AutoML brings as described below.</p><p>a. <strong>Less time spent in development: </strong>AutoML relieves its users from the pain of investigating individual ML models and later doing a comparative analysis to pick the best one. Moreover, tuning the hyper-parameters of an ML model is a crucial task to extract the best performance out of it — typically, a lot of time is spent by human model developers in this step; AutoML additionally takes care of tuning the hyper-parameters for each of the model it explores.</p><p>b. <strong>Less time spent in fixing bugs in the code:</strong> Since the models are developed in an automated fashion in the case of AutoML, the chances of introducing bugs in the code is much less compared to human developed models. Consequently, less time is spent in bug fixing and testing the codes.</p><p>3. <strong>Realizing Operational Excellence: </strong>Adopting AutoML may have the following additional positive impacts with respect to operational excellence.</p><p>a. <strong>AutoML injects more standardization into the generation of models:</strong> As mentioned above, since all the model generations in an AutoML follow a standardized process, it is easier to ensure/enforce some policies that an industry may want.</p><p>b. <strong>Models may be generated keeping scaling in mind:</strong> Some of the AutoML tools may be geared with the techniques to develop models which may be deployed at scale. A data scientist, on the other hand, may have to spend additional effort for scaling a model post its development.</p><p>4. <strong>Reduced Cost: </strong>Investing in AutoML may reduce the overall cost of operations for an industry as mentioned below:</p><p>a. <strong>Less head count needed:</strong> AutoML may alleviate the need for hiring data scientists and data engineers to a great extent for industries. Moreover, data scientists have been notorious for being difficult to retain; AutoML can definitely help solve this pain point [1].</p><p>b. <strong>An efficient model leads to less inference cost: </strong>The models developed by AutoML are often more efficient (being built for scale and optimized for underlying hardware) than those developed by citizen data scientists. An efficient model will invariably lead to less inference cost and thus contribute to the company’s revenues.</p><h4><strong>Who are the current players in this field?</strong></h4><p>Auto-WEKA [2] that tried to simultaneously search for the optimal learning algorithm along with best performing hyper-parameter values is considered as the first AutoML tool. Its scope, however, was limited to only classification tasks, and the models and the datasets explored were rather small by today’s comparison. However, since then a lot of well-established companies and startups have ventured into this field and made a lot of progress in terms of ML tasks, models, hyper-parameter tuning and more. Some of the big players include Google, Microsoft, Dataiku, DataRobot and H2O.</p><h4><strong>What is WALTS?</strong></h4><p>WALTS is an in-house framework of Walmart which expands to “Walmart AutoML Libraries, Tools and Services”. Its algorithm is given below; note that we use Optuna [7] for hyper-parameter optimization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dvjbAoqBuCiRhhusCRco3A.png" /><figcaption>Fig 2. WALTS AutoML algorithm.</figcaption></figure><p>To understand what the salient features of WALTS are and why these differentiated features would be worth building for any organization, we need to delve into the following question.</p><h4><strong>What are the advantages of WALTS?</strong></h4><p>It is fair to ask that given there are already so many AutoML tools, does it make sense to create yet another one. We have looked into some of these off-the-shelf AutoML tools and found some gaps which we wanted to fill with WALTS. Below we list the advantages of WALTS over other similar tools.</p><p><strong>1. Customizability:</strong></p><p>Customizability is the biggest benefit that WALTS brings. To illustrate the point, let us look at the example below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6WsUTaB0Obz9tY239Ct0Mw.png" /><figcaption>Fig. 3: An example to illustrate customizabitlity of metrics in WALTS.</figcaption></figure><p>Suppose there is a collection of balls where 80% of the balls are red in color while the remaining 20% is blue. Now consider there is a model which ALWAYS predicts that the color of ball selected out this collection is red. Clearly, this model will have 80% accuracy; however, it’s also obvious that this model has learnt nothing because it makes the same prediction every time blindly. Nevertheless, a user may be tempted to choose this model looking at the accuracy score of 80%, which may seem decent to an inexperienced audience. However, such scenarios of taking erroneous decisions may be avoided by choosing a more appropriate metric. In cases where there is a class imbalance (for example, in this case the number of red balls is much more than that of blue balls), Balanced Accuracy is a better metric choice than the more common one: Accuracy. Balanced Accuracy is defined as the sum of the recall values of each class divided by the total number of classes. In this case, the recall value for red balls is 1 (because we got all the predictions for red balls correct), whereas the recall value for blue is 0 (because we got none of the predictions for blue balls correct), and thus Balanced Accuracy in this case is (1+0)/2 = 0.5 (or 50%). Obviously, 50% is not as good as 80%, and hence a user is less likely to pick this model.</p><p>Currently, all off-the-shelf AutoML services that we explored provide a fixed set of metrics with no provision to extend this set by the users. Some of these, at times, can even be misleading, e.g., accuracy when the classes are imbalanced as explained above. Based on customer requirements, we may easily introduce new metrics, such as balanced accuracy, which is better suited for imbalanced classes.</p><p><strong>2. Transparency:</strong></p><p>Transparency is the second most important benefit that WALTS brings. We again illustrate the point with the following example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*AR9yjKIvPIybWnEuNVPVQw.png" /><figcaption>Fig. 4: An example to illustrate transparency offered by WALTS.</figcaption></figure><p>Let us consider the case where we provide a dataset to an AutoML tool, and we are interested in the classification task and choose accuracy as the metric to decide the winning model. Also, let the best performing ML model gives an accuracy of 82% while taking 100ms for each prediction. The second-best ML model falls short by 2% in accuracy in comparison with the best model, but it takes half the time i.e., 50ms, for each prediction.</p><p><em>Now, what if there are some hard latency requirements for the client?</em></p><p>In such cases, the client may be happy with the second-best model if it fits her latency needs.</p><p>Typically, the AutoML frameworks report only the winning model. WALTS, in contrast, provides details of all the explored models and their performance. Thus, this kind of support where the client may be willing to make a trade-off between different performance metrics of a model, can only be given by WALTS.</p><p><strong>3. Low Precision Models:</strong></p><p>Some of the readers may not be familiar with the term “low precision models”, hence we explain this term with the following illustration borrowed from <a href="https://en.wikipedia.org/wiki/Bfloat16_floating-point_format">Wikipedia</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xrP8K7vETIjVcpe_ji_-Hw.png" /><figcaption>Fig. 5: Difference between IEEE single-precision (FP32) and half-precision (FP16) datatypes.</figcaption></figure><p>Conventionally, when we train an ML model, the datatype that we use to represent real values is “float” — according to IEEE754 standard, we use 32 bits to capture a floating-point number; these 32 bits are distributed into sign (1 bit), exponent (8 bits) and fraction (23 bits). For convenience, IEEE754 single-precision datatype is abbreviated as FP32.</p><p>By low precision datatype, we mean any datatype that uses less than 32 bits to represent a real number, and by low precision model, we mean any model that uses a low precision datatype to compute and store its parameters. IEEE754 half-precision datatype (FP16) uses 16 bits to represent a real number as shown in the figure above. The idea of using low precision models was proposed in [3].</p><p>Using low precision models leads to reduced memory footprint and reduced latency. For example, in Nvidia V100, peak FLOPS is 15 TF whereas peak OPS (in FP16) is 120 TF [4] — thus there is a scope to expedite your workload by 8x if one uses FP16 instead of FP32; similarly, in Nvidia A100, peak FLOPS is 19.5 TF whereas peak OPS (in FP16) is 312 TF [5] — thus the scope has increased to 32x for this hardware upon adopting FP16. It may be noted that there are other low precision datatypes in A100, e.g., BFLOAT16 [6], which may provide equal or even more speed ups. From our experience, other AutoML frameworks produce models with FP32 datatype only, and one needs a separate tool, e.g., TensorFlow Lite, to do the subsequent conversion to low precision. On the other hand, WALTS produces low precision models based on the available hardware, e.g., models with FP16 datatype if Nvidia V100 is provided.</p><p><strong>4. Scope for Unique Enhancements:</strong></p><p>WALTS being an in-house framework, we can easily extend it to include some unique enhancements. One such example is described below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qqs7ljOUONGI3GLRBb5iZQ.png" /><figcaption>Fig. 6: An example to illustrate how sparsity may be handled in WALTS.</figcaption></figure><p>It is quite common to come across tabular datasets with missing data. One approach to handle such datasets is to drop the rows with missing data and then train a model on it; another approach can be to intelligently impute the missing data with probable values and then train a model on it. The latter approach may be preferred if the level of sparsity in the data is considerable. We found that the AutoML tools favor dropping rows with missing entries — we intend to alleviate this shortcoming with our intelligent data imputation algorithm. There are some other unique enhancements that we are exploring such as label correction in the presence of noisy data, to make WALTS a superior offering.</p><p><strong>5. Data Sensitivity:</strong></p><p>To comply with government policies, a company may be prevented from uploading sensitive data to the cloud or sharing it with third-party vendors. To develop ML model for such datasets, we may use WALTS running on on-premises devices.</p><p><strong>6. Reduced Time-to-Explore:</strong></p><p>Commercial AutoML tool’s complex search algorithms may find ad-hoc architectures at the cost of trying out a combinatorial number of different parameters (layers, connections, etc.). Contrarily, WALTS follows a simple policy of exploring only a pre-defined set of models which may be less time consuming. Moreover, the models explored by WALTS being already popular, the clients may be more open to adopting these.</p><p><strong>7. Cost Efficiency:</strong></p><p>The commercial AutoML tools have the concept of minimum charges although you may be using their service for a few minutes. We, however, do not plan to impose minimum charges for WALTS and follow a pay-per-use policy.</p><h4><strong>What is the architectural overview of WALTS?</strong></h4><p>The architectural overview of WALTS is given below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*K8KMsZPv2BHHKhaHsU9Wmg.png" /><figcaption>Fig. 7: Architectural overview of WALTS.</figcaption></figure><p>As shown in this figure, the training jobs are triggered via the user interface of WALTS Services that takes the usual parameters — an ML task to accomplish, a dataset and a metric, as inputs. Additionally, we supply a predetermined configuration (which may be customized by the expert users) that includes the maximum number of epochs to train for, the compute power (i.e., the number of CPUs, GPUs), output file location, etc. To achieve reliability, efficiency, and scalability, we are using Kubernetes [8] and Airflow [9] configured with Kubernetes executor. Every experiment in a training job runs as a containerized application on Kubernetes pod as an Airflow worker. The training requests with parameters (e.g., task, models to explore) are converted into an Airflow pipeline (also referred to as Directed Acyclic Graph or DAG) where the nodes correspond to the experiments. Each of these nodes are configured with a custom Git operator which sets up the container by checking out the predefined training code with AutoML algorithms from the Git and installs the libraries required to execute the code. During execution, it runs several algorithms in parallel depending on the availability of resources. The execution of each experiment happens inside a pod that follows a predefined configuration. These Kubernetes pods get created on the fly and this gives us the capability to handle burstable workloads. As the system is multi-tenant and there may be jobs running concurrently, there can be cases where a single job/tenant may try to over-consume the resources. To avoid such scenarios, the system needs to put an upper threshold on the consumption of resources by a tenant. The resource limit per tenant is controlled using the namespace level ResourceQuota in Kubernetes. In case of resource unavailability for a training job for a tenant, the jobs will be queued and will start execution as soon as the resources get added for the tenant or already running experiments complete their execution and release the resources. The Kubernetes infrastructure is shared by all the tenants, and we rely on the Kubernetes cluster auto-scaler for scalability. Sometimes the system experiences a greater load, in such cases, Kubernetes can automatically increase the cluster nodes and deploy pods as necessary to handle the increased demand. When the load decreases, Kubernetes can then reduce the nodes and pods dynamically. Once an experiment is done, all the performance logs are saved in Azure SQL database which can be easily retrieved through queries submitted by the users — this is typically done by them to compare the metrics of various experiments; other artifacts such as models are stored to GCS buckets in Google Cloud Platform. The storage is managed by MLflow [10] that also acts as a bridge for the user to retrieve the desired logs and artifacts.</p><h4><strong>How can WALTS help an organization?</strong></h4><p>WALTS can be used to explore and recommend a suitable ML model for many problems within an organization — let it be a classification or regression or entity recognition problem; furthermore, the data may be structured (tabular) or unstructured (image, text). In Walmart, for example, it has been used for spam filtering and dispute categorization for our sellers among others. Our client teams have acknowledged the following contributions that WALTS has made in their operations:<br>· Improved productivity and increased scalability.<br>· Efficient resources and infrastructure management.<br>· Faster experimentation and shorter go-to-market time.<br>· Bridging the skill gaps and reducing the scope of error in applying machine learning algorithms.</p><p>In fact, the development time was reduced by up to 2 months for some teams. A detailed experiment where we compared nine models developed by WALTS and those exact models coded by human experts, revealed that the minimum reduction in development time for a given model was 7.4% while the maximum reduction was 15.1%; the average reduction across all models was 10.4%. We expect similar savings in development time and enhanced performance for other use-cases as well.</p><h4><strong>Conclusion</strong></h4><p>For Walmart, there is a huge potential to provide superior customer experience and enhance our operations by leveraging the power of machine learning. AutoML can help a lot in handling the exponential growth in data with minimal intervention from humans. WALTS aims to be a one-stop shop for training popular machine learning models to perform generic tasks such as classification, regression, entity recognition, etc. We plan to add more tasks and models in future based on our user demands. Instead of trying to reinvent the wheel, the teams can leverage WALTS to build fast prototypes with minimal effort. It will help bridge the skill gap, reduce bugs/errors, and save resource/infrastructure costs. WALTS uses state-of-the-art optimization to train the models faster — thereby reducing go-to-market time. We are already seeing its benefits for various Walmart business use-cases such as spam detection and dispute categorization for Walmart sellers and hope to see its further growth with time.</p><h4><strong>References:</strong></h4><p>[1] Dataiku, “The importance of AutoML for augmented analytics,” Tech. Rep., 2020. Available: <a href="https://pages.dataiku.com/hubfs/PDF/Whitepaper/Importance_of_AutoML-for-Augmented-Analytics.pdf">https://pages.dataiku.com/hubfs/PDF/Whitepaper/Importance_of_AutoML-for-Augmented-Analytics.pdf</a></p><p>[2] C. Thornton, F. Hutter, H. H. Hoos, and K. Leyton-Brown, “Auto- WEKA: Combined selection and hyperparameter optimization of classification algorithms,” in KDD, 2013, pp. 847–855.</p><p>[3] P. Micikevicius, S. Narang, J. Alben, G. F. Diamos, E. Elsen, D. García, B. Ginsburg, M. Houston, O. Kuchaiev, G. Venkatesh, H. Wu, “Mixed Precision Training,” in ICLR, 2018.</p><p>[4] Nvidia, “Nvidia Tesla V100 GPU Accelerator,” 2018. Available: <a href="https://images.nvidia.com/content/technologies/volta/pdf/tesla-volta-v100-datasheet-letter-fnl-web.pdf">https://images.nvidia.com/content/technologies/volta/pdf/tesla-volta-v100-datasheet-letter-fnl-web.pdf</a></p><p>[5] Nvidia, “Nvidia A100 Tensor Core GPU,” 2020. Available: <a href="https://www.nvidia.com/content/dam/en-zz/Solutions/Data-Center/a100/pdf/nvidia-a100-datasheet.pdf">https://www.nvidia.com/content/dam/en-zz/Solutions/Data-Center/a100/pdf/nvidia-a100-datasheet.pdf</a></p><p>[6] D. D. Kalamkar, D. Mudigere, N. Mellempudi, D. Das, K. Banerjee, S. Avancha, D. T. Vooturi, N. Jammalamadaka, J. Huang, H. Yuen, J. Yang, J. Park, A. Heinecke, E. Georganas, S. Srinivasan, A. Kundu, M. Smelyanskiy, B. Kaul, P. Dubey, “A Study of BFLOAT16 for Deep Learning Training,” in CoRR abs/1905.12322, 2019.</p><p>[7] T. Akiba, S. Sano, T. Yanase, T. Ohta, and M. Koyama, “Optuna: A next- generation hyperparameter optimization framework,” in KDD, 2019, pp. 2623–2631.</p><p>[8] Kubernetes, “Production-grade container orchestration,” 2022. Available: <a href="https://kubernetes.io/">https://kubernetes.io/</a></p><p>[9] Airflow, “Apache airflow,” 2022. Available: <a href="https://airflow.apache.org/">https://airflow.apache.org/</a></p><p>[10] MLflow, “An open source platform for the machine learning lifecycle,” 2022. Available: <a href="https://mlflow.org/">https://mlflow.org/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=936c73e5ec67" width="1" height="1" alt=""><hr><p><a href="https://medium.com/walmartglobaltech/walts-walmart-automl-libraries-tools-and-services-936c73e5ec67">WALTS: Walmart AutoML Libraries, Tools and Services</a> was originally published in <a href="https://medium.com/walmartglobaltech">Walmart Global Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bias, Fairness and Explainability — steps towards building Responsible AI]]></title>
            <link>https://medium.com/walmartglobaltech/bias-fairness-and-explainability-steps-towards-building-responsible-ai-dc735b06279?source=rss-aea2b1d1801------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc735b06279</guid>
            <category><![CDATA[explainable-ai]]></category>
            <category><![CDATA[ai-fairness]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[responsible-ai]]></category>
            <dc:creator><![CDATA[Kunal Banerjee]]></dc:creator>
            <pubDate>Tue, 12 Jan 2021 06:05:49 GMT</pubDate>
            <atom:updated>2021-01-12T06:05:49.636Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bias, <strong>Fairness</strong> and Explainability — steps towards building Responsible AI</h3><p>Artificial Intelligence (AI) has become a game changer in modern day industries in the last couple of decades. It is predicted that by 2030, AI may contribute $15.7 trillion to the global economy [1]. AI resides in the smart devices we wear, the home assistants we interact with, and the cars we drive — basically, AI is now omnipresent encompassing almost all aspects of our lives. However, “<em>with great powers comes great responsibility</em>” and hence it is of utmost importance that the AI that controls our lives is free from any <em>undesired</em> bias, that is, it should be <em>fair</em> in its judgement (prediction), and in case we are not happy with its prediction, we should be able to understand why AI made that prediction — all these are necessary for building “Responsible AI.” It is pertinent to note that “Responsible AI” may further include regulatory compliance, privacy and security, etc. which are not covered here.<br>In this article, we will introduce the readers to the basic concepts of bias, fairness and explainability in AI and differentiate among these related concepts with the help of examples. Later we will dive into fairness specifically and explore various tools available for achieving fairness in AI.</p><p>Let’s start with:</p><h3><strong>What is bias? (Is it good or bad?)</strong></h3><p>Although whenever the word “bias” appears in normal English it typically has a negative connotation to it, it is not necessarily so in the context of machine learning (ML). In fact, Tom Mitchell advocates for having bias in order to learn appropriate generalizations for ML models [2]. For example, having prior domain knowledge (i.e., bias) helps in devising legitimate constraints that determine which solution space to explore and which to prune. Bias (or prior knowledge in statistical terms) may be used in ML to model actual knowledge of data, intended use of learned generalizations and even knowledge about training data.</p><p>However, for the rest of the article we will use the term “bias” to mean “undesired bias” which occurs when the ML model shows <em>systematic prejudice</em> for some feature values due to wrongful assumptions made during its training process.</p><p>Some of the sources of bias are listed below:</p><ol><li><strong>Sample bias:</strong> It occurs when one population is overrepresented or underrepresented in a training dataset.</li><li><strong>Label bias:</strong> It occurs when the annotation process introduces bias during the creation of training data.</li><li><strong>Outcome proxy bias:</strong> It occurs when we use a proxy metric instead of the actual (ideal) one.</li><li><strong>Confirmation bias:</strong> It is the tendency to process (or interpret) information that confirms to one’s existing beliefs.</li><li><strong>Group Attribution bias:</strong> It occurs when training data is asymmetric towards certain groups.</li></ol><p>Next, let’s investigate:</p><h3><strong>What is fairness?</strong></h3><p>As mentioned in Wikipedia: “<em>In machine learning, a given algorithm is said to be </em><strong><em>fair</em></strong><em>, or to have </em><strong><em>fairness</em></strong><em>, if its results are independent of given variables, especially those considered sensitive, such as the traits of individuals which should not correlate with the outcome (i.e. gender, ethnicity, sexual orientation, disability, etc.).</em>”</p><p>Let’s get a better understanding about what fairness is through an example.</p><p><strong>Problem Statement:</strong> Choose 6 applicants out of the 12 given below for loan approval based on their genders (M — male, F — female) and credit scores (higher score is better).</p><p>Note that in this problem, we consider gender as the sensitive attribute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BN_rLm_HHGJq1fX9A56-vw.png" /></figure><p><strong>Solution 1 (Group Unaware): </strong>The first solution can be to simply sort the applicants based on their credit scores and choose the top 6, while being totally oblivious to the genders of the applicants. This is known as “group unaware” in fairness literature because the decision is made without paying attention to which group (male or female) the applicant belongs to.</p><p>Note that as per this solution, all the applicants whose loans are approved (shown in green boxes) happen to be male.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VmDdd_efAemFRGWX8VbBMw.png" /></figure><p>The “group unaware” solution may initially look fair because it seems to support meritocracy. But what if the female applicants have lower credit score because women have traditionally been underserved compared to men in our society, such as, being underpaid [3]? The following solutions try to balance the existing societal difference.</p><p><strong>Solution 2 (Group Threshold): </strong>This approach tries to come up with suitable thresholds for different groups to achieve balance in the favorable predictions (in this case, loans being granted) across the groups. Say, for this example, we fix the threshold for credit score for males at 500 and for females at 300, then the results are as given below.</p><p>Note that as per this solution, 5 male applicants and only 1 female applicant get their loans approved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qxseBgQnDRb4wc8SmsUYDg.png" /></figure><p>Some people may perceive solution 2 as not “fair enough” because while 62.5% (5 out ot 8) male candidates got their loans granted, only 25% (1 out of 4) female candidates got theirs. This brings us to the following solution.</p><p><strong>Solution 3 (Demographic Parity):</strong> This strategy states that the proportion of favorable predictions for each group (male, female) should be equal for a sensitive attribute (gender). Thus, according to this method, following is the result.</p><p>Note that as per this solution, 4 males (i.e., 50% males) and 2 females (i.e., 50% females as well) get their loans approved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GeSNZbbgSG5iDGIvPlShkw.png" /></figure><p>Thus, it is important to note that <em>fairness is subjective</em>, i.e., which solution one should go with depends on the policy makers.</p><p>Also, fairness, at times, can lead to decrease in accuracy of the machine learning model.</p><p>It is important to note that the metrics for fairness explained till now are examples of “group fairness” where we explore whether a minority group is being underserved or not. The notion of individual fairness was introduced in [7] which basically states that similar individuals should be served identically.</p><h3><strong>How to achieve fairness?</strong></h3><p>The obvious first solution that comes to our mind to achieve fairness is to remove the sensitive attributes from dataset, e.g., age, sex, race. However, it is not so straightforward because of <em>latent prejudice</em> (LP) that exists between data <em>x</em> and attribute <em>a</em>. It can be measured using <em>mutual information</em> between <em>x</em> and <em>a</em> as given in the following formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*oZOHnXaLlTaaQXg1jEsBSA.png" /></figure><p>For example, let us say that race is a sensitive attribute and hence, we remove this information from the training data; however, the race of a person may still be derived from his/her surname.</p><p>This brings us to the <em>bias mitigation algorithms</em> which can be used to get rid of the bias introduced by the sensitive attributes. These algorithms can be classified into three groups based on the stage at which it is applied. Here we list the pros and cons for each of these three types of algorithms; we urge the readers to look into [4] for further details.</p><ol><li><strong>Pre-processing algorithms</strong> — applied to training data<br>Pros:<br>· Can be optimal since bias typically resides in the data<br>· Once an unbiased representation is achieved it can be used for other trainings (transfer learning)<br>Cons:<br>· Data can be biased in complex ways and hence pre-processing algorithms may not work<br>· It can be legally prohibited because sometimes auditing becomes difficult on pre-processed data</li><li><strong>In-processing algorithms</strong> — applied to a model during its training<br>Pro:<br>· Accuracy and fairness metrics may be better controlled<br>Con:<br>· Training method has to be re-designed</li><li><strong>Post-processing algorithms</strong> — applied to predicted labels<br>Pro:<br>· Trained model can be treated as a black box<br>Con:<br>· Has hard time removing bias inherent in data and maintaining accuracy</li></ol><h3><strong>Bias vs Fairness</strong></h3><p>As already mentioned, fairness is subjective and often defined when the affected group involves humans. Therefore, all biases may not lead to un-fairness. To be precise, <em>a fair algorithm should not be biased towards sensitive attributes</em>.</p><p>To illustrate, let us consider that there is a machine learning model trained to perform optical character recognition (OCR) which is biased towards normal font but not calligraphic fonts; for example, it is good at identifying that the word written in “Times New Roman” font on the left is actually “Hello” but not so good when the same word is written in “Apple Chancery” font as shown on the right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_rmXigCJRre6OavI4MiUw.png" /></figure><p>Such bias towards some particular fonts, although undesirable, may not be deemed as unfair to the policy makers. However, now let us consider that we apply the same model to recognize the brand names from the below two images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*759sQ43TlkwuTYxJZp0SWA.png" /></figure><p>Our model is more likely to correctly predict the brand name “PETSI” than “Coke-Cola” because the former is in regular font while the latter is in calligraphic. Of course, use of such a biased model may result in favorable treatment for one brand over another, i.e., there may be direct impact over business and services, which may not be tolerable for policy makers and this is when a bias may transcend to being unfair.</p><h3><strong>Is fairness in AI relevant for Walmart?</strong></h3><p>This is an important question to ponder upon. We strongly believe that it is <em>relevant</em>. Walmart’s actions have a direct bearing on human lives — be it customers, sellers or associates, and many such actions are taken by systems that have AI at their cores.</p><p>Let us first consider an example related to HR process. Hiring is perhaps the most crucial step for an industry to grow and excel in its domain. Often there are many applicants for an open position whose resumes are shortlisted by an AI — such choices should not be biased towards a person’s race, gender, etc., and thereby uphold our policy of “inclusiveness.”</p><p>Here is another example pertaining to search and recommendation. Oftentimes the most popular brands are continually given the top ranks — although this may apparently seem fair, such behavior discourages the less popular brands who may then choose to move away to other platforms; moreover, for customers, adding diversity to the recommendation list helps in learning their personal preferences.</p><h3><strong>What is explainability?</strong></h3><p>Explainability (also referred to as interpretability) is the ability to explain the predictions that a machine learning model makes. In other words, explainability is the branch of machine learning that deals with deciphering why a model took a particular decision and representing it in a way that humans can comprehend.</p><p>There are various methods developed for explainability which can be classified into the following two groups based on whether these methods require the models to be made available or not.</p><ol><li><strong>Model-agnostic</strong> (also known as <strong>black-box</strong>): These methods require only the inputs and the outputs of a model to explain its behaviour.</li><li><strong>Model-specific</strong> (also known as <strong>white-box</strong> or <strong>glass-box</strong>): These methods additionally need access to the model to explain its behaviour.</li></ol><p>Alternately, the methods for explainability may also be classified into the following two classes based on the level of explainability that these methods provide.</p><ol><li><strong>Global explainability</strong>: These methods try to explain the whole model, and therefore individual predictions are explained based on the understanding of how the whole model operates.</li><li><strong>Local explainability</strong>: These methods try to explain individual predictions separately without developing an understanding of the whole model.</li></ol><p>We recommend the readers to go through [5] for a deeper understanding of explainability.</p><h3><strong>Fairness vs Explainability</strong></h3><p>Explainability has a larger scope than fairness because it is applicable to any bias.</p><p>Moreover, we may be able to conclude whether a model is fair or not based on some metric without being able to explain why it is so (and thus develop insights on how to fix it). To understand this statement, let us revisit the above problem of approving loans based on a person’s credit score and gender. Suppose that the policy makers have decided that the fairness metric to be adopted should be <em>demographic parity</em>, i.e., identical proportions for male and female candidates should be chosen. Now, consider that the model that we have trained makes the following predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oVTp6PVqfjOclsUmE8wFSg.png" /></figure><p>Clearly, this model has <em>failed to achieve fairness</em> because 62.5% male applicants have their loans approved while only 25% female applicants have theirs approved. However, we are not sure why the model made these predictions; this is where explainability methods come in handy. With the help of explainability methods, specifically, contrastive explanations [6], one may be able to conclude that the current decision was taken based on threshold values on credit scores of 500 for males and 300 for females, and to attain demographic parity the thresholds should be adjusted to 550 for males and 200 for females.</p><p>We hope that this blog has helped you understand the basic concepts of bias, fairness and explainability in AI and differentiate among these.<br>Next, we compare three different open-source tools related to detecting and improving fairness in AI — Fairness Indicators, AIF360 and Fairlearn — based on different relevant metrics.<br>Kindly, note that all these tools are currently being enhanced upon by the respective industries and hence the following assessment (as in January 2021) may also need to be improved in future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Zl57DACPqmk7RWBgObquQ.png" /></figure><h3><strong>Authors:</strong></h3><ol><li><a href="https://kunalbanerjee.github.io/">Kunal Banerjee</a>, Staff Data Scientist, Data Science Foundation, Walmart Global Tech</li><li><a href="https://www.linkedin.com/in/vijaysrinivasagneeswaran/">Vijay Agneeswaran</a>, Director, Data Science Foundation, Walmart Global Tech</li></ol><h3><strong>References:</strong></h3><p>[1] <a href="https://www.pwc.com/gx/en/issues/analytics/assets/pwc-ai-analysis-sizing-the-prize-report.pdf">Sizing the prize — What’s the real value of AI for your business and how can you capitalise?</a></p><p>[2] Tom M. Mitchell. <a href="http://www-cgi.cs.cmu.edu/~tom/pubs/NeedForBias_1980.pdf">The Need for Biases in Learning Generalizations</a>, 1980.</p><p>[3] <a href="https://www.payscale.com/data/gender-pay-gap">The state of the gender pay gap.</a></p><p>[4] Trisha Mahoney, Kush R. Varshney, and Michael Hind. <a href="https://krvarshney.github.io/pubs/MahoneyVH2020.pdf">AI Fairness: How to Measure and Reduce Unwanted Bias in Machine Learning</a>, 2020.</p><p>[5] Christoph Molnar. <a href="https://christophm.github.io/interpretable-ml-book/">Interpretable Machine Learning</a>, 2020.</p><p>[6] Tim Miller, <a href="https://arxiv.org/abs/1811.03163">Contrastive Explanation: A Structural-Model Approach</a>, 2018.</p><p>[7] Cynthia Dwork, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Rich Zemel. <a href="https://arxiv.org/abs/1104.3913">Fairness Through Awareness</a>, 2011.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc735b06279" width="1" height="1" alt=""><hr><p><a href="https://medium.com/walmartglobaltech/bias-fairness-and-explainability-steps-towards-building-responsible-ai-dc735b06279">Bias, Fairness and Explainability — steps towards building Responsible AI</a> was originally published in <a href="https://medium.com/walmartglobaltech">Walmart Global Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>