<?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 Sidney Kung on Medium]]></title>
        <description><![CDATA[Stories by Sidney Kung on Medium]]></description>
        <link>https://medium.com/@sidneykung?source=rss-cde73518869a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7JmKGQENehBMAvt5KeROkw.jpeg</url>
            <title>Stories by Sidney Kung on Medium</title>
            <link>https://medium.com/@sidneykung?source=rss-cde73518869a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:31:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sidneykung/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Ultimate Machine Learning Repository for Anime Fans]]></title>
            <link>https://sidneykung.medium.com/the-ultimate-machine-learning-repository-for-anime-fans-dce076ae8e86?source=rss-cde73518869a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dce076ae8e86</guid>
            <category><![CDATA[anime]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sidney Kung]]></dc:creator>
            <pubDate>Fri, 14 May 2021 19:14:20 GMT</pubDate>
            <atom:updated>2021-05-14T19:14:20.510Z</atom:updated>
            <content:encoded><![CDATA[<h4>This repository contains research projects for anime and manga.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7vTHmnf5j5sfV4WP3pPKqQ.jpeg" /><figcaption><a href="https://unsplash.com/@retrokram">Senad Palic</a> on <a href="https://unsplash.com/photos/Qcefx5xENeA">Unsplash</a></figcaption></figure><p>If you’re a huge anime fan like me, then you should check out <a href="https://github.com/SerialLain3170/AwesomeAnimeResearch"><strong>this</strong></a> GitHub repository! AwesomeAnimeResearch, compiled by the user SerialLain3170 contains a massive list of <strong>published research papers for machine learning projects related to anime or manga.</strong></p><p><a href="https://github.com/SerialLain3170/AwesomeAnimeResearch">SerialLain3170/AwesomeAnimeResearch</a></p><p>The <strong>categories</strong> of projects are popular topics such as image generation, image-to-image transformation, automatic line art coloration, automatic character lighting, automatic character editing, automatic sketch editing, talking head animation and much more.</p><p>Here are some cool projects in the repository that I found particularly interesting.</p><h4><strong>1. Talking Head Anime from a Single Image</strong></h4><p><a href="https://pkhungurn.github.io/talking-head-anime/">This project</a> uses a deep neural network that takes an <strong>image of an anime character’s face</strong> and <strong>desired</strong> <strong>pose</strong>, and <strong>outputs a video </strong>of the same character in a selected pose. The creator even included a <strong>face tracker</strong> so that the character can <strong>mimic a user’s face movements</strong>!</p><p><a href="https://pkhungurn.github.io/talking-head-anime/">Talking Head Anime from a Single Image</a></p><h4><strong>2. Facial Landmark Detection for Manga Images</strong></h4><p><strong>Facial recognition</strong> has been a popular innovation for human faces, however there is lack of research for drawn faces. <a href="https://arxiv.org/pdf/1811.03214.pdf">This project</a> uses deep learning to <strong>detect landmarks for drawn faces in manga</strong>. Upon the first trail, the method accurately found landmarks in more than <strong>80% </strong>of the cases.</p><h4><strong>3. Generating “Ideal” Anime Opening Frame Using Neural Networks</strong></h4><p>For every anime, the opening sequence is important for setting the tone. <strong>A lot of anime gain popularity solely for their viral openings.</strong> <a href="https://ieeexplore.ieee.org/abstract/document/9396557">This project</a> aims to use Generative Adversarial Networks (GANs) to identify and generate complex animation objects using the original dataset that contained <strong>60 popular openings.</strong></p><h4><strong>4. Yet Another Anime </strong>Segmenter</h4><p>This project uses <strong>instance segmentation for anime characters in still frames</strong> based on <a href="https://arxiv.org/abs/2003.05664">CondInst</a> pretrained models and <a href="https://arxiv.org/abs/2003.10152">SOLOv2</a>, using the implementation from <a href="https://github.com/aim-uofa/AdelaiDet">AdelaiDet</a> and <a href="https://github.com/facebookresearch/detectron2">detectron2</a>. The goal of this project is to generate clean data with clear, <strong>cropped figures from complex images</strong>. The dataset was augmented by placing segmentations on pure backgrounds, and models are trained with multiscale augmentation. The newer version of the model is still under development.</p><p><a href="https://github.com/zymk9/Yet-Another-Anime-Segmenter">zymk9/Yet-Another-Anime-Segmenter</a></p><h4><strong>5. Selfie2Anime</strong></h4><p>If you’re an anime fan, you might have seen <a href="https://arxiv.org/pdf/1907.10830.pdf">this project</a> in action as popular <strong>social media filters</strong>. This project uses unsupervised image-to-image translation to <strong>transform human faces to anime faces</strong>! Specifically, it uses unsupervised generative attentional networks for adaptive layer-instance normalization. Their results show that this method is <strong>vastly</strong> <strong>successful</strong> compared to the existing models with a fixed network architecture and hyperparameters. Check out the project’s GitHub repository here for more details.</p><p><a href="https://github.com/taki0112/UGATIT">GitHub - taki0112/UGATIT: Official Tensorflow implementation of U-GAT-IT: Unsupervised Generative Attentional Networks with Adaptive Layer-Instance Normalization for Image-to-Image Translation (ICLR 2020)</a></p><h4><strong>Advancing Anime with Machine Learning</strong></h4><p>If you explore through the AwesomeAnimeResearch repository, you’ll quickly see the love that all of these anime fans poured into their projects. Although they may seem like passion projects, this technology could mean great <strong>advancements for the industry</strong> and even improve manga generation and animation efforts. Take a look for yourself!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dce076ae8e86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Venn Diagrams — An Underrated Data Visualization]]></title>
            <link>https://medium.com/data-science/venn-diagrams-an-underrated-data-visualization-6eb6c123eb4a?source=rss-cde73518869a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6eb6c123eb4a</guid>
            <dc:creator><![CDATA[Sidney Kung]]></dc:creator>
            <pubDate>Sun, 09 May 2021 19:49:18 GMT</pubDate>
            <atom:updated>2021-05-09T22:28:33.477Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Venn Diagrams — An Underrated Data Visualization</strong></h3><h4>Sometimes, simple is better.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kz77FG4Q5qsjOUMvAS7IeA.jpeg" /><figcaption><a href="https://unsplash.com/@maxcodes">Maxwell Nelson</a> on <a href="https://unsplash.com/photos/taiuG8CPKAQ">Unsplash</a></figcaption></figure><p>The primary goal of a <strong>data</strong> <strong>visualization</strong> is to <strong>represent a point in a clear, compelling way</strong>. As Data Scientists, we’re always aiming to create the coolest, most innovative types of data visualizations. To the point where the actual message is lost. <strong>Why over complicate things</strong>? Sometimes, a simple message only requires a simple visualization to convey it. In this blog, I’ll be sharing a brief tutorial on how you can <strong>easily create a venn diagram with Matplotlib </strong>and any kind of data.</p><h4><strong>Project Context</strong></h4><p>In my recent project, Twitter Hate Speech Detection, I faced a major challenge with the class imbalance with the data. The entire dataset was 24,802 text tweets, where <strong>only 6% was labeled as hate speech</strong>. At the end, this class imbalance had an impact on my final model’s results. You can check out the final project’s repository <a href="https://github.com/sidneykung/twitter_hate_speech_detection">here</a> for more details.</p><p>When I was creating the presentation for this project,<strong> I needed a way to visualize this problem</strong>. Additionally, I wanted to find the number of words that were <strong>exclusive</strong> to the <strong>Hate Speech label</strong>, and didn’t overlap with plain offensive language. And then it hit me, a venn diagram could display this concept perfectly. Here is the final product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*NNTa43F9dmMEdDhCYurWHQ.png" /></figure><p>Before I dive into the tutorial, let’s go back to basics for a second. We’ve all learned about this simple visualization in elementary school. <strong>A venn diagram is a diagram made out of two or more circles that overlap to show the logical relationships between sets</strong>. As we know, a set contains the unique values from a dataset. Therefore, this venn diagram <strong>shows the unique words from each label</strong>, and those that overlap.</p><h4><strong>Tutorial</strong></h4><p>Creating venn diagrams in Python is extremely simple. Not many people know this, but the popular data visualization package matplotlib has an extension that can create customizable venn diagrams. You can check out the <strong>documentation</strong> <a href="https://pypi.org/project/matplotlib-venn/">here</a>. The first step will always be to install the package onto your local machine.</p><pre>pip install matplotlib-venn</pre><p>Since it’s based onmatplotlib, you’ll need to import matplotlib’s <strong>dependencies</strong> such as numpy and scipy as well.</p><p>Once the package is installed, you will need to feed in your data as a <strong>set</strong>. I’m not going to dive into the specifics of my code, but can check it all out in <a href="https://nbviewer.jupyter.org/github/sidneykung/twitter_hate_speech_detection/blob/master/preprocessing/eda_notebook.ipynb">this</a> notebook. First, I separated the tweets in each label, and then used a map function to turn the <strong>tokenized words</strong> into two separate <strong>lists</strong>. From there, I used list comprehension to turn those into <strong>nested lists</strong> to query through.</p><p>After your data is in a suitable format, we can<strong> import the package</strong> into the notebook itself.</p><pre>import matplotlib_venn as venn</pre><pre>from matplotlib_venn import venn2, venn2_circles, venn3, venn3_circles</pre><pre>import matplotlib.pyplot as plt</pre><pre>%matplotlib inline</pre><p>From there, the code to create a venn diagram is as simple as <strong>one line</strong> of code.</p><pre>venn2([set(label_1), set(label_2)])</pre><p>However, the beauty of this package is that it’s very <strong>customizable</strong>. You can add a title and labels by adding this code to that original line.</p><pre>venn2([set(label_1), set(label_2)], set_labels = (&#39;Hate Speech&#39;, &#39;Not Hate Speech&#39;))</pre><pre>plt.title(&#39;Comparison of Unique Words in Each Corpus Label&#39;)</pre><p>The final step would be to <strong>save</strong> the figure and use it in a presentation!</p><pre>plt.savefig(&#39;venn_diagram.png&#39;, bbox_inches = &quot;tight&quot;, pad_inches=.5)</pre><p>Aside from the title and labels, you can also <strong>add more circles</strong>,<strong> change the color</strong> of the circles,<strong> add outlines</strong>, <strong>change the sizes</strong> and much more. There are other blogs out there that detail how to do that, and I’ll link those below.</p><ul><li><a href="https://towardsdatascience.com/how-to-create-and-customize-venn-diagrams-in-python-263555527305">How to Create and Customize Venn Diagrams in Python</a></li><li><a href="https://towardsdatascience.com/how-to-design-professional-venn-diagrams-in-python-693c9ed2c288">How to Design Professional Venn Diagrams in Python</a></li></ul><p>With the exploratory data analysis stage, we are constantly<strong> asking questions about the data </strong>and <strong>drawing upon hidden insights</strong>. And the next time you find yourself creating a complex visualization and <strong>struggling to communicate those insights</strong>, the solution could be to <strong>simplify it</strong>. We shouldn’t overlook basic visualizations such as venn diagrams!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6eb6c123eb4a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/venn-diagrams-an-underrated-data-visualization-6eb6c123eb4a">Venn Diagrams — An Underrated Data Visualization</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Social Media Sentiment Analysis with VADER]]></title>
            <link>https://medium.com/data-science/social-media-sentiment-analysis-with-vader-c29d0c96fa90?source=rss-cde73518869a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c29d0c96fa90</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[vader]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[sentiment-analysis]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <dc:creator><![CDATA[Sidney Kung]]></dc:creator>
            <pubDate>Sat, 01 May 2021 01:16:17 GMT</pubDate>
            <atom:updated>2021-05-01T01:16:17.614Z</atom:updated>
            <content:encoded><![CDATA[<h4>Measuring the sentiment for nuanced text data.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i0AIvWAJ1Xfq0qkjBLIyLQ.jpeg" /><figcaption><a href="https://unsplash.com/@prateekkatyal">Prateek Katyal</a> on <a href="https://unsplash.com/photos/xv7-GlvBLFw">Unsplash</a></figcaption></figure><p>With Data Science, we need different tools to handle the diverse range of datasets. Before we dive into the different methods for <strong>sentiment analysis</strong>, it’s important to note that it’s a technique within <strong>Natural Language Processing</strong>. Often called <strong>NLP</strong>, it is the study of how computers can understand <strong>human</strong> <strong>language</strong>. And although this is a specialty that is popular among Data Scientists, it’s not exclusive to the industry.</p><p>Working with <strong>text data</strong> comes with a <strong>unique set of problems </strong>and solutions that other types of datasets don’t have. Often, text data requires more <strong>cleaning</strong> and <strong>preprocessing</strong> than other data types. However, there’s also unique <strong>exploratory data analysis</strong> techniques that we can apply with text data, such as word clouds, visualizing the most common words, and more. For this blog, we’ll be looking at <strong>sentiment analysis.</strong></p><h3><strong>Sentiment Analysis</strong></h3><p>Sentiment Analysis is the analysis of how much a text document is <strong>positive, negative and opinionated.</strong> For instance, this technique is commonly used on review data, to see how customers feel about a company’s product.</p><p>The problem with text data is that it reflects human language. It’s <strong>diverse</strong> and constantly <strong>evolving</strong>, therefore, machine learning must constantly restrain models based on new <strong>lexicons</strong>. For instance, <strong>social media text</strong> is extremely nuanced and notoriously difficult for a machine learning algorithm to “understand”.</p><p>There are many different libraries that can help us perform sentiment analysis, but we’ll be looking at one that is particularly effective for dirty social media data, <strong>VADER</strong>.</p><p>VADER stands for Valance Aware Dictionary for Sentiment Reasoning, and it’s a sentiment analysis tool that’s sensitive to <strong>both polarity</strong> and <strong>intensity</strong> of emotions within human text. This lexicon is a <strong>rule-based system </strong>that is specifically trained on social media data. You can check out the GitHub repository for the tool <a href="https://github.com/cjhutto/vaderSentiment">here</a>.</p><h3><strong>TextBlob</strong></h3><p>To understand the effectiveness of this tool, we can first look at how TextBlob performs on Twitter data. For the purposes of this blog, I’ll be showing examples from my recent project, <a href="https://github.com/sidneykung/twitter_hate_speech_detection"><strong>Twitter Hate Speech Detection</strong></a>, where the <strong>text data has already been cleaned</strong>.</p><blockquote>Please note, due to the nature of the project, the following visualizations in this blog contains uncensored, explicit and offensive language.</blockquote><p>For most Natural Language Processing projects that have “<strong>normal</strong>” text such as books, news articles, movie reviews, etc. <strong>we can typically use TextBlob</strong>. <strong>TextBlob</strong> is a library that provides a simple API for handling text data with tasks such as part-of-speech data, noun phrase extraction, tokenization, classification, and more.</p><p>For sentiment analysis, TextBlob is unique because in addition to <strong>polarity</strong> <strong>scores</strong>, it also generates <strong>subjectivity scores</strong>. If we start with a dataframe of each tweet in an individual row, we can create a simple lambda function to apply the methods to the tweets.</p><pre>pol = <strong>lambda</strong> x: TextBlob(x).sentiment.polarity</pre><pre>sub = <strong>lambda</strong> x: TextBlob(x).sentiment.subjectivity</pre><p>After that, we can use a groupby function to see the average polarity and subjectivity score for each label, Hate Speech or Not Hate Speech.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*dCUwa4kuKjB28OLr54yzag.png" /><figcaption>TextBlob sentiment scores</figcaption></figure><p>TextBlob’s polarity score is measured on a scale from -<strong>1</strong> (most negative) to <strong>1</strong> (most positive). Not Hate Speech text (label 0) seems to be relatively <strong>neutral</strong> with an average score of 0.006, whereas Hate Speech text (label 1) could also be considered <strong>neutral</strong> with a score of -0.071. And looking at their subjectivity, it looks like both labels have a <strong>similar level of opinion</strong>. For a deeper look, feel free to check out the <a href="https://github.com/sidneykung/twitter_hate_speech_detection/blob/master/preprocessing/TextBlob_sentiment.ipynb">Jupyter notebook</a> for this analysis on GitHub.</p><p>Ultimately, these scores <strong>seem</strong> to be <strong>not representative</strong> of the tweets in this dataset, where the text ranges from hate speech to offensive language. So, we can see that TextBlob had a hard time analyzing the Twitter data. Let’s see what VADER can do with this type of dirty, nonsensical social media data.</p><h3><strong>Applying VADER</strong></h3><p>Now, we can finally get to VADER. The unique thing about VADER is that it breaks down the polarity score for each document, by giving a <strong>positive</strong>, <strong>neutral</strong>, <strong>negative</strong> and <strong>compound</strong> score. Similar to TextBlob, we can apply the method to generate these polarity scores to the entire dataframe using a simple lambda function.</p><pre>pol = <strong>lambda</strong> x: analyser.polarity_scores(x)</pre><p>This function returns the <strong>scores as a dictionary</strong>, So after a few other lines of code, we can create a dataframe with each of the scores in <strong>individual columns</strong>. Again, you can check out the entire code for yourself on the <a href="https://github.com/sidneykung/twitter_hate_speech_detection/blob/master/preprocessing/VADER_sentiment.ipynb">Jupyter notebook</a>. Here is what we end up with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*Ni82FEo4-qLrhDJh5OTzVQ.png" /><figcaption>VADER sentiment scores</figcaption></figure><p>And with some groupby functions, here are the average scores for the entire dataset, separated by label.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/0*O_8k14_jxYEZRJ8h" /></figure><h3><strong>Interpreting VADER’s Polarity Scores</strong></h3><p>The Positive, Negative and Neutral scores represent the <strong>proportion of text </strong>that falls in these categories. Therefore, Hate Speech tweets on average are 8% positive, 61% neutral, and 30% negative. On the other hand, Not Hate Speech tweets on average are 10% positive, 65% neutral, and 25% negative. This kind of breakdown is <strong>much more helpful</strong> for understanding the <strong>range of sentiment</strong> in the dataset. This shows that both corpuses are similar, but the Hate Speech label has <strong>slightly more negative tweets, on average</strong>. It’s interesting that a majority of tweets in both classes were deemed pretty neutral, but at least we have a clear breakdown.</p><h3><strong>Compound Polarity Score</strong></h3><p>Most notably, the library provides a <strong>compound polarity score</strong>, which is a metric that calculates the sum of all the lexicon ratings, and <strong>normalizes</strong> them between -1 and 1. With -1 being extremely negative and 1 being extremely positive. This score seems to be more reliable because it encompasses the <strong>overall sentiment of this corpus</strong>. Both classes contain negative, offensive language. But we can see from the scores above that tweets that have been classified as <strong>Hate Speech are especially negative</strong>.</p><p>The next step would be to visualize the distribution of all of these scores! You can check out the notebook for the distribution of positive, neutral and negative scores. But here is the <strong>distribution of the compound polarity scores.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*vHfES2DuRyN8LP3ZqOMyXw.png" /><figcaption>VADER Compound Polarity Score distribution, by label</figcaption></figure><p>With this graph, we can see that the tweets classified as Hate Speech are especially negative, as we already suspected. It further emphasizes the marginal difference between these labels.</p><p>After all of that, it’s clear that <strong>VADER</strong> is the superior library for <strong>performing sentiment analysis on social media data</strong>. Natural Language Processing in general is a highly <strong>experimental</strong> sector of machine learning, and it’s all about <strong>finding the right packages that can adapt to your dataset</strong>. In this case, with the Twitter Hate Speech data, we needed a lexicon that was trained on dirty, nuanced text data. Feel free to try VADER out for yourself the next time that you’re working with social media data!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c29d0c96fa90" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/social-media-sentiment-analysis-with-vader-c29d0c96fa90">Social Media Sentiment Analysis with VADER</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jupyter Notebook Not Rendering on GitHub? Here’s a Simple Solution.]]></title>
            <link>https://medium.com/data-science/jupyter-notebook-not-rendering-on-github-heres-a-simple-solution-e51aa6ca29b6?source=rss-cde73518869a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e51aa6ca29b6</guid>
            <dc:creator><![CDATA[Sidney Kung]]></dc:creator>
            <pubDate>Thu, 22 Apr 2021 19:18:36 GMT</pubDate>
            <atom:updated>2021-04-22T20:48:13.453Z</atom:updated>
            <content:encoded><![CDATA[<h4>You can use this website instead!</h4><p>Have you ever tried to preview your Jupyter Notebook file and received this pesky error message after about 20+ seconds of waiting?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*8A15S9RrsLN1Po-zXs8nwg.png" /></figure><p>About 70% of the time, we see this message. As if it’s a gamble to see whether your .ipynb file will render or not.</p><p>Good news, this “Sorry, something went wrong. Reload?” message doesn’t have an impact on your actual commit. It’s just an issue on GitHub’s end because it’s unable to render a preview of the file.</p><p>After much research, it seems that no one on the internet is quite sure about why this problem is occurring. People speculate that it could the a problem with the file size, or perhaps the type of browser that the viewer is using.</p><p>Regardless of what may be causing this problem, don’t worry. I have the answer to your prayers!</p><h3>The Solution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yUlf40wT_DJZ3Yl-FsFApA.png" /></figure><p><a href="https://nbviewer.jupyter.org/"><strong>Nbviewer</strong></a> is a web application that lets you enter the URL of a Jupyter Notebook file on GitHub, then it renders that notebook as a static HTML web page. This gives you a stable link to that page which you can share with others.</p><h3><strong>Other Benefits</strong></h3><p>In addition to always successfully rendering a Jupyter Notebook, it also has other advantages for users.</p><p>On the rare occasion that an .ipynb file actually loads on Github, it sometimes fails to display certain objects.</p><p>For instance, GitHub isn’t able to load Folium maps. When we try to generate a map of Los Angeles, we get this error:</p><pre>Output of folium.__version__</pre><p>However if we use nbviewer, the full interactive map loads without a problem. See for yourself!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k75HgPHhNPUDq0Um6EuvHA.png" /></figure><p>Additionally, this website’s features aren’t exclusive to Python, you can use this to display files containing other programming languages such as Ruby and Julia.</p><p>Overall, this is a great solution if you’re the only technical professional on the team, and you need to be able to easily and quickly distribute a Jupyter Notebook to your coworkers who may not have a learning environment installed. Unfortunately, you still can’t share files on private repositories.</p><p>So, next time you find yourself waiting 20+ seconds for a code file to render on GitHub, remember that nbviewer is here to make your life a bit easier!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e51aa6ca29b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/jupyter-notebook-not-rendering-on-github-heres-a-simple-solution-e51aa6ca29b6">Jupyter Notebook Not Rendering on GitHub? Here’s a Simple Solution.</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tracking Keyword Trends on Google Search with Pytrends]]></title>
            <link>https://medium.com/data-science/tracking-keyword-trends-on-google-search-with-pytrends-cf97c43803f6?source=rss-cde73518869a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf97c43803f6</guid>
            <dc:creator><![CDATA[Sidney Kung]]></dc:creator>
            <pubDate>Wed, 14 Apr 2021 20:49:47 GMT</pubDate>
            <atom:updated>2021-04-14T20:49:47.152Z</atom:updated>
            <content:encoded><![CDATA[<h4>Gathering historical data with just a few lines of code!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7IpvXRXAIgwg_DE7ruOM0g.jpeg" /><figcaption><a href="https://unsplash.com/@markuswinkler">Markus Winkler</a> on <a href="https://unsplash.com/photos/afW1hht0NSs">Unspalsh</a></figcaption></figure><p>Pytrends is an unofficial API for <strong>tracking Google Search trends</strong>, and we can use matplotlib to visualize these trends <strong>over time</strong>. You can read more about the package in the project’s GitHub repository <a href="https://github.com/GeneralMills/pytrends">here</a>.</p><h4><strong>What is Google Search?</strong></h4><p>Well, we all know what Google Search is. We all use it several times a day, sometimes without a second thought, to access <strong>millions of search results </strong>for a wide range of topics. Fun fact, the Google Search Toolbar was first released in <strong>2000</strong> for Internet Explorer 5!</p><p>By looking at a time series visualization of Google Search keywords over a decade, <strong>we can draw valuable insights about almost any topic</strong>. Let’s dive right into an example. Let’s take a look at the trends for the keyword “Data Science”.</p><h4><strong>Plotting Data Science Search Trends</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*rOPH74PuYk5wfRUSYN1xmQ.png" /><figcaption>image by author</figcaption></figure><p>Here are the trends of the keyword “Data Science” from <strong>2016 to 2021</strong>. I’ll share a tutorial on how you can generate this visualization too! It’s super easy.</p><p>With any package, we start with <strong>installing</strong> it onto the local machine. You can do this with a simple line.</p><pre>! pip install pytrends</pre><p>Once pytrends is installed, we are going to <strong>import</strong> the method TrendReq from the package.</p><pre>from pytrends.request import TrendReq</pre><p>Next, we need to <strong>connect to Google</strong>. We can use TrendReq and pass several parameters. For this example, we’ll use hl and tz.</p><pre># connect to google<br>pytrends = TrendReq(hl=&#39;en-US&#39;, tz=360)</pre><p>The hl parameter specifies <strong>host language</strong> for accessing Google Trends. Please note that only https proxies will work, and you need to add the port number after the proxy ip address. The tz parameter is the <strong>timezone offset</strong>. So, for example, US CST is 360.</p><p>After the API has been initialized, we need to <strong>query the actual keyword term that we want to search for</strong>. To do that, we use the method build_payload to tell the API which keywords we want. As mentioned, we’re using “Data Science” for this example.</p><pre># keywords to search for<br>pytrends.build_payload(kw_list=[&#39;data science&#39;])</pre><p>Now the hard part is over! Next, we just need to create a <strong>dataframe</strong> that holds the time series data for this query. There is an API method, Interest over Time, that returns <strong>historical, indexed data</strong> for when the keyword was searched most as shown on Google Trends’ Interest Over Time section.</p><pre># dataframe<br>time_df = pytrends.interest_over_time()</pre><p>Take a look at what the <strong>first 5 rows</strong> of that dataframe looks like by running a simple time_df.head().</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*T8Tb6pr07ViA4KE4vyHWFg.png" /></figure><p>Once everything has been set up, we can use matplotlib to <strong>visualize this dataframe</strong>! I won’t explain that part, but here is the full code that I used for this project. As you can see, the whole project only took about 22 lines of code to accomplish.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/586590b196210878572c4cdf34658e8e/href">https://medium.com/media/586590b196210878572c4cdf34658e8e/href</a></iframe><h4>Try It Yourself</h4><p>This mini exercise was just one of the many things that we can do with the pytrends package. For instance, we can look at the historical hourly interest, interest by region, related topics, related queries, and even more.</p><p>Feel free to install Pytrends and play around with the package yourself! There are an endless amount of terms to search.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf97c43803f6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/tracking-keyword-trends-on-google-search-with-pytrends-cf97c43803f6">Tracking Keyword Trends on Google Search with Pytrends</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the No Free Lunch Theorem?]]></title>
            <link>https://medium.com/swlh/what-is-the-no-free-lunch-theorem-ddd5c9e20a8e?source=rss-cde73518869a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddd5c9e20a8e</guid>
            <dc:creator><![CDATA[Sidney Kung]]></dc:creator>
            <pubDate>Mon, 05 Apr 2021 21:14:16 GMT</pubDate>
            <atom:updated>2021-04-05T21:14:16.761Z</atom:updated>
            <content:encoded><![CDATA[<h4>A fundamental concept for effectively implementing machine learning algorithms.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTwZq7ceSHClNuAconBNig.jpeg" /><figcaption><a href="https://unsplash.com/@mbaumi">Mika Baumeister</a> on <a href="https://unsplash.com/photos/Wpnoqo2plFA">Unsplash</a></figcaption></figure><p>Before I dive into the definition of the No Free Lunch theorem, let’s quickly discuss the context. The beauty of data science and machine learning is that no two datasets will ever be the same. The size, noise and content will always be different. <strong>Therefore, our approach to every problem must be different</strong>.</p><h3>So, What is it?</h3><p>The No Free Lunch theorem states that <strong>there is no one model that works best for every problem.</strong> The assumptions of a great model for one problem may not hold for another problem. <strong>Therefore, it is common in machine learning to try multiple models and find one that works best for a particular problem.</strong></p><p>This theorem comes from a 1996 <a href="https://direct.mit.edu/neco/article/8/7/1341/6016/The-Lack-of-A-Priori-Distinctions-Between-Learning">paper</a> where David Wolpert demonstrated that if you make absolutely no assumption about the data, then there is no reason to prefer one model over any other.</p><h3><strong>Judging a Book by its Cover</strong></h3><p>Ultimately, a model is a simplified version of the observations. They are meant to discard the superfluous details that are unlikely to generalize to new instances. In order to decide what data to discard and what data to keep, <strong>you must make assumptions</strong>.</p><p>There is no model that is <em>a priori</em> guaranteed to work better (hence the name of the theorem). So, you may be thinking; the only way to know for sure which model is best is to evaluate them all. Since this is not possible, <strong>in practice you make some reasonable assumptions about the data and evaluate a few reasonable models</strong>. For instance, for simple tasks you may evaluate linear models with various levels of regularization, and for a complex problem you may evaluate various neural networks.</p><h3>The Plan of Attack</h3><p>So, the next time you are tackling a data science problem, step back and ask yourself, “What is the best method for this particular problem?” and go from there. By starting a machine learning project effectively, we can streamline our way to the best metrics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddd5c9e20a8e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/what-is-the-no-free-lunch-theorem-ddd5c9e20a8e">What is the No Free Lunch Theorem?</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Titanic Survival Analysis — An Introduction to Tableau]]></title>
            <link>https://medium.com/data-science/titanic-survival-analysis-an-introduction-to-tableau-ce642ce07ebb?source=rss-cde73518869a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce642ce07ebb</guid>
            <dc:creator><![CDATA[Sidney Kung]]></dc:creator>
            <pubDate>Tue, 30 Mar 2021 21:39:22 GMT</pubDate>
            <atom:updated>2021-03-30T21:39:22.766Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Titanic Survival Analysis — An Introduction to Tableau</strong></h3><h4>Identifying the attributes that indicate whether or not a passenger will survive given their class, fare amount, age and more.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YjhQnCvHSPZPqIa2q9ZnSQ.jpeg" /><figcaption><a href="https://unsplash.com/@anniespratt">Annie Spratt</a> on <a href="https://unsplash.com/photos/Tno1Zd3T6yY">Unsplash</a></figcaption></figure><p>With data science, the key to learning any new technology will always be practicing first-hand with a project. To learn Tableau, I performed an analysis of the survival rates of the Titanic. The full project can be found <a href="https://public.tableau.com/profile/sidney.kung#!/vizhome/TitanicDataset_16119594904410/TitanicSurvivalAnalysis">here</a>, hosted on <strong>Tableau Public</strong>.</p><h3><strong>Data Source</strong></h3><p>Anyone familiar with <a href="https://www.kaggle.com/"><strong>Kaggle</strong></a>, the data science and machine learning dataset resource, may already recognize the <a href="https://www.kaggle.com/c/titanic"><strong>Titanic dataset</strong></a>. This dataset provides observations for each passenger on the Titanic and their survival outcome. For the purposes of this project, only <strong>871 observations </strong>from the <strong>training set </strong>were used. Ultimately, out of the 2,435 total passengers on board, only 38% survived the ship’s sinking. This analysis aims to <strong>pinpoint the attributes that can indicate whether or not a passenger will survive</strong> given their <strong>class, sex, fare amount, age, number of siblings or spouse on board, number of parents or children on board</strong>, and other factors.</p><h3><strong>What is Tableau?</strong></h3><p><a href="https://www.tableau.com/"><strong>Tableau</strong></a> is a visual analytics platform that allows<strong> even non-technical users</strong> to <strong>create interactive, real-time visualizations</strong> in minutes. In just a few clicks, anyone can combine data sources, add filters and drill down to specific information.</p><h3><strong>Importing Data into Tableau</strong></h3><p>There are dozens of Tableau tutorials out there, so I’m not going to dive into deep detail. But I’ll walk through a brief introduction so we can get a sense about how the platform works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UMITgT9vim1csjEh1snqEg.png" /></figure><p>When you open a new workbook on Tableau and load in your dataset, you will see a pane on the left hand side that contains all the columns from your data. This is called the <strong>Data Pane</strong>. Dragging and dropping <strong>Cards</strong> into <strong>Shelves</strong> is where everything starts in Tableau. From there, the possibilities are endless. Next, let’s dive right into an example.</p><h3><strong>Survival by Class</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*preL8rChoiYNiKr3z04UdQ.png" /></figure><p>Here, you can see that I simply dragged the <strong>Class</strong> card into the <strong>Columns</strong> shelf and created an <strong>aggregation of the count of total passengers </strong>in the training set to drag into the <strong>Rows</strong> shelf. From there, I just <strong>customized</strong> the visualization with color coordination by the survival classification, and added the count and percentage to each bar’s section.</p><p>This was a basic example of the types of visualizations we can do in Tableau. From here, I won’t be showing the way I created each visualization. <strong>I’ll just be walking through my findings</strong>. For this visualization, we can clearly see that a majority of those who perished were in 3rd class. Let’s look deeper into a demographic breakdown of each of the classes.</p><h3><strong>Gender Breakdown of Classes</strong></h3><p>Before that, let’s take a quick look at the gender breakdown of the entire training set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J0Do823kZtpQX9zpPOjSUA.png" /></figure><p>Of the 3rd class, most passengers were men. This gives us a clue about the possible gender breakdown of those who survived or perished.</p><p>However, we can’t see the survival rates here. To learn more about demographic breakdown in the survival classes, we can take a look at the <strong>survival rates by sex and age</strong>.</p><h3><strong>Survival by Sex &amp; Age</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0SqKZtq1S1hM7Nk-6r_nHQ.png" /></figure><p>To make this visualization, <strong>I binned the ages by intervals of 10 years</strong>. This gives us a better sense of the age breakdown. If we look at the two columns, Perished and Survived, we can clearly see that <strong>most people who perished were young men</strong>. Especially young men in their 20s. Additionally, <strong>most survivors were women below 30 years old</strong>.</p><p>I’m still curious about the <strong>class breakdown for these demographics</strong>. Next, let’s <strong>flip the axis</strong> for this visualization and create <strong>columns for each of the three classes</strong>.</p><h3><strong>What class were most people who perished in?</strong></h3><p>A great feature that Tableau’s <strong>Dashboards</strong> provides is the ability to <strong>visually isolate different filters</strong>. Let’s take a look the class breakdown for just the men.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pcf781OeSIfm03a6u6rSfQ.png" /></figure><p>We can clearly see that of the men who perished, <strong>a majority of them were in 3rd class</strong>. This gives us further insight on the <strong>socioeconomic disparities</strong> aboard the Titanic.</p><h3><strong>What class were most people who survived in?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nYovXL5Yr_9R-rYHVfThTA.png" /></figure><p>For those who survived, this visualization shows that <strong>a majority of survivors were women in 1st and 2nd class</strong>. Which is the exact opposite demographic from those who perished in the previous visualization. And of the women who did perish, a majority of them were in the 3rd class as well.</p><p>Finally, we can take a look at a look at a breakdown of survival rates based on the <strong>number of family members</strong> one may have had on board.</p><h3><strong>Survival by Family on Board</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n_VIvIe3nIVdHgLp818B0A.png" /></figure><p>Most people who perished didn’t have any family on board. If they did, <strong>it was mostly only 1 or 2 people.</strong> This may have not contributed to their chance of survival. We might be just looking at whether or not they could afford to bring other people on board. Finally, let’s take a look at the class breakdown again for this.</p><h3><strong>Family on Board for People Who Perished</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-7KFrhnoudMyRutBCLNQDg.png" /></figure><p>As suspected, most people who didn’t have any family on board were in 3rd class. This could have happened because they couldn’t afford an additional ticket. <strong>Therefore, we can’t really conclude that people who were alone in 3rd class were more likely to perish.</strong></p><h3><strong>Family on Board for People Who Survived</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RsfWt2VYkHSPbS3bpag49A.png" /></figure><p>Additionally, most survivors in 1st and 2nd class didn’t have family on board either. <strong>So these features really don’t have a significant impact on whether or not someone will survive.</strong></p><h3><strong>Lessons Learned</strong></h3><p><strong>Overall, a person’s chance of survival was dependent on their sex, age and class.</strong> The impact of class is indicative of the<strong> imbalanced socioeconomic</strong> <strong>hierarchy</strong> during 1912. Additionally, the number of family members that people had on board didn’t have a direct relationship with their chance of survival.</p><p>The work for this project is far from over. You may have noticed that all of the visualizations that I created were bar charts. There are tons of <strong>other visualization types we could try</strong> <strong>out</strong> to draw other insights from this dataset. And of course, immediate next steps would be to <strong>examine the other features</strong> such as ticket fare and port of embarkation for further analysis.</p><p>The fun with Tableau has just begun, and<strong> I encourage every aspiring data scientist </strong>to sign up for the free trial, import a dataset and start experimenting with this software.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce642ce07ebb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/titanic-survival-analysis-an-introduction-to-tableau-ce642ce07ebb">Titanic Survival Analysis — An Introduction to Tableau</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Cloud Computing? The Key to Putting Models into Production]]></title>
            <link>https://medium.com/data-science/what-is-cloud-computing-the-key-to-putting-models-into-production-4152c1d7a5f8?source=rss-cde73518869a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4152c1d7a5f8</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[machine-learning-tools]]></category>
            <dc:creator><![CDATA[Sidney Kung]]></dc:creator>
            <pubDate>Wed, 10 Mar 2021 22:50:06 GMT</pubDate>
            <atom:updated>2021-03-12T16:36:49.813Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>A breakdown of the top Cloud Computing platforms such as AWS, Azure, Hadoop, PySpark and more.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OF858LpUQdX6nJiIglvy0A.jpeg" /><figcaption><a href="https://unsplash.com/@tma">Tianyi Ma</a> on <a href="https://unsplash.com/photos/WiONHd_zYI4">Unsplash</a></figcaption></figure><p>A key skill for any Data Scientist is the ability to <strong>write production-quality code to create models</strong> and <strong>deploy them into cloud environments</strong>. Typically, working with cloud computing and data architectures falls in the Data Engineer job title. However, every data professional is expected to be a generalist who can <strong>adapt and scale their projects</strong>.</p><p>Here is an introduction to popular platforms that I have seen across dozens of job descriptions. This doesn’t mean that we have to become experts overnight, but it helps to understand the services that are out there. An introduction is always the first step in learning a new skill.</p><h3><strong>Big Data &amp; Cloud Computing</strong></h3><p>Although “Big Data” has been a buzzword lately and has gained interest from big businesses, it’s typically difficult to define. There’s no clear consensus about the definition, but <strong>“Big Data” usually refers to datasets that grow so large that they become unmanageable with using traditional database management systems and analytical approaches. </strong>They are datasets whose size is beyond the ability of commonly used software tools and storage systems to capture, store, manage and process the data within a tolerated elapsed time.</p><p>When thinking about Big Data, keep the 3 V’s in mind: Volume, Variety and Velocity.</p><ul><li><strong>Volume</strong>: The size of the data</li><li><strong>Variety</strong>: The different formats and types of data, as well as the different uses and ways of analyzing the data</li><li><strong>Velocity</strong>: The rate at which data is changing, or how often it is created</li></ul><p>With the evolution of data, the need for faster and more efficient ways of analyzing such data has also grown exponentially. Having big data alone is no longer enough to make efficient decisions. Therefore, there is a demand for <strong>new tools and methods specialized for big data analytics</strong>, as well as the required <strong>architectures for storing and managing such data</strong>.</p><h3><strong>Where Should We Begin?</strong></h3><p>Each company has a unique technology stack with softwares that they prefer to use with their proprietary data. There are a number of different platforms that go into each category of the stack. These categories include Visualization &amp; Analytics, Computation, Storage and Distribution &amp; Data Warehouses. There are too many platforms to count, but I’ll be going over the popular cloud computing services that I have seen across recent job postings.</p><p>Rather than owning their own computing infrastructure or data centers, companies can rent access to anything from applications to storage from a cloud service provider. <strong>This allows companies to pay for what they use, when they use it. </strong>Instead of dealing with the cost and complexity of maintaining their own IT infrastructure. Simply put,</p><blockquote><strong>Cloud computing </strong>is the delivery of on-demand computing services — from applications to storage and processing power — typically over the internet and on a pay-as-you-go-basis.</blockquote><p>Although I’m not going to dive into details in this blog, it’s important to note that there are <strong>three cloud computing models</strong>. <strong>IaaS</strong> (Infrastructure-as-a-Service), <strong>PaaS</strong> (Platform-as-a-Service) and <strong>SaaS</strong> (Software-as-a-Service). Of these three, <strong>SaaS is by far the dominant and most widely used</strong> cloud computing model.</p><h3><strong>Amazon Web Services (AWS)</strong></h3><p>AWS offers database storage options, computing power, content delivery, and networking among other functionalities to help organizations scale up. <strong>It allows you to select your desired solutions while you pay for exactly the services you consume</strong>. Services like AWS allow us to rent time on these servers per minute, making distributed training available for anybody. Additionally, AWS servers allow for companies to make use of big data frameworks such as Hadoop or Spark across a cluster of servers.</p><p>Amazon has also centralized all of the major data science services inside <strong>Amazon SageMaker</strong>. SageMaker provides numerous services for things such as data labeling, cloud-based notebooks, training and model tuning and Inference. We can set up our own models, or use the preexisting models provided by AWS. Similarly, we can set up our own inference endpoints, or make use of preexisting endpoints created by AWS. Creating an endpoint requires us to use a <strong>Docker</strong> instance. Luckily much of the work required to create an endpoint for our own model is boilerplate, and we can use it again and again across multiple projects.</p><p>AWS currently supports over 2,000 government agencies and 5,000 educational institutions. Additionally, it’s <strong>one of the top 4 public cloud computing companies in the world</strong>. Benefits include the <strong>ease of use, diverse array of tools, unlimited server capacity, reliable encryption and security,</strong> plus <strong>affordability</strong>. However, some drawbacks are that some of AWS’s resources are limited by region. It’s also subject to the concerns that many other cloud computing platforms face. There are concerns over <strong>backup protection, risk of data leakage, privacy issues </strong>and<strong> limited control.</strong></p><h3><strong>Microsoft Azure</strong></h3><p>Microsoft Azure, commonly referred to as <strong>Azure</strong>, is a cloud computing service created by <strong>Microsoft</strong> for building, testing, deploying, and managing applications and services through Microsoft-managed data centers. This platform has a <strong>strong focus on security,</strong> establishing it as a leader in <strong>IaaS security</strong>. Also, as a cloud computing service, it’s <strong>highly scalable while being affordable</strong>.</p><p>As with anything, there are a couple of potential cons with Microsoft Azure. Unlike SaaS platforms where the end-user is consuming information, IaaS platforms, such as Azure, move your business’ computing power from your data center or office to the <strong>cloud</strong>. As with most cloud service providers, <strong>Azure needs to be expertly managed and maintained, which includes patching and server monitoring</strong>.</p><h3><strong>Google Cloud Platform (GCP)</strong></h3><p>Just like AWS and Azure, GCP is a suite of public cloud computing services offered by <strong>Google</strong>. The platform includes a range of hosted services for computing, storage and application development that run on Google hardware.</p><p>Some of the areas where GCP strongly competes with AWS include<strong> instance and payment configurability, privacy and traffic security, cost-efficiency, and Machine Learning capabilities</strong>. GCP also offers several off-the-shelf <strong>APIs</strong> pertaining to computer vision, natural language processing and translation. Machine learning engineers can build models based on Google’s Cloud Machine Learning Engine’s open-source TensorFlow deep learning library.</p><p>Despite the advantages of this competitor, there are some given cons. Core GCP products like BigQuery, Spanner, Datastore are great but very biased with <strong>limited customizations and observability</strong>. Additionally, there is <strong>limited documentation available</strong> and GCP’s customer service has been rumored to be <strong>unresponsive overall</strong>.</p><h3><strong>Hadoop</strong></h3><p>Hadoop is a distributed computing system and environment for very large datasets on computer clusters. It provides massive storage for any kind of data, enormous processing power and the ability to handle virtually limitless concurrent tasks or jobs. This ecosystem also utilizes MapReduce.</p><p><strong>MapReduce</strong> is a programming model or pattern within the Hadoop framework that is used to access big data stored in the Hadoop File System (HDFS). A MapReduce job usually <strong>splits the input dataset into independent chunks</strong> which are processed by the map tasks in a completely <strong>parallel</strong> manner. The framework sorts the outputs of the maps, which are then input to the reduce tasks. Typically both the input and the output of the job are stored in a file-system.</p><p>Instead of using just one system to perform a task, Hadoop and MapReduce allows tasks to be <strong>divided</strong>. Tasks are divided into many subtasks, they’re solved individually, and then<strong> recombined into a final result</strong>.</p><p>Although Hadoop is open source and uses a cost-effective scalable model, it’s mainly designed for dealing with large datasets. <strong>The platform’s efficiency decreases while performing with small amounts of data</strong>. Additionally, Hadoop jobs are mostly written in <strong>Java</strong>, which can be troublesome and error-prone without expertise in that language.</p><h3><strong>PySpark</strong></h3><p>PySpark is an interface for <strong>Apache Spark</strong> in the <strong>Python </strong>programming language. It not only allows you to write Spark applications using Python APIs, but also provides the PySpark shell for interactively analyzing your data in a <strong>distributed environment</strong>. PySpark supports most of Spark’s features such as Spark SQL, DataFrame, Streaming, MLlib (Machine Learning) and Spark Core.</p><p>Some advantages of PySpark is that some Spark jobs can be up to 100x faster than the traditional MapReduce in memory. It also allows for a higher-level query language to implement SQL-like semantics on top of MapReduce. Additionally, PySpark APIs are similar to Python’s <strong>Pandas</strong> and <strong>Scikit-Learn</strong>.</p><p>The original Apache Spark service is written in <strong>Scala</strong>, a programming language popular among big data developers, because of its <strong>scalability</strong> on JVM (Java Virtual Machine). Unfortunately, Python is overall slower and less efficient than Scala. Additionally PySpark is immature compared to Spark and cannot access the internal functioning of Spark for most projects.</p><h3><strong>Choosing the Right Service</strong></h3><p>Without cloud computing, it would be <strong>impossible</strong> for Data Scientists and Machine Learning Engineers to train some of the larger deep learning models that exist today.</p><p>There’s a ton of cloud computing services to choose from, but selecting the right one comes down to factors such as security concerns, software dependencies, manageability, customer service support, and more.</p><p>Each employer will most likely have a preferred technology stack they use company-wide for proprietary data. Until then, there are plenty of resources online to help increase your cloud computing knowledge. You can also go on each provider’s website and read extensively about what their service offers. Ultimately, it’s important to note that with any Data Science skill, there’s no better method of learning than <strong>hands-on</strong> practice with a personal project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4152c1d7a5f8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/what-is-cloud-computing-the-key-to-putting-models-into-production-4152c1d7a5f8">What is Cloud Computing? The Key to Putting Models into Production</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chinese Natural Language (Pre)processing: An Introduction]]></title>
            <link>https://medium.com/data-science/chinese-natural-language-pre-processing-an-introduction-995d16c2705f?source=rss-cde73518869a------2</link>
            <guid isPermaLink="false">https://medium.com/p/995d16c2705f</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[natural-language]]></category>
            <category><![CDATA[hands-on-tutorials]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[editors-pick]]></category>
            <dc:creator><![CDATA[Sidney Kung]]></dc:creator>
            <pubDate>Sat, 21 Nov 2020 00:54:49 GMT</pubDate>
            <atom:updated>2020-12-04T18:08:54.378Z</atom:updated>
            <content:encoded><![CDATA[<h4><a href="https://towardsdatascience.com/tagged/hands-on-tutorials">Hands-on Tutorials</a></h4><h4>A guide to preparing Chinese text data for NLP.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-fLmLcDn69W4XC_MchYy9g.jpeg" /><figcaption>raychan on <a href="https://unsplash.com/photos/vHf8wYS2aeY">unsplash.com</a></figcaption></figure><p>In general, when people think of Natural Language Processing (NLP), they tend to restrict it to English. This is due to the idea that English is the <em>only</em> language that can be applied. Because of this linguistic bias, I decided to investigate<strong> how to preprocess Chinese text data for NLP</strong>.</p><h3></h3><p>Dear Computer Scientists,&quot;Natural Language&quot; is *not* a synonym for &quot;English&quot;. That is all.-Emily</p><p>First, I would like to thank my cohort mate <a href="https://medium.com/u/a18ad826a1f8">David Bruce</a> for pointing out this disparity. In his blog post on <a href="https://towardsdatascience.com/learn-a-language-with-wordclouds-d93c74dd6983">Learning a New Language in a Word Cloud</a>, he shared that Professor Emily M. Bender coined “the Bender Rule” which encourages people to at least name the language(s) they’re working on for NLP.</p><p>So the question is, “how can we perform NLP on Chinese?” In this blog, I’ll be walking through the<strong> basic preprocessing steps </strong>that occur in English NLP, including data cleaning, stemming/lemmatization, tokenization and stop words. <strong>TL;DR: not all of these steps are necessary for Chinese text data!</strong></p><h3>Lexicon Normalization</h3><p>Text normalization is a method for standardizing text to prepare it for the tokenization, vectorization and classification steps. With english, the <strong>first step </strong>would be to convert all text to lowercase. Because Chinese characters are <strong>not capitalized </strong>to begin with, there’s no need for that data cleaning step.</p><p>Next comes <strong>stemming</strong> or <strong>lemmatization</strong>. Compared to English, there is also <strong>no concept of a stem</strong> in Chinese. Therefore, there is <strong>no need to perform this step either</strong>! So far, it seems like that preprocessing Chinese text data requires <strong>less steps</strong> than English text data; making the process (surprisingly) a little easier.</p><p>It’s worth noting, however, that there’s a concept similar to stems in this language, and they’re called Radicals. <strong>Radicals are basically the building blocks of Chinese characters. </strong>All Chinese characters are made up of a finite number of components which are put together in different orders and combinations. Radicals are usually the leftmost part of the character. There are around 200 radicals in Chinese, and they are used to index and categorize characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*m8ssGlCfs22sSQ7Bbh9Z7g.png" /><figcaption>Simon Liversedge on <a href="https://www.researchgate.net/figure/Two-examples-showing-how-single-character-words-meaning-mother-in-the-top-panel-and_fig1_265175086">ResearchGate</a></figcaption></figure><p>For instance, the radicals for female and horse come together for the character mother. This character uses the phonetic sound for horse but the gender indicator of female.</p><p>Therefore, procedures like stemming and lemmatization are not useful for Chinese text data because seperating the radicals would <strong>change the word’s meaning entirely</strong>.</p><p>Another difference is that Chinese handles plurality much differently. A basic example is that instead of a single word for them, it’s split into two characters 他们. We wouldn’t be able to get to the root of this word without completely changing the meaning.</p><p>Just to drive this point even further, the final reason why we can’t preprocess Chinese in the same way is because it uses <strong>different grammatical tenses </strong>for past, present and future. In Chinese, characters are added onto the main verb. This could be considered adding to stem, but it’s a little more tricky because <strong>the additional character could appear at the front or end</strong>, depending on the context. Here is a quick, basic example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*GyflUS1ZL9_fiHzocSR6Nw.png" /><figcaption>image by author</figcaption></figure><p>With stemming and lemmatization in English, you can just remove the ing or ed to get to the root word and meaning. But with Chinese, it’s not that simple because like I mentioned before, there’s no concept of “root word” in Chinese.</p><p>I could go on all day about the differences between English and Chinese. But <strong>the bottom line is that NLP is pretty different between the two languages</strong>, and these fundamental linguistic differences are very important for any computer scientist to understand.</p><h3>Tokenization</h3><p>Before I get into stop words, let’s tokenize some text first. <strong>Tokenizing breaks up text data into shorter pre-set strings</strong>, which help build context and meaning for the machine learning model. For this example, we will be looking a short excerpt from the textbook A New China.</p><blockquote>飞机是今天晚上七点钟准时降落在北京首都国际机场的。学校外事处派的一位张先生接我们。</blockquote><p>Translated to English, it means:</p><blockquote>The plane landed at Beijing Capital International Airport at 7 o’clock this evening. The foreign affairs office sent Mr. Zhang to come pick us up.</blockquote><p>It’s worth noting that <strong>Google Translate somewhat incorrectly translated the second sentence</strong> as “A Mr. Zhang from the school’s foreign affairs office picked us up.” This could be due the <strong>Chinese Room Theory</strong>, which argues that a computer cannot truly have an “understanding” of language, no matter how perfectly things are translated, and no matter how human-like the program behaves.</p><p>For the sake of simplicity, <strong>I’ll only tokenize the first sentence</strong>. We can use <strong>jieba</strong> text segmentation module to tokenize Chinese. Fun fact, “结巴” in Chinese means “to stutter.” Here is a link to their <a href="https://github.com/fxsjy/jieba"><strong>github</strong></a> for more information.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ea1767574020f97738cbadd8c9d682ba/href">https://medium.com/media/ea1767574020f97738cbadd8c9d682ba/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*exQKn86nHdb-SXloSP05Yg.png" /></figure><p>With this output, the tokenization was <strong>somewhat</strong> <strong>successful</strong>. The translated words are as follows: airplane, is, today, night, seven o’clock, punctually, land, in, beijing, capital international airport, and of.</p><p>There are three things that you may immediately notice:</p><ol><li>The output has <strong>tags</strong> next to each word</li><li>Some words were <strong>not fully separated</strong></li><li>There are “useless” words, aka<strong> stop words</strong></li></ol><p>These “tags” label the part of speech. There are 24 part of speech tags and 4 proper name category labels in the <strong>jieba</strong> package’s existing dictionary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*eZioFdBdKVSIlFgT4y05Ag.png" /><figcaption><a href="https://github.com/fxsjy/jieba">jieba github</a></figcaption></figure><p>北京 and 首都国际机场 should have actually been considered a single phrase because that’s the full name of the airport. Also, 七点钟 could have been separated into individual characters; but that’s up for debate.</p><p>To fix the words that should and should not have been separated, we can manually create custom words within the package’s dictionary.</p><pre>jieba.add_word(&#39;北京首都国际机场&#39;, freq=None, tag=&#39;nt&#39;)</pre><p>This line of code sets the name of the airport as a custom token, with the place name tag. We can repeat this code for each of the individual custom words we want to set, and then the tokenization should be able to pick that up if we run it again. Obviously this process can get tedious with a much larger text file, so it’s suggested that you find a well established <strong>dictionary</strong> beforehand, outside of what <strong>jieba</strong> provides by default.</p><h3>Stop Words</h3><p>In NLP, <strong>stop words are “meaningless” words </strong>that make the data too noisy or ambiguous. In our example sentence, the stop words are 是, 在 and 的. We could manually filter them out, but that’s also very tedious. Just like with English, there are <strong>pre-set lists of stop words</strong> out there. There are about 119 official stop words in Chinese, and they can be viewed on <a href="https://countwordsfree.com/stopwords/chinese">this website</a>. Instead of manually removing them, could import the <strong>stopwordsiso</strong> package for a full list of Chinese stop words. More information can be found <a href="https://pypi.org/project/stopwordsiso/">here</a>. And with this, we can easily create code to filter out any stop words in large text data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/48e14a0d0df4ed9df8dc4bf864e4ab84/href">https://medium.com/media/48e14a0d0df4ed9df8dc4bf864e4ab84/href</a></iframe><h3>Next Steps</h3><p>After all of this work, our hypothetical data is ready to be <strong>vectorized</strong> with TF-IDF Factorization and fed into a <strong>classification model</strong>! Obviously with real text data, we would be working with more than just one sentence. And this can present many other challenges.</p><p>This was just a rough introduction to preprocessing Chinese text data for NLP, and <strong>may not totally represent the process for more complex data</strong>.</p><p>And finally, just like with English, further procedures can be done with NLP, such as <strong>sentiment analysis</strong>. Check out <a href="https://towardsdatascience.com/beginners-guide-to-sentiment-analysis-for-simplified-chinese-using-snownlp-ce88a8407efb">this blog</a> about Chinese sentiment analysis using SnowNLP.</p><h3>Additional Resources:</h3><ul><li><a href="https://towardsdatascience.com/the-importance-of-natural-language-processing-for-non-english-languages-ada463697b9d">Blog Post on the Importance of Non-English NLP</a></li><li><a href="https://towardsdatascience.com/word-segmentation-for-languages-without-spaces-between-words-8b100c55124b">Blog Post on Word Segmentation for Languages Without Spaces Between Words</a></li><li><a href="https://levelup.gitconnected.com/how-to-improve-the-performance-of-chinese-text-tokenization-in-python-and-jieba-26add53f3756">Blog Post on Improving jieba’s Tokenization</a></li><li><a href="https://github.com/stopwords-iso/stopwords-zh">Another Chinese Stop Words Package, stopwords-zh</a></li><li><a href="https://investigate.ai/text-analysis/using-tf-idf-with-chinese/">TF-IDF on Chinese Text Data</a></li><li><a href="https://nlp.stanford.edu/projects/chinese-nlp.shtml">Stanford NLP Group’s Study on Chinese NLP &amp; Speech Processing</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=995d16c2705f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/chinese-natural-language-pre-processing-an-introduction-995d16c2705f">Chinese Natural Language (Pre)processing: An Introduction</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adapting Data Science for Non-Binary Inclusivity]]></title>
            <link>https://medium.com/data-science/adapting-data-science-for-non-binary-inclusivity-368f35a560e3?source=rss-cde73518869a------2</link>
            <guid isPermaLink="false">https://medium.com/p/368f35a560e3</guid>
            <category><![CDATA[nonbinary]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[nonbinary-identity]]></category>
            <category><![CDATA[inclusivity]]></category>
            <dc:creator><![CDATA[Sidney Kung]]></dc:creator>
            <pubDate>Thu, 19 Nov 2020 23:51:23 GMT</pubDate>
            <atom:updated>2020-11-20T01:38:28.577Z</atom:updated>
            <content:encoded><![CDATA[<p>Now that I’m ten weeks deep in a fifteen-week Data Science program, there’s still a subject that weighs heavily on my mind. From the very start of the program, all language and educational examples have almost always been <strong>binary</strong>. This makes sense, given that computers themselves are binary machines. But Data Science specifically deals with <strong>real-life human data and problems</strong>. So, it should be able to adapt to the evolving identities of the people it’s about. Additionally, this isn’t a critique of the program that I’m in; this is a <strong>widespread problem across industries.</strong></p><p>As a disclaimer, I’m writing this as an <strong>aspiring</strong> Data Scientist. So, some aspects may be beyond the scope of my current knowledge. Also, I am writing from the perspective of an <strong>ally</strong>; I do not identify as non-binary.</p><p>Additionally, I would like to say a huge “Thank You” to my first coach in the program, Joél Collins. They inspired me to not only stick with the rigorous bootcamp, but also investigate deeper into every issue I encounter. They also generously provided personal experiences for this blog post.</p><p>Initially, I wanted to investigate the general concept of “non-binary” in Data Science. But <strong>a conversation with them unlocked a whole range of insights that I believe are imperative to share</strong>. Therefore, this post will primarily discuss the experiences of non-binary people, as a whole.</p><h3><strong>Understanding What Non-Binary Means</strong></h3><blockquote>“Most people don’t understand what it means to be non-binary because they haven’t been exposed to it.”</blockquote><p>For anyone who may not know, the term<strong> “non-binary” </strong>describes <strong>individuals who experience a gender identity that is neither exclusively male or female</strong>, or even identify between both genders. Non-binary people may identify as genderqueer, gender fluid, agender (without a gender), or something else entirely.</p><p>The antiquated normalization of the gender binary is problematic because a person’s biological sex does not determine their gender identity. One way to combat this is with the normalization of gender-neutral pronouns, like they/them. Although it’s difficult for cisgender people to get used to this language, it’s critical that we use inclusive pronouns for those who exist outside of the normative binary.</p><h3><strong>Non-Binary Experience in Tech</strong></h3><p>It’s no secret that tech was once one of the most <strong>discriminatory</strong> fields, not only for women and people of color; but also for non-binary people. There are countless records of alleged workplace discrimination. <strong>In recent years, there have been increasing efforts to promote non-binary inclusivity</strong>. However, Joél described that non-binary people currently operate in this limbo where they are respected, but people just don’t know how to be <em>respectful</em>. This is because <strong>a majority of people have never been exposed to the concept of “non-binary.”</strong></p><blockquote>“The inclusion of non-binary identity is typically only in company circles, but not discussed in the public sphere.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUTPD1KIXZsaG0FFdeP9bg.jpeg" /><figcaption><a href="https://unsplash.com/@bantersnaps">@bantersnaps</a> on <a href="https://unsplash.com/photos/5U_28ojjgms">unsplash.com</a></figcaption></figure><p>Because of the lack of educational materials available on non-binary identities, people end up asking the first non-binary person they meet for more information. For Joél specifically, most people who inquire about their gender identity or pronouns usually <strong>accidentally approach it in a rude way</strong>. Even if it comes from a well-meaning place. However, they described that they face an internal struggle because despite this uncomfortable feeling, <strong>“at least people are asking questions.”</strong></p><h3><strong>Revolutionary Workplace Protection</strong></h3><p>For Joél, the most impactful moment in their career was on Monday, June 15, 2020. But for all of their coworkers, it was just another day at work. On that day, the Supreme Court ruled that the 1964 Civil Rights Act protects gay, lesbian and transgender employees from<strong> discrimination based on sex</strong>. This monumental ruling lifted a huge weight off their chest.</p><blockquote>“This means that by federal law, I can no longer be fired solely based on my gender identity.”</blockquote><p>Although their current workplace consistently makes efforts to promote inclusivity, Joél explained that<strong> “you never really know what could happen.” </strong>This decision was life changing for them, <strong>but</strong> <strong>no one else really noticed.</strong> And this representative of the overall experience of being a non-binary person. They expressed that because not that many people live through this experience, <strong>it can be very isolating</strong>. And despite this new protection, <strong>there is still an obvious underrepresentation of non-binary people in tech</strong>; and all other industries.</p><h3><strong>Binary Data Science</strong></h3><p>The next step is to examine why Data Science is such a binary field, and the answer should be obvious. <strong>Pretty much everything we do in this field is binary.</strong> From the way that computers store data, to how we write our code. In the Binary system, 0s and 1s are represented by “Off” and “On.” This system is best suited to the optical and magnetic storage components to a computer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nNDwamhwR_SNJJIY5dNdlw.jpeg" /><figcaption><a href="https://unsplash.com/@alexkixa">@alexkixa</a> on <a href="https://unsplash.com/photos/FO7JIlwjOtU">unsplash.com</a></figcaption></figure><p>From the very beginning of my data science education, I noticed that every example is binary. For example, while learning Pandas, the simplest concepts use “Male” vs. “Female.” However, it’s important to acknowledge that things exist outside of the binary, especially when teaching newcomers. <strong>Ultimately, the binary is harmful for people who live outside of it.</strong></p><h3><strong>Machine Learning and the Human Experience</strong></h3><p>So far on my data science journey, I’ve only learned binary classification models. Such as K Nearest Neighbors, Logistic Regression, Decision Trees and Random Forest. Although some of these can be used in multiclass situations, I’m curious to see what other multilabel classification models are out there. And<strong> whether they are capable of “predicting” or “understanding” non-binary characteristics.</strong> It’s worth noting that this subject is obviously outside of my scope of knowledge right now, but it’s something that I want to keep in mind as I learn more about the field.</p><p>The problem is that multiclass classification makes the assumption that <strong>each sample is assigned to one and only one label.</strong> For example, a fruit can be either an apple or a pear, but not both at the same time. Although these multiclass models deal with more than two classifications, <strong>the aspect of binary categorization still remains</strong>. And we can see how that could be problematic towards classifying human data because: what if someone belongs to more than one category?</p><p>I hypothesize that <strong>machine learning will never be able to truly capture the spectrum that is the human experience</strong>. For example, I don’t think a machine learning model will ever be able to fully predict a non-binary person’s gender identity, no matter how specific the predictors are. In this hypothetical scenario, we would build the model by fitting it to <strong>features</strong> of what we deem are <strong>traditional identifiers for each gender</strong>. This comes with <strong>obvious bias towards the antiquated gender binary</strong>.</p><p>Because of the <strong>class imbalance</strong> that comes with any <strong>underrepresented</strong> demographic, the model would appear to have a high accuracy score. But if we were able to somehow remedy that imbalance, the model would still be terrible at predicting every form of gender.</p><p>This dilemma is troubling because Data Science specifically handles human problems. So, if it can’t adapt to nuances like gender identity, then there is a clear limitation on progress.</p><h3><strong>Towards the Future</strong></h3><p>As I mentioned, Data Science obviously deals with real-world data and real-world problems. Therefore, <strong>it needs to be able to robustly adapt to evolving norms</strong>. Before this can even happen, overall <strong>society needs to drastically increase inclusivity for the non-binary community. </strong>According to Joél, the first thing that needs to happen is that people need to be familiarized with the concept. Destigmatizing or demystifying the concept of “non-binary” can promote monumental progress on its own.</p><p>Near the end of our conversation, we came to the conclusion that there has always been a cycle of fighting for inclusivity among marginalized communities. A few decades ago, it was the gay and queer community fighting for equality and rights. Looking at the progress that has been made today <strong>gives hope to the non-binary community that they can someday achieve the same equality in the near future.</strong></p><p>A small way that readers of this article can contribute to this movement is to <strong>announce your pronouns.</strong> Even if you’re cisgender, it’s imperative to<strong> create a space for the discussion of pronouns</strong>. And if someone hasn’t announced their own pronouns, <strong>the default should always be they/them</strong>. Even if this consideration seems small or arbitrary for you, it could be major for someone in the non-binary community.</p><p>As a closing statement, I want to reiterate that I’ve written this blog from the perspective of an ally with the generous help of my previous coach, Joél Collins. If you identify as non-binary and feel that I’ve misrepresented anything, please reach out! And if you don’t identify as non-binary, I hope that you learned a little more about the community.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=368f35a560e3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/adapting-data-science-for-non-binary-inclusivity-368f35a560e3">Adapting Data Science for Non-Binary Inclusivity</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>