<?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 Andy Luc on Medium]]></title>
        <description><![CDATA[Stories by Andy Luc on Medium]]></description>
        <link>https://medium.com/@rokaandy?source=rss-195fbfe50873------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*8yOrGB6u-53Se36spU9SBQ.jpeg</url>
            <title>Stories by Andy Luc on Medium</title>
            <link>https://medium.com/@rokaandy?source=rss-195fbfe50873------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:38:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rokaandy/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[Critical Analysis on Deep Learning]]></title>
            <link>https://medium.com/@rokaandy/critical-analysis-on-deep-learning-e13f960c98e?source=rss-195fbfe50873------2</link>
            <guid isPermaLink="false">https://medium.com/p/e13f960c98e</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Andy Luc]]></dc:creator>
            <pubDate>Thu, 06 Jun 2019 16:18:06 GMT</pubDate>
            <atom:updated>2019-06-06T20:38:15.196Z</atom:updated>
            <content:encoded><![CDATA[<h4>Diving Deeper into the Limitations of the A.I. Mindset</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*_ozN5SuvL3v8fEy-bTieqA.jpeg" /></figure><p>What exactly is deep learning, and what has it shown about the nature of intelligence? What can we expect it to do, and where might we expect it to break down? General artificial intelligence has been a topic of interest in the last 10 years, and I would like to delve deeper into the complexities of what it all means and which factors can influence the decision-making process. I have recently had the chance of reading several articles in relation to deep learning, and came across an insightful article; <em>Deep Learning: A Critical Appraisal</em> written by Gary Marcus of New York University. Deep learning and artificial intelligence (AI) are one in the same as they compliment each other through methods of speech recognition, image recognition, and language translation. In this article I will summarize some of the critical views expressed by Gary and others interested in the subject of deep learning and its artificial heartbeat.</p><p>Just over 5 years ago, deep learning was something that had little notice in today’s culture. In 2012, the publication of a series of highly influential papers, including <em>Krizhevsky, Sutskever and Hinton’s 2012 ImageNet Classification with Deep Convolutional Neural Networks</em> (CNNs), achieved state-of-the-art results in an object recognition challenge known as ImageNet. This was the time when computational power in data analytics had increasingly become more practical.</p><h3>Meaning of Deep Learning</h3><blockquote>Deep learning, is a statistical technique for classifying patterns, based on sample data, using neural networks with multiple layers.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*CoNnxJlmETLqk-diAAujrA.png" /></figure><p>Text summarization tasks can simply be defined and classified by the following factors: input, purpose and output. Neural networks in the deep learning literature typically consist of a set of input units that stand for things like pixels or words. Therein lies multiple hidden layers (the more such layers, the deeper a network is said to be) containing hidden units, also known as nodes or neurons. This produces a set output units, with connections running between those nodes. The relationship between the inputs and outputs of a neural network is known as mapping. With multiple layers between the layers or nodes of the neural network, we consider that as <em>Deep Learning</em>. As it gets more and more complex, the network becomes exceptionally good at learning input-output mappings.</p><h3>5 Limitations of Deep Learning</h3><h4>1. Data Hunger</h4><p>Although data is not infinite, there must be a sufficiently large amount of data in the process of any deep learning algorithm. Generally, for a certain neural network to perform well, the training and testing data must be similar to allow new results to form from the old ones. New results could be anything from a new tone of speech to which pixels to activate when moving a game joystick in a circular motion. In a world where we often find ourselves with problems that have limited data, deep learning is often not an ideal solution.</p><h4>2. Data Interpretation</h4><p>Deep reinforcement learning is the combination of deep learning with reinforcement learning, which is when the learner tries to maximize its reward. An example would be a game or program that artificial intelligence decisively beats human experts, without any knowledge of previous games or techniques. One of the games described in the article was a brick-breaking game made by Atari, where “after 240 minutes of training, [the system] realizes that digging a tunnel through the wall is the most effective technique to beat the game”. In hindsight, the system has no idea what a tunnel is or what it means to “dig” through something called a wall. The system has no way of transferring it’s knowledge of outside factors to the current situation. It just performs at its best to essentially satisfy the objectives of the game at the highest level.</p><h4>3. Hierarchical Structure</h4><p>So far, deep learning has minimal to no natural ability to handle hierarchical structure. Recurrent neural networks (RNNs) are what is commonly used in today’s deep learning recursive structures, in which the system will take a sequence of words in a sentence, and through the memory of input nodes, it will output a dynamic output connected to speech recognition. Critically thinking of this hierarchical structure, let’s analyze this sentence: <em>“The math teacher who recently became an Olympic athlete just taught a data science course!”</em> In deep learning, the main clause would be <em>The math teacher just taught a data science course</em>, while the embedded clause is<em> who recently became an Olympic athlete</em>. As you can see, deep learning may not necessarily convey the message correctly based on the human intention of the sentence.</p><h4>4. Prior Knowledge</h4><p>Machine learning is a culture that emphasizes competition between variables and problems that are inherently self-contained, with little need for a general understanding. There are many datasets that can be found online which have been neatly packaged into a single directory, but this is not representative of what the real world is, where data is spread in an open-source type of manner. Common sense reasoning may be a better model to finalize results rather than a true deep learning model structure.</p><h4>5. Overall Difficult to Engineer</h4><p>In 2014, a team of authors at Google wrote an essay (<em>Sculley, Phillips, Ebner, Chaudhary, &amp; Young, 2014</em>), machine learning is “the high-interest credit card of technical debt”, meaning that it is comparatively easy to make systems that work in some limited set of circumstances (short term gain), but difficult to guarantee that they will work in alternative circumstances that may not resemble previous training data (long term debt). This is basically saying that it is difficult to say whether the complex system of hidden nodes that make up a certain machine learning system will be sustainable or robust enough to withstand the hands of time. Data scientists today are trained to develop a code to reproduce replicability and or predictability, and guarantees just doesn’t exist yet with deep reinforcement learning.</p><h3>Unsupervised Learning</h3><p>Deep learning largely depends on the notion of using data in a supervised context or labeled data, but if we were to use an unsupervised approach, it changes the way of how we can interpret the results. Unsupervised learning, as the term is commonly used, tends to refer to several kinds of systems. One common type of system “clusters” together inputs that share properties, even without having them explicitly labeled.</p><p>Although this is a great model to use, which I personally believe in as I have tested it out myself, moving in this direction may increase open-ended interference and or debuggability.</p><p>There was one interesting example that I had read which involved a child crawling through a chair. This is a form of unsupervised learning where if a child climbs through the space of a chair and gets stuck; In an exploratory analysis state, the child has to find a solution to pass their arm or leg through a certain space of the chair after passing through their head and body. It is the integration of abstract knowledge and reaching a goal. If we could build a deep learning model that encompasses reasoning and problem-solving at an abstract level, the possibilities are endless.</p><h3>Conclusion</h3><p>As deep learning is constantly evolving, we must realize that we cannot solely depend on this structure to essentially survive without cognitive human interaction and data inputs. As this article depicts the critical appraisal aspects of a neural network, we must foresee some of the consequences when building our training and testing models. I know that one day we all want to live in a world with automated flying cars, but until we are able to push through the A.I. field as a whole and what it all entails, deep learning currently only exists in the human mind.</p><p><strong>Reference:</strong></p><p>Gary Marcus. (2018). <em>Deep Learning: A Critical Appraisal, Article. </em><a href="https://arxiv.org/abs/1801.00631">https://arxiv.org/abs/1801.00631</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e13f960c98e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Data Visualization — Heatmaps]]></title>
            <link>https://medium.com/@rokaandy/python-data-visualization-heatmaps-79fa7506c410?source=rss-195fbfe50873------2</link>
            <guid isPermaLink="false">https://medium.com/p/79fa7506c410</guid>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Andy Luc]]></dc:creator>
            <pubDate>Tue, 30 Apr 2019 05:03:26 GMT</pubDate>
            <atom:updated>2019-04-30T15:49:38.086Z</atom:updated>
            <content:encoded><![CDATA[<h3>Python Data Visualization — Heatmaps</h3><p>Whether you are presenting in front of 500 students or 5 executives of a large corporation, data visualization is an important aspect of any career. The basic concept is to create a visual representation of a dataset taken from a table, excel file, or even a simple survey at a local event. The ability to see possible trends and correlations in the relationship of the data will clearly illustrate the purpose and or objective of the presentation.</p><p>In python libraries, there are a myriad of methods and ways to visually represent data, but I will be focusing on the use of heatmaps. Heatmaps are a great way of finding the collinearity of the data and help distinguish which rows or columns should or should not be included as part of your results. If the objective is to create several predictor models, this will help you filter any <em>dependent variables </em>that are collinear. Having an independent variable will be a factor, as you will see later on.</p><pre>import pandas as pd<br>import numpy as np<br>import matplotlib.pyplot as plt<strong><br></strong>import seaborn as sns</pre><pre>data = pd.read_csv(&#39;cars.csv&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p7B0DFtYHvYcExC01BgF6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pi3sCIsTtUoUzTXu0uiP8w.png" /><figcaption>Pandas DataFrame for cars.csv</figcaption></figure><p>First, we want to import the necessary python libraries and the data set; in this case, ‘cars.csv’. The chart to the left shows what type of data the .csv file contains. There are 5076 rows, each with values corresponding to 1 of the 8 variable columns. I took the head (first 5 rows) and tail (last 5 rows) of the pandas dataframe for demonstration purposes. As heatmaps are based on numerical values, <em>Model Year</em> was non-numerical, which consequently had to be dropped from the data set. Granted that <em>Model Year</em> was meaningful, it can be incorporated later on in the summary of results.</p><p>Now that we have the data setup, let’s move on to the fun stuff. Using Matplotlib, we will setup a graphical chart of the data with a figure size of (10,6). In the next step, I will preface by saying that there are methods to produce a heatmap from Matplotlib. However, considering Seaborn is a library that is essentially built on top of it, using Seaborn is visually more appealing and also a <em>much simpler</em> 1-line code in python.</p><pre>fig, ax = plt.subplots(figsize=(10,6))<br>sns.heatmap(data.corr(), center=0, cmap=’<strong>Blues</strong>’)<br></pre><pre>ax.set_title(‘Multi-Collinearity of Car Attributes’)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*pGaWIeyeWPkzqhQpivul4g.png" /><figcaption>Muti-Collinearity Heatmap for cars.csv</figcaption></figure><p>The heatmap above represents the collinearity of the multiple variables in the dataset. <strong>data.corr()</strong> was used in the code to show the correlation between the values. This is where we want to set our independent or target variable. Let’s set our target variable to ‘<em>City mpg</em>.’ We want to find out how all of the other variables affect the miles per gallon in the city of a particular car. Looking at the blue heatmap, the focus should be on the dark and light areas. Dark blue represents a positive correlation, while light white is a negative correlation. It is also normal that the darkest areas are a 1:1 ratio since Torque=Torque, Length=Length, etc.</p><p>Before analyzing further, there are a couple things we can do to make this heatmap a bit more clear. By adjusting the color and adding annotation, which are actual correlation values, this makes it easier to form a conclusion and what possible actions to take. While <em>City mpg</em> is still our independent variable, we can see in the map below that there is little to no correlation between the length of a car and mpg (-0.015), though a high correlation between Horsepower and Torque (-0.97, -0.98). Features with high correlation are more linearly dependent and hence have almost the same effect on the dependent variable. So, when two features have high correlation, we can drop one of the two features. What happens now? Since <em>City mpg</em> is our independent variable, we won’t drop that. However, we can drop either Horsepower or Torque and still produce a fairly accurate prediction model.</p><pre>fig, ax = plt.subplots(figsize=(10,6))<br>sns.heatmap(data.corr(), center=0, cmap=’<strong>BrBG</strong>’, annot=<strong>True</strong>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*_W6ntVaJnynFEMP7IpIyZA.png" /><figcaption>Muti-Collinearity Heatmap adding color and annotation attributes</figcaption></figure><p>Heatmaps can come in many forms, and multi-collinearity was just one of them. I have included here an example of a density heatmap in purple. The data was extracted from a file named ‘flights.csv’ which included the month, year, and number of passengers. This one is slightly more explanatory, where the year and month are both variables to the number of passengers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dsCOeh_9BnmG6njA898rng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ANZvLp6xhBqIMyqQ42rQKQ.png" /></figure><p>To summarize, heatmaps provide a great visual when comparing multiple variables and the relationships between them. They are able to help you in more ways than you can imagine, but understanding how they can be incorporated into your project is the key!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79fa7506c410" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Data Science Leap]]></title>
            <link>https://medium.com/@rokaandy/the-data-science-leap-88dca45ec64e?source=rss-195fbfe50873------2</link>
            <guid isPermaLink="false">https://medium.com/p/88dca45ec64e</guid>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Andy Luc]]></dc:creator>
            <pubDate>Sun, 21 Apr 2019 23:20:57 GMT</pubDate>
            <atom:updated>2019-04-21T23:23:36.078Z</atom:updated>
            <content:encoded><![CDATA[<p>“What do you want to be when you grow up?” This is a question that the majority, if not all of us, were asked as a child. The answer was not always clear, and as we go through life experiences, our vision changes from year to year or even day to day. The common answers are doctor, astronaut, singer, or a professional sports athlete. The time has come when data science should be added to that repertoire.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5hjTIvw1ste-QIVO3g6pOg.jpeg" /></figure><p>Born and raised in Phoenix, AZ, I have always been a very active person, but can be reserved at times. I grew up in a traditional Asian household where expectation was the core of every big family gathering. The discussions about what you will do after college among all of my aunts and uncles were inevitable. Considering I was a good student, my parents were lenient on what I wanted to do. This was one thing I was grateful for. Fast forward a few years, I graduated from Arizona State University with a degree in supply chain management. I liked the idea of working behind the scenes to manufacture or create an end product, and enjoyed the fact that I was going to help companies become more “lean.”</p><p>The next 8 years following graduation, I have worked with companies like ITT Standard, Jabil, General Electric (GE), and Starbucks. From being a Buyer to Commodity Manager to a Sr. Business Analyst, I have worn many hats in my career. The amount of knowledge I achieved in each sector of the industry was invaluable. With a career in business, Microsoft Excel naturally becomes your best friend. While learning extensive ERP management systems, I was playing with a lot of data and then presenting it to upper management at a high level, which they loved. The funny thing is, once I started to get deeper into the details of my work, the interest started to drop. Although this was totally understandable, there is a part of me that wishes I could share that information with the group. My manager wasn’t really interested in the details either but was impressed with how quickly I could get things done using all the nuances in Excel.</p><p>About a year ago, I went into work like any other day, and realized that I didn’t really have anyone to talk to with the data I was compiling because no one knew Excel and math as well as I did. This was the moment when I decided that I needed to make a change. I felt like my brain wasn’t being fully utilized to it’s potential, and I didn’t have anyone I could look up to or learn from at work. Many of my friends, who were software engineers, suggested that I should try to code based on my interest in analytics and structure. At this point, I am living in Seattle, WA and was not in the position to just quit a stable job, go to grad school, and somehow live off of my savings.</p><p>To start, I coded online on my own and eventually took a part-time boot camp at night; 3 days a week for 4 months. I tested my ability and willingness to code by learning the basics of Git, HTML, CSS, and JavaScript. By challenging myself to take night classes on top of working 40+ hours a week, I became increasingly confident in what I wanted to do. However, I knew if I joined a full-time program, I would need to quit my job. The thought of presenting my skills to an employer that would appreciate it helped me solidify my decision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hIr2w_XROxEJlSxC3CR8Ng.jpeg" /></figure><p>As of today, data science is still a relatively new profession. After some extensive research on data science, this is when I found the perfect match for me. It is fully back-end programming as well as a lot of mathematics behind the analysis. I searched for boot camps all around Seattle, and came upon Flatiron School. Their curriculum was exactly what I was looking for, which included Python, SQL, R, and Machine Learning. I immediately took the leap and signed up for class. Simultaneously, I wrote a formal resignation letter for my last 2 weeks of work. Concerned, my manager immediately called me into his office and asked me why I was resigning. I told him that I was being underutilized and wanted a more rewarding career that I love by learning a different skill set. At that exact moment, my manager wanted to promote me and asked, “What type of salary are you looking for to have you stay?” Surprised, I replied, “I’m sorry, but there is no <em>considerable</em> amount that would make me change my mind.” I was fully committed on changing my path no matter what it took because of my ambition to continuously grow and to work with like-minded people.</p><p>A couple interviews later, I was accepted into Flatiron School’s first cohort of data science. And so… the journey begins!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88dca45ec64e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>