<?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 Henok Yemam on Medium]]></title>
        <description><![CDATA[Stories by Henok Yemam on Medium]]></description>
        <link>https://medium.com/@henokyemam?source=rss-b253de4ec8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hmGGz4CUEP05QaI_</url>
            <title>Stories by Henok Yemam on Medium</title>
            <link>https://medium.com/@henokyemam?source=rss-b253de4ec8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:38:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@henokyemam/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[A project-driven approach to learning PySpark]]></title>
            <link>https://medium.com/data-science/a-project-driven-approach-to-learning-pyspark-4533c85f52b3?source=rss-b253de4ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4533c85f52b3</guid>
            <category><![CDATA[data-wrangling]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pyspark]]></category>
            <dc:creator><![CDATA[Henok Yemam]]></dc:creator>
            <pubDate>Mon, 23 Nov 2020 13:52:49 GMT</pubDate>
            <atom:updated>2020-12-15T19:58:04.363Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Project-driven Approach to Learning PySpark (Part 1)</h3><h4>Learning PySpark Locally Before Moving to Multi-node Cluster Databricks Environment</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*3fJDcl_pcxOpC7-w" /><figcaption><a href="https://images.unsplash.com/photo-1517594422361-5eeb8ae275a9?ixlib=rb-1.2.1&amp;auto=format&amp;fit=crop&amp;w=1500&amp;q=80">Source</a></figcaption></figure><p>I have come across several frustrating tutorials on PySpark promising to teach me PySpark in under five minutes. They are click baits and lack the necessary depth to get me started and keep me rolling. So, I decided to write an article in hopes of helping others like myself with a project-driven tutorial as opposed to showing you code snippets and know-hows. I will primarily focus on a list of problems and use PySpark to answer the questions. You may follow along by grabbing the dataset and code <a href="https://github.com/henokyemam/Wrangling_PySpark">here</a>. At the end of this article, I have also included excellent resources I enjoyed learning from. Happy Learning!</p><h4>Guiding Questions:</h4><ol><li>Who are the winners of the D1 division in the Germany Football Association (Bundesliga) in the last decade?</li><li>Which teams have been relegated in the past 10 years?</li><li>Does Octoberfest affect the performance of Bundesliga?</li><li>Which season of Bundesliga was the most competitive in the last decade?</li><li>What&#39;s the best month to watch Bundesliga?</li></ol><h4>Setting up Environment and Installing Packages</h4><p>I advise you to start this journey by creating <a href="https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands">a new conda environment</a> to avoid conflicts and enjoy your learning with fewer obstacles. Below is a code snippet of what I used to install PySpark, you may follow along with the same code if you are using a mac. Otherwise, check this <a href="https://www.datacamp.com/community/tutorials/installation-of-pyspark">link</a> for easy to follow step-by-step instruction.</p><pre>$ conda create --name sparkenv<br>$ conda activate sparkenv<br>$ brew update<br>$ brew cask install adoptopenjdk/openjdk/adoptopenjdk8<br>$ pip install pyspark<br>$ pip install findspark</pre><p>PySpark is an excellent python gateway to the Apache <a href="http://acme.byu.edu/wp-content/uploads/2020/01/Spark.pdf">Spark</a> ecosystem. It allows you to parallelize your data processing across distributed nodes or clusters. That may not mean much to you if you are just working on a single laptop and not on the cloud. But that doesn&#39;t mean you still can’t take advantage of the API to learn how to integrate it into your data science workflow. I have learned to enjoy PySpark’s smooth integration of SQL with data frames. If you know the basics of SQL and simple pandas dataframe manipulations, then you will certainly appreciate the intuitive PySpark’s SQL function.</p><p>Let’s start by importing the necessary modules.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/06b01edc52a6f749054346eebfb7cec1/href">https://medium.com/media/06b01edc52a6f749054346eebfb7cec1/href</a></iframe><h4>Entering into the Apache Spark Ecosystem</h4><p>I use SparkSession which is <em>the entry point to programming Spark with the Dataset and DataFrame API (</em><a href="https://spark.apache.org/docs/latest/api/python/pyspark.sql.html"><em>source</em></a><em>).</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5da9e804e9cd9924d033159b4e0166ea/href">https://medium.com/media/5da9e804e9cd9924d033159b4e0166ea/href</a></iframe><p>Now the fun begins. Just like Panda’s dataframe, PySpark can open several types of file types. For simplicity, I have chosen to use CSV files.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/df0950a4f7c19269576be14df4ae3a72/href">https://medium.com/media/df0950a4f7c19269576be14df4ae3a72/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g1j8Oum8Cd0pL1k6yYEEPw.png" /></figure><p>You may recall panda’s dataframe.head() that shows the top five rows and you may be turned off by the poor aesthetics of PySparks output. You worry not, my friend, there is an easy fix for this by converting the top five rows of your PySpark dataframe to Pandas dataframe. However, I caution you to not be too attached to this command as that defeats the purpose of learning PySpark. This point will come more clear as you get more experience working with PySpark. Notice that the code below and the one after that are self-explanatory with functions like <em>withColumnRenamed</em>, <em>limit,</em> and <em>toPandas</em>. As with all things Python, the syntax is beginner-friendly and intuitive.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/506e03d661da890877e59836a740baef/href">https://medium.com/media/506e03d661da890877e59836a740baef/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ngYOngLbBLJoCeEkV1ilpA.png" /></figure><p>Happy now, pandas fans?</p><p>Ok, let’s answer the first leading question.</p><h4>Who are the winners of the D1 division in the Germany Football Association (Bundesliga) between 2000–2010?</h4><p>To answer this question, it requires a bit of data manipulation. I have chosen the most straight forward approach so it’s easier to follow. The design is to aggregate the home and away game results separately creating two dataframes: home and away.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/90bdc4b2f4b05fa73690ce60a58bb2a3/href">https://medium.com/media/90bdc4b2f4b05fa73690ce60a58bb2a3/href</a></iframe><p>Then, inner join them on ‘Team’ and ‘Season’ fields to create a single dataframe containing game level aggregation: table. After that, I use a basic window function to further aggregate game statistics on season level and rank them based on winning percentage and goal differentials. The reason why I added goal differentials is because it’s used as a tie-breaker in soccer.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cad6b7aaa6d1d6b9dfbea4fd0f027c09/href">https://medium.com/media/cad6b7aaa6d1d6b9dfbea4fd0f027c09/href</a></iframe><p>The result you get at the end is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WrHw3gQmaDpRVlqdU55Ivw.png" /></figure><p>Bayern Munich looks like they won the Bundesliga 6 times during 2000–2010! Was the code easy to read and follow? With a bit of SQL knowledge, you could also dive into the data and answer the rest of the leading questions. I have answered them in this <a href="https://github.com/henokyemam/Wrangling_PySpark/blob/main/02_SparkTraining.ipynb">notebook</a>, feel free to compare your solution with mine.</p><h3>Conclusion</h3><p>Last but not least, as promised earlier, I used the following resources to get myself started with PySpark. I hope you find my project-driven approach to learning PySpark a better way to get yourself started and get rolling. I would advise you to pick a dataset that you like to explore and use PySpark to do your data cleaning and analysis instead of using Pandas. At first, it may be frustrating to keep looking up the syntax. But with a bit of patience, you will soon realize how powerful and intuitive PySpark is. Once you have the experience of working on your own laptop (single node cluster), upgrading to a multi-node cluster databricks environment will be a smoother transition. Happy learning!</p><p><a href="https://sparkbyexamples.com/pyspark-tutorial/#what-is-pyspark">Spark By Examples</a></p><p><a href="https://spark.apache.org/docs/latest/api/python/pyspark.sql.html">PySpark SQL Module</a></p><p><a href="https://www.youtube.com/watch?v=3kX5ry0RCOQ&amp;list=PL3N9eeOlCrP7MKqbOG3WL_zSJrEmJXLPx">Apache Spark For Data Scientist</a> (YouTube)</p><p><a href="https://www.sqlite.org/windowfunctions.html#:~:text=A%20window%20function%20is%20an,it%20is%20a%20window%20function.">Window Functions</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4533c85f52b3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/a-project-driven-approach-to-learning-pyspark-4533c85f52b3">A project-driven approach to learning PySpark</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[Fighting MisInformation and Fake News with Simple Analysis]]></title>
            <link>https://henokyemam.medium.com/fighting-misinformation-and-fake-news-with-simple-analysis-278e86ba1040?source=rss-b253de4ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/278e86ba1040</guid>
            <category><![CDATA[white-supremacy]]></category>
            <category><![CDATA[systemic-racism]]></category>
            <category><![CDATA[fake-news]]></category>
            <category><![CDATA[white-privilege]]></category>
            <category><![CDATA[misinformation]]></category>
            <dc:creator><![CDATA[Henok Yemam]]></dc:creator>
            <pubDate>Sun, 01 Nov 2020 16:28:53 GMT</pubDate>
            <atom:updated>2020-11-03T17:17:40.266Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fighting MisInformation and False Narratives with Simple Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*33-0AmNJ-k_BzUj-njyUcA.png" /><figcaption><a href="https://twitter.com/CHSommers/status/1322226694099509251">Source</a></figcaption></figure><p>I wrote an article a few days ago published<a href="https://henokyemam.medium.com/escaping-the-endless-bickering-and-nuanced-less-dialogues-d7b0a6728608"> here</a> that strongly criticized political intolerance and suggested alternative peaceful coexistence. Right after I published the article, I came across a<a href="https://twitter.com/CHSommers/status/1322226694099509251"> tweet</a> from Dr. Sommers that almost made me take down my previous article in fear of sounding like a hypocrite. At face value, Dr. Sommers seems genuinely concerned about college enrollment rates for 18–to 24-year-old white men. However, the tweet was counterintuitive to the preconceived notion of the white man at the top of the patriarchal society. The tweet also didn’t bother pointing out white women were enrolled at much higher rates than any of the other demographics. So, my data science instincts immediately kicked in and started firing questions like what is the historical rate of college enrollment for white males? Why didn’t the author include the enrollment percentage for Black and Hispanic men? Fortunately, the author reveals the Department of Education as her source. I encourage you to take a closer look at the<a href="https://nces.ed.gov/programs/digest/d19/tables/dt19_302.60.asp"> source</a> for yourself because I did.</p><p>Before I lay out my arguments for and against the seemingly benign tweet, let me give you some background information on the author. The author of the tweet is<a href="https://www.aei.org/profile/christina-hoff-sommers/"> Dr. Christina Sommers</a>, a former philosophy professor at Clark University who is now employed by the conservative think tank <a href="https://www.aei.org/">American Enterprise Institute</a>. She is the author of a book titled “<a href="https://www.amazon.com/War-Against-Boys-Misguided-Policies/dp/1501125427/ref=sr_1_1?dchild=1&amp;keywords=the+war+against+boys&amp;qid=1604149072&amp;sr=8-1">The War Against Boys</a>”. If you don’t have time to read the book, check out her<a href="https://www.theatlantic.com/magazine/archive/2000/05/the-war-against-boys/304659/"> article</a> on The Atlantic that summarizes the main points. There are several data analysis tactics Dr. Sommers used to spread misinformation and I will break down the tactics below. You may follow along with the simple analysis I did<a href="https://github.com/henokyemam/Fighting-MisInformation/blob/main/DataAnalysis.ipynb"> here</a>.</p><h4>1. Presenting Too Many Variables To Misrepresent Data</h4><p>As I mentioned earlier, it seemed odd that men and women statistics were shown on the same plot in addition to racial variability. Why does that matter? It matters because there are two variables on the graph: race and sex. This leads to<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4017459/"> unreliable results</a> due to a<a href="https://en.wikipedia.org/wiki/Confounding"> confounding variable</a> which is a fancy way of saying you didn’t account for an extra factor. It also seemed strange that the author picked a single year to do her comparison. So, how about we untangle the race/sex variables while we look at the historical differences among the races and sexes?</p><h4>1a. Enrollment Differences among the Races</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cHgHpf4yCX97o3tTvf3MRg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wsJ5Uo7riH8duNKDRqQqpg.png" /><figcaption>Left(Men) and Right(Women) race variability of college enrollment in America from 1972–2018.</figcaption></figure><p>When removing the gender variable, both white men and women have a higher enrollment rate than black and Hispanic men/women. To my surprise, the differences among men have been widening since the 1970s, the post-Vietnam war generation. As we move past the economic stagnation of<a href="https://en.wikipedia.org/wiki/1973%E2%80%931975_recession"> the 70s recession</a>, the enrollment gap between white women (blue) and the rest widens significantly in the years 1978–2008. This clearly shows why people of color are at a disadvantage when it comes to college enrollment. After 2008, the gap in enrollment between white men or women vs people of color narrowed appreciably which is a cause for celebration. It should be obvious that the trend for all the races is going up which is another cause for celebration.</p><p>A few interesting questions I asked myself while staring at the graph were: how does the college completion rate look among the different races? What is the driving factor for the dropout rates? What is the return in college education among the races?</p><h4>1b. Enrollment Differences among the Sexes</h4><p>Lastly, let’s compare the historical enrollment among the sexes, and this may be the main concern of Dr. Christina Sommers. I encourage you to check out her channel on youtube:<a href="https://www.youtube.com/playlist?list=PLytTJqkSQqtr2se5wbDlvFhUt0K4ewRt8"> <em>The Factual Feminist</em></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R5o4IDQ4nXY8PDN-5_6oLw.png" /><figcaption>Women vs Men college enrollment in college (1972–2018)</figcaption></figure><p>The data shows women’s college enrollment has been trending up at a higher rate than men since 1987. According to research, some of the stated reasons are an<a href="https://www.sciencedirect.com/science/article/abs/pii/S0272775706000458"> increase in high school performance by young women</a>,<a href="https://sci-hub.se/https://www.sciencedirect.com/science/article/abs/pii/S0272775715000412"> policies, and changes to college entrance requirements</a> favoring females and the rise of unaddressed<a href="https://pubs.aeaweb.org/doi/pdfplus/10.1257/jep.20.4.133?source=post_page---------------------------"> problematic behaviors in males</a>. I think the college enrollment differences among the sexes is a cause for concern because research on understanding the discrepancies seem to be lacking in depth.</p><h4>2. Omitting Data to Tell a Story that Fits a Narrative</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*obkP7p8-q8YBe40i50mg3Q.png" /><figcaption>Truncated graph (baseline 30%) to skew the data and tell a misleading story.</figcaption></figure><p>The graph she posted is a truncated graph with a shifted baseline of 30% which I recreated using the data from the Department of Education. The decision to use a truncated graph may seem innocent to untrained eyes, however, the purpose is to<a href="https://venngage.com/blog/misleading-graphs/"> exaggerate group differences</a> and skew the graph to fit her narrative. In addition, the author purposefully didn’t present the data in its entirety to fit her agenda. Do you see why she omitted black and Hispanic men from her plot on the tweet? The picture looks really bad with those demographics included. However, the intentional omission glaringly shows what she is most concerned with: white young men. If she cared enough about American college men in general, she would have shown the complete picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1uLQVoM2L2A3pwFYl2umyQ.png" /><figcaption>The graph shows the complete picture starting with o% baseline.</figcaption></figure><p>In lieu of representing the data accurately, look at the graph with a baseline of 0% and all the demographics included. The differences don’t seem as stark as the graph Dr. Sommers showed despite using the same exact data. Contrary to the point she is making, Black and Hispanic men are disproportionately enrolled at a lower percentage than any other demographics.</p><p>I really hope that I have demonstrated how Dr. Sommers intentionally misleads audiences by misrepresenting the data. In the information age, we need to be on the lookout for misinformation based on data misrepresentation and fight the spread of fake news on social media. Unfortunately, educated people like Dr. Sommers could sometimes be part of the problem instead of being the gatekeepers of unbiased science and research. However, you and I could arm ourselves against misleading data representations with simple analytical skills to stop these bad actors from spreading false narratives.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=278e86ba1040" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Five Things You can do with Jupyter and Allegro Trains]]></title>
            <link>https://medium.com/swlh/five-things-you-can-do-with-jupyter-and-allegro-trains-4344455384dc?source=rss-b253de4ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4344455384dc</guid>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai-platform]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <dc:creator><![CDATA[Henok Yemam]]></dc:creator>
            <pubDate>Mon, 21 Sep 2020 15:44:39 GMT</pubDate>
            <atom:updated>2020-09-21T15:44:39.449Z</atom:updated>
            <content:encoded><![CDATA[<h3>Get more out of your AI / MLIDE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mjnef3trv9q99NwJ" /></figure><p>The positive effects of Artificial Intelligence (AI) in our everyday life are no longer disputable with our ever-increasing reliance on its applications. In the early days of the internet, the cost of infrastructure limited the people who can have access to it. Contrary to those days, open-source platforms have simplified the entry to AI significantly, so practically anyone with an internet and a decent laptop could leverage these tools. Even though most people who hear about AI are mostly enamored by fancy machine learning (ML) algorithms, the infrastructures that provide these algorithms the playground to flex their muscles are mostly looked down upon. This is to be expected just like people are more excited about computer games than the motherboard of a computer. I would argue that software such as <a href="https://www.jetbrains.com/pycharm/">PyCharm</a>, <a href="https://code.visualstudio.com/">Visual Studio Code</a>, <a href="https://jupyter.org/">Jupyter Notebook</a> and <a href="http://t.allegro.ai/git_trains_h1">Allegro Trains</a> are the motherboard of AI whereas algorithms are computer games.</p><p>There are several blog posts and articles dedicated to explaining the latter, so allow me to tell you five things you can do with a combination of the former- Jupyter notebook/lab and Allegro Trains.</p><ol><li><strong>AutoLogging</strong></li></ol><p>Jupyter is the archetype experimentation IDE for proof-of-concept. It allows you to import modules, execute your code and display your graphs/charts inline. However, this same freedom comes with a cost of messy notebooks and reproducibility issues. This is where Trains’ auto logging feature comes in handy. By adding <a href="https://allegro.ai/docs/quick_start/quick_start/?utm_source=h_blog&amp;utm_medium=referral&amp;utm_campaign=trains_c">two lines of code</a> at the top cell of your notebook, your debugging simply becomes a matter of looking at your logging file on the Trains server. This saves you time and makes your code reproducible. Additionally, all of your packages and their current versions are saved neatly on the Trains server. Last but not least, your executable code is placed in a .py file so others could reproduce your work on their own machine.</p><p><strong>2. Versioning</strong></p><p>The need for experimentation makes versioning inevitable in ML. This <a href="https://towardsdatascience.com/version-control-with-jupyter-notebooks-f096f4d7035a">article</a> talks about ways you can get around the lack of versioning in Jupyter which I encourage you to read. However, if you don’t want to add unnecessary steps to your Jupyter code, just use the two lines of code I mentioned earlier and Trains will take care of the versioning for you. Read my <a href="https://towardsdatascience.com/managing-ml-projects-allegro-trains-vs-github-95c2377dd86c">article here</a> comparing ML project management with GitHub vs Trains.</p><p><strong>3. Hyperparameter Optimization</strong></p><p>Machine learning’s power comes from extracting useful information from structured data. It’s simply difficult to know if an ML model will perform well on a given data without experimenting with various features, hyperparameters and algorithms. You can perform all of these in Jupyter but the chances of you running in a self-defeating circle of experiments is high due to the difficulty of producing a viable model. Thus, automating this process of selecting the best ML model can swiftly be done using Trains Hyperparameter Optimization feature. Check out this <a href="https://allegro.ai/docs/tutorials/tutorial_hyper_opt/?utm_source=h_blog&amp;utm_medium=referral&amp;utm_campaign=trains_c">tutorial</a> on how to use Trains Hyperparameter Optimization.</p><p><strong>4. Live-tracking</strong></p><p>As I mentioned above, picking the best model may mean the simplest model that is the least GPU/CPU intensive. Although you could hack this on Jupyter by using a memory profiler and writing code that gathers the metrics of your ML/DL model, Trains could take care of that for you with a <a href="http://t.allegro.ai/git_trains_agent_h1">Trains Agent</a>. Once the worker daemons are unleashed, your only job will be to enjoy the fruits of your labor by watching the dashboard that live-tracks the performance of your model as well as network and computing resources. This makes picking the best performing model much simpler and straightforward.</p><p><strong>5. Team collaboration</strong></p><p>I would say this is the main reason why Trains was designed by the <a href="https://allegro.ai/?utm_source=h_blog&amp;utm_medium=referral&amp;utm_campaign=trains_c">Allegro AI</a> team. AI is the epitome of an interdisciplinary field. This is very evident with data engineers building data pipelines, data scientists performing experimentation, and machine learning engineers deploying models. In reality, this process is not as straightforward and requires collaboration by sharing code, data, and on-going modeling experiments. The current adopted workflow for team collaboration is Jupyter or another IDE plus <a href="https://github.com/">GitHub</a>. However, Trains for team collaboration is a superior alternative to this due to its out-of-box solution such as environment replication, cross-platform compatibility, data sharing, versioning, and remote control over a shared server. Trains ease of integration with platforms that have already won the hearts of the AI community also makes it an easier choice.</p><p>It’s my hope the above five pointers have given you the incentive to use the simple yet powerful combination of Jupyter and Allegro Trains. I also hope I will come across your exciting experimentations using these tools. I can say that it took me some time to find a balanced development stack, but since I’ve nailed it, I didn’t look back! feel free to reach out to me on <a href="https://www.linkedin.com/in/henokyemam/">LinkedIn</a> or <a href="https://twitter.com/henokadem">Twitter</a> to chat more about these tools or collaboration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4344455384dc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/five-things-you-can-do-with-jupyter-and-allegro-trains-4344455384dc">Five Things You can do with Jupyter and Allegro Trains</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[Machine Learning with Jupyter: Solving the Workflow Management Problem using Open-platforms]]></title>
            <link>https://medium.com/data-science/machine-learning-with-jupyter-solving-the-workflow-management-problem-using-open-platforms-e1cb70ba85ef?source=rss-b253de4ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1cb70ba85ef</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[open-source-software]]></category>
            <category><![CDATA[aritifical-intelligence]]></category>
            <dc:creator><![CDATA[Henok Yemam]]></dc:creator>
            <pubDate>Thu, 27 Aug 2020 20:36:04 GMT</pubDate>
            <atom:updated>2020-08-31T02:15:04.483Z</atom:updated>
            <content:encoded><![CDATA[<p>The infamous data science workflow with interconnected circles of data acquisition, wrangling, analysis, and reporting understates the multi-connectivity and non-linearity of these components. The same is true for machine learning and deep learning workflows. I understand the need for oversimplification is expedient in presentations and executive summaries. However, it may paint unrealistic pictures, hide the intricacies of ML development and conceal the realities of the mess. This brings me to the tools of the trade or more commonly referred as the infrastructure of artificial intelligence which is the vehicle under which all libraries, experimentations, designs and creative minds meet. These humble infrastructures tend to be overlooked and underappreciated but their glaring importance can’t be overstated. I will explain a couple of these very tools that could be used in tandem to improve your workflow, accountability of data exploration, and lower the time and resources to go from proof-of-concept (POC) to deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SkfAQ1VoiR6B3sRhGm1sSA.png" /><figcaption>Simplified ML/DL Pipeline</figcaption></figure><h3><strong>Open-Source Software</strong></h3><p>Before you are on the stage with a turtleneck shirt and casual blue jeans to reveal your data-intensive breakthrough product, the first step is to choose software to tackle the complex terrains of machine learning. Lucky for you, there are excellent open-software platforms such as Apache Spark, Jupyter, TensorFlow, PostgreSQL, and many more to get you started. The recent addition to my list is<a href="http://t.allegro.ai/git_trains_h1"> Allegro Trains</a> which I am a huge proponent of. As a working data scientist, I have five criteria before choosing to use open-source software. These are:</p><ol><li>Availability and ease of use for POC</li><li>Reproducibility and collaboration</li><li>Cross-platform compatibility</li><li>Resource optimization</li><li>Productivity boost relative to the learning rate.</li></ol><p>In the spirits of these criteria, let’s explore Jupyter and Trains.</p><h3><strong>Jupyter and Allegro Trains</strong></h3><p>Jupyter notebook is the de facto gateway to interactive computing for aspiring data scientists and engineers. It offers quick feedback in the form of errors or visual displays and allows users to test out their rudimentary ideas. It’s undoubtedly the perfect tool for POC in addition to being language agnostic and offering text through Markdown cells. Jupyter Lab adds modularity to the notebooks so you are not opening multiple tabs with each notebook. There is also<a href="https://jupyterhub.readthedocs.io/en/stable/"> JupyterHub</a> which allows multiple users to share notebooks. These are all great platforms to get some hands-on experience.</p><p>The problem comes when you are tackling complex projects where a large number of iterations and experimentations, crucial code and resource optimizations, versioning and collaboration, and data integration and deployment are needed. These are the bottlenecks of bringing data-driven products to the market. As a result, AI architectures that incorporate these features in addition to the five criteria above become a necessity to accelerate R&amp;D to market stages with faster ROI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*6sgSLNRHUUcwWa_f" /></figure><p>Figure 1: Machine learning project management by Trains</p><h3><strong>Why Allegro Trains?</strong></h3><p>Take a look at the dummy four projects in <strong>figure 1 </strong>and imagine if you were running these projects on Jupyter, the level of difficulty to keep the purpose of each notebook quickly becomes a task of its own. You could solve this issue by setting up a git repository to handle your versioning needs and manage your progress. You could also install a memory profiler to manage your resource allocation to each task. What about automating your ML models? You could explore the growing list of<a href="https://mljar.com/blog/automl-software-list/"> AutoML</a>. If you are starting to realize that your ML project complexity is rising with each step to completion, then you are not the only one. This is a common problem and the solution should be addressed with a singular project hub. This is precisely why Allegro Trains was developed.</p><p>Allegro Trains puts a stop to these all-too-common infrastructure problems. Instead of patching your problems with countless modules, it’s time to bring maturity to ML with an encompassing solution. Trains provides a simple MLOps and AI infrastructure solution to speed up machine/deep learning projects from R&amp;D to deployment. It allows data professionals to take charge of implementing creative insights without the need to worry about messy notebooks, interruption to solve versioning issues, model comparisons, automatic logging, performance tracking, and even CPU/GPU/IO resource allocations. In short, it meets my five-criterion for using open-source software. It also has<a href="https://allegro.ai/docs/tutorials/tutorial_automl/"> AutoML</a> to expedite experimentation and the capability to terminate resource-intensive or underperforming tasks from the Web UI.</p><p>I would like to leave you with this last remark. The ability to use open-platforms in tandem to bring your exciting ideas and R&amp;D to market has become a matter of simple installations. Jupyter is there for your needs of exploration and <a href="https://allegro.ai/trains-open-source/?utm_source=h_blog&amp;utm_medium=referral&amp;utm_campaign=trains_c">Allegro Trains</a> tracks your every progress from POC to optimization and collaboration across teams to deployment with <a href="http://t.allegro.ai/git_trains_server_h1">Trains Server</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1cb70ba85ef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/machine-learning-with-jupyter-solving-the-workflow-management-problem-using-open-platforms-e1cb70ba85ef">Machine Learning with Jupyter: Solving the Workflow Management Problem using Open-platforms</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[Accelerating my COVID-19 DL project with Allegro Trains]]></title>
            <link>https://medium.com/data-science/accelerating-my-covid-19-dl-project-with-allegro-trains-c0ef24a55f80?source=rss-b253de4ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0ef24a55f80</guid>
            <category><![CDATA[project-manager]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[aritificial-intelligence]]></category>
            <dc:creator><![CDATA[Henok Yemam]]></dc:creator>
            <pubDate>Sat, 25 Jul 2020 22:18:04 GMT</pubDate>
            <atom:updated>2020-12-09T17:51:00.546Z</atom:updated>
            <content:encoded><![CDATA[<h3>Accelerating my COVID-19 Deep Learning Project with Allegro Trains</h3><h4>Allegro Trains will take you out of the village!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uPDU1PzynruMW2vK" /><figcaption><a href="https://www.shutterstock.com/image-photo/carrying-out-description-radiographs-patient-copd-757772383">Source</a>: Carrying out a description of the radiographs of a patient with COPD.</figcaption></figure><p>The current global pandemic caused by the COVID-19 virus has threatened the sanctity of our humanity and the well-being of our societies at large. Similar to times of war, the pandemic has also given us the opportunity to appreciate the things we take for granted such as health workers, food suppliers, drivers, grocery store clerks and many others who are in the frontlines keeping us safe at this difficult time, Salute! While they are out fighting the good fight on our behalf, how about you and I get some work done?</p><p>Unfortunately, the pandemic has also brought us domain deficient insights from data scientists which are becoming<a href="https://blog.datasciencedojo.com/covid19-dunning-kruger-effect-hippocratic-oath-of-a-data-scientist/"> pervasive</a>. Therefore, I want to avoid similar pitfalls which is why I want to start with the following disclaimer. The purpose of this blog is to demonstrate how you can use <a href="https://allegro.ai/trains-open-source/?utm_source=h_blog&amp;utm_medium=referral&amp;utm_campaign=trains_c">Allegro Trains</a> for managing your machine/deep learning project to increase your productivity and improve workflow.</p><p><strong>First Stop: Exploring the Dataset</strong></p><p>I have two reasons why I chose this<a href="https://www.kaggle.com/bachrr/covid-chest-xray"> COVID-19 chest x-ray dataset</a>. First, it’s fairly small and ties to current events so you will be able to follow me with ease. Second, the dataset contains numerical and categorical features on top of X-ray/CT scans of lung inflicted patients so that we can apply both traditional machine learning solutions as well as neural networks. Any insights or observations from this blog shouldn’t be used to make any decision with the exception of the stated objective. With that in mind, thanks for joining me on my second ride of Allegro Trains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iB9bPoFMkdu70Mv2" /><figcaption>Experiment manager hub, Allegro Trains</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Cd6emS5cfydJfMom" /><figcaption>Raw DataFrame of the dataset.</figcaption></figure><p><strong>Second Stop: Assembling the little parts</strong></p><p>Heterogeneous datasets like the one above have become common as the sophistication of data engineering pipelines, storage, and computing power skyrocket. With that comes the potential to uncover insights using a plethora of algorithms and data mining techniques. It also presents us with a unique problem of managing exciting experimentations under one umbrella. This could mean bringing a team of data engineers to build the data pipelines for data ingestion, data scientists to massage and experiment with the data, machine learning engineers to deliver models that are portable, scalable, and most of all operational. It takes a whole village to build an operational model!</p><p>The common steps taken before deploying a machine learning model include ingesting data, creating a group Github repository for versioning, data wrangling, and data experimentation locally or on the cloud, installing dependencies to reproduce your colleagues result, figuring out the best model which is no easy task of its own, packaging the model and so on and so forth. If you are starting to pick up the emerging pattern which is the need for a high-level machine learning infrastructure or hub, then you may be onto something. This is where Allegro Trains comes as your ML/DL project management system that takes care of your version control needs, automated code and experiment tracking, model quality control, and performance logging of your experiments even at the machine level.</p><blockquote>Buckle up, Allegro Trains will take you out of the village!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/0*-5XNgMIVxW1ronBa" /><figcaption>Trains capabilities I have discovered thus far</figcaption></figure><p><strong>Third Stop: Focusing on the research problem</strong></p><p>But first, let’s get back to the important question at hand. We may be able to figure out the best attribute that can predict the survival rate in a patient inflicted with COVID-19. Is it age? Sex? Diagnosis modality? The specialty of the health worker who made the diagnosis? We also have the X-ray/CT scans which show the progress of the disease. In real life, we would need health professionals to give us the necessary domain-knowledge to figure out the best possible route but for now, the best we could do is data wrangling and visual exploration, resizing and encoding the images, and featuring engineering to get the data ready for modeling. I chose to experiment with Scikit’s random forest and <a href="https://github.com/dmlc/xgboost">Xgboost</a> ensemble learning methods to determine the most relevant features for survival rate. Note that accuracy is not a good performance metric here because the data is not balanced and doesn’t contain the scans of healthy individuals. Therefore, we could use the ROC curve instead to determine the best model. If we were to be more stringent with our metric optimization, minimizing false negatives or maximizing our recall would be our priority. I also experimented with multiple architectures and transfer learning models to predict prognosis from the X-ray/CT scans of the patients based on convolutional neural networks. As you can imagine, each architecture came with its own hyperparameters to tune and performance to track. If you are starting to feel slightly overwhelmed by the number of potential experiments, worry not! We will leverage Trains so we focus on the most important task at hand which is answering our research question.</p><p>I started my project by <a href="http://t.allegro.ai/git_trains_server_h1">setting up my own server</a> locally so that Trains could track our experiments as shown in the caption below. Trains took care of the environment replication and logging automatically while tracking the performance metrics of our fledgling models and also the machine resource allocation of each model such as GPU, CPU, IO speed etc. This is important because we don’t want to pick the best model based on just a single metric. There is also the option of using Allegro AI’s <a href="http://t.allegro.ai/demo_server_h1">web-based demo server</a> which lets you track your ML projects for 24h but I wouldn’t recommend it because you simply can’t finish an ML project in a single day. I used Keras as my choice of deep learning framework but Trains comes with builtin support for<a href="https://towardsdatascience.com/once-upon-a-repository-how-to-write-readable-maintainable-code-with-pytorch-951f03f6a829"> Pytorch</a> and of course<a href="https://github.com/allegroai/trains/blob/master/examples/tensorboard_toy.py"> Tensorflow</a> as well. Trains is also tracking the packages so we can collaborate and replicate each other’s work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T5WpWzPo3QBbwvlk" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-o4Jk9STd2t1X8Be" /><figcaption>AutoML experimentation (left) and experiment comparison(right).</figcaption></figure><p><strong>Final Stop: Summarizing the findings</strong></p><p>Look above for the results of the <a href="https://allegro.ai/docs/tutorials/tutorial_automl/?utm_source=h_blog&amp;utm_medium=referral&amp;utm_campaign=trains_c">AutoML</a> experimentations I performed using Allegro Trains. Creating individual notebooks for each of these experiments or versioning each output would have led to project cluttering and confusion. But here, I am able to simply compare the performance of the convolutional neural networks based on several metrics including epoch vs loss optimization and GPU usage. <strong>This type of abstraction of the project management system simply leads to data-driven decision making.</strong> I was able to accurately determine 85% of the surviving members of the patients and it turns out age was crucial in determining the survival rate of patients. The resource allocation for neural networks was way more than the grid search for the tree-based algorithms. Also, random forest performed better than Xgboost which was to be expected due to the small dataset.</p><p>It’s a pleasure giving you a high-level overview of how you can tackle complex datasets with ease by automating your experiments under the same hub. I bet your iteration speed, workflow and experimentation would drastically improve with Trains as your project management hub. Make sure to check out my <a href="https://towardsdatascience.com/managing-ml-projects-allegro-trains-vs-github-95c2377dd86c">part 1</a> mini-series on how Trains fared relative to GitHub. As for me, I have arrived at my stop. It’s my hope that I will hear the wondrous journey you take <a href="https://allegro.ai/trains-open-source/?utm_source=h_blog&amp;utm_medium=referral&amp;utm_campaign=trains_c">Allegro Trains</a> for your deep learning project needs, feel free to add me on<a href="https://www.linkedin.com/in/henokyemam/"> LinkedIn</a> or give me a shoutout on<a href="https://twitter.com/henokadem"> Twitter.</a> Take care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0ef24a55f80" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/accelerating-my-covid-19-dl-project-with-allegro-trains-c0ef24a55f80">Accelerating my COVID-19 DL project with Allegro Trains</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[Managing ML Projects — Allegro Trains vs GitHub]]></title>
            <link>https://medium.com/data-science/managing-ml-projects-allegro-trains-vs-github-95c2377dd86c?source=rss-b253de4ec8------2</link>
            <guid isPermaLink="false">https://medium.com/p/95c2377dd86c</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[open-source-software]]></category>
            <dc:creator><![CDATA[Henok Yemam]]></dc:creator>
            <pubDate>Sun, 21 Jun 2020 22:58:03 GMT</pubDate>
            <atom:updated>2021-06-17T17:39:10.910Z</atom:updated>
            <content:encoded><![CDATA[<h3>Managing Machine Learning Projects — Allegro Trains vs GitHub</h3><h4>Allegro Trains, a project management hub designed to seamlessly integrate with ML workflow.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4yH3LBT0YhGCkEdL" /><figcaption>Allegro Trains, an AI infrastructure for ML project management.</figcaption></figure><p>The resurrection of AI due to the drastic increase in computing power has allowed its loyal enthusiasts, casual spectators, and experts alike to experiment with ideas that were pure fantasies a mere two decades ago. The biggest benefactor of this explosion in computing power and ungodly amounts of datasets (thank you, internet!) is none other than deep learning, the sub-field of machine learning(ML) tasked with extracting underlining features, patterns, and identifying cat images. On a serious note, the advancement led by this technology is ubiquitous with news media outlet darlings such as Tesla’s Autopilot, google’s AlphaGo, and<a href="https://www.unite.ai/brain-implants-and-ai-model-used-to-translate-thought-into-text/"> Brain-Machine-Interface</a> technologies. Although they are worthy of every bit of fanfare coming their way, it hides the incredibly difficult and complex task beneath the end product. Anyone who has dared to try their hands on a deep learning project knows it’s just not easy! It takes excellent project management skills, several frustrating late nights and non-linear assembly of working parts. You would be considered lucky if you end up with no gray hairs by the end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DOhxKXbuJAmtG9VQ" /></figure><h3><strong>The Current ML Workflow Problem…</strong></h3><p>If you are not one of the lucky ones, you are left with spending a lot of time in the mud taping up your spaghetti codes, pushing your wonky branches to <a href="https://github.com/">GitHub</a>, begging for pull requests, and merging to your poor origin master. This workflow seems to be the most accepted norm in the industry. However, do you have a good picture of the steps you took to get to your destination? Let’s say you were asked to present how you came to the glorious conclusion you put forth, would it not be nice to pull up a flow chart or a webpage that succinctly shows your daily venture into the unknown? If that seems appealing, let me introduce you to a superb abstraction of an automated project management system specifically designed for ML projects. It requires little to no effort to set up on your computer whether you run on Linux, macOS or Windows. The company behind this product (<a href="https://bit.ly/2zIfLHJ">Allegro AI</a>) calls it <a href="https://bit.ly/3hzIv6C">Allegro Trains</a>, Welcome On Board! Please show your open-source platform membership at the gate when you come in.</p><p>As I mentioned earlier, the ability to extract meaningful insights from large datasets is a critical skill in ML. With this necessity comes the need for countless experiments with a wide range of helpful statistical and plotting libraries, frameworks and algorithms. The wide consensus in this field is to utilize a version control management system like GitHub so that your experiments are being tracked in a timely manner before they get out of hand. However, there are a few limitations to community-version GitHub. Some of them are:</p><ul><li>It doesn’t track your resource allocation to each iteration of your experiments.</li><li>It doesn’t integrate from your choice of IDE whether that is Jupyter Notebook/Lab or PyCharm.</li><li>It has a limitation on how much of your code/graph it will display on the web.</li></ul><p>GitHub’s game-theory based engine is as eloquent as it gets but inquiries about its ever-growing syntax make it a Stack Overflow darling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/0*ELtYWTKc2vyYKwEe" /><figcaption>Two lines of code to track your ML Project.</figcaption></figure><h3>Trains Out-of-the-box Solution</h3><p>Trains, on the other hand, integrates with your IDE with just <strong><em>Two Lines of Code</em></strong> (TLC) at the top of your cell as shown above. The all too familiar Python’s builtin function <strong><em>import </em></strong>accesses the <strong><em>trains</em></strong> module which you can install from<a href="https://pypi.org/project/trains/"> pip</a>. The <strong><em>Task</em></strong><em> </em>class comes with a plethora of helpful functions such as <strong><em>init </em></strong>which<strong><em> </em></strong>tracks your experiment, <strong><em>ETL</em></strong> in this case. Similar to GitHub, Trains gives you the version control your soul desires but without the worrying aspects of conflicts, commit issues or search for the right syntax. You can imagine if you start a new notebook with a different name and type in TLC with a new project and task, Trains will automatically track these projects separately. If you decide to abort one of your tasks and restart it 2 hours later (or 8 days in my case, caption below), Trains will keep these two versions separately giving you the dynamics of a version control system. Let me show you what I mean.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1dM8JBwq2Tc4DSlt" /><figcaption>First view of the fruit of your precious two lines of code.</figcaption></figure><p>As you can see<em> above, </em><strong><em>MarchMadness </em></strong>project was created in three separate Notebook instances and it has 3 experiments or tasks in it: <strong><em>Testing</em></strong>, <strong><em>ETL</em> </strong>and <strong><em>Data Exploration</em></strong>. You may have noticed that there are two versions of <strong><em>Testing</em></strong>.<strong><em> </em></strong>These are your branches which you can compare side by side to get a better idea of your progress with just a single click (similar to <em>git diff</em> ). Trains actually goes further than GitHub by tracking individual versions of your tasks’ processing load distribution such as CPU/GPU usage, network and I/O speed(<em>look down below</em>) so you can identify the bottlenecks of your ML codes and work on faster iterations without the need to optimize every single line of code. You could also use this information as a guide before migrating to cloud computing services such as AWS and Azure. If you want to leave a message for every iteration of your experiment (similar to <em>git commit), </em>Trains<em> </em>got your back there as well<em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a2hbPD_KC8HFotsX" /><figcaption>Resource Management of ML Projects.</figcaption></figure><h3>Trains Additional Features</h3><p>You may be thinking ‘what is the catch here?’ I share your cynical view of the world but I am not done yet. Trains serves more refreshments for ML practitioners and developers with just TLC which are not even within the realm of community-version GitHub. Some examples of these include:</p><ul><li>Saving snapshots of your ML models that can be shared on cloud storage systems.</li><li>Displaying an apt summary of python packages used in your experiment with their specific version which can save you a lot of time while debugging.</li><li>Provides control via a web UI to remotely stop or monitor your experiments which are running on your local machine.</li></ul><p>Last but not least, Trains versions the code itself converting .ipynb files to script .py files so that it’s tracking actual improvements to the code as opposed to which code you are executing. This is important when you are collaborating remotely or on different machines so that your code can be reproduced using the script file along with the correct versions of the packages used in your code (similar to requirement text).</p><h3>Summary</h3><p>It has been a pleasure giving you a taste of what Trains has in a store for you relative to the normal GitHub workflow you have grown accustomed to. As part of your open-platform membership, there is a lot more to Trains that I have not explored here, awaiting future exploration and discovery. I encourage you to continue to collaborate and take your ML projects to the next level by automating your projects using Trains. I also encourage you to share your progress among your peers of developers and data professionals. From my personal interaction with the team, I know <a href="https://bit.ly/2zIfLHJ">Allegro AI</a> deeply appreciates your continued participation and insightful feedback and suggestions. I encourage you to open issue(s) on <a href="https://bit.ly/2UZFJhv">this channel </a>and you are bound to get a quick response. As for me, I have data science projects to monitor offline and I hope to catch you on my next ride with Trains which will focus on machine learning and deep learning explorations of chest<a href="https://www.kaggle.com/paultimothymooney/chest-xray-pneumonia"> </a>X-ray and <a href="https://www.kaggle.com/bachrr/covid-chest-xray">CT</a> images of COVID-19 patients. Until we meet again, Bon Voyage!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95c2377dd86c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/managing-ml-projects-allegro-trains-vs-github-95c2377dd86c">Managing ML Projects — Allegro Trains vs GitHub</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>