<?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 Oscar Okello on Medium]]></title>
        <description><![CDATA[Stories by Oscar Okello on Medium]]></description>
        <link>https://medium.com/@blessfossil?source=rss-6eb1af1a6cce------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bnL_zVujD44FUL2U</url>
            <title>Stories by Oscar Okello on Medium</title>
            <link>https://medium.com/@blessfossil?source=rss-6eb1af1a6cce------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:39:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@blessfossil/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[Kubernets Inc Tech Bootcamp]]></title>
            <link>https://medium.com/kubernets-inc/kubernets-inc-tech-bootcamp-33a2e3fd1b0a?source=rss-6eb1af1a6cce------2</link>
            <guid isPermaLink="false">https://medium.com/p/33a2e3fd1b0a</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[developer-stories]]></category>
            <category><![CDATA[technology-news]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Sun, 12 Apr 2020 09:24:55 GMT</pubDate>
            <atom:updated>2020-05-06T06:27:01.929Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*QME4xi2gcXo1IOfMwjWn4w.jpeg" /></figure><h3>Stack Tech Bootcamp</h3><p>We live in a world where technology is continuing to evolve. Technology is drastically changing how we do everything in our lives. It’s more common ever to get around using Facebook, WhatsApp or Twitter technology-driven communication companies. Companies like Uber, Safe-Boda, and Lyft are changing how we travel. It seems every industry is being profoundly impacted by how technology is shaping the world around us.</p><p>Software is winning over the world. This shift changes how we live our lives, but also calls for staff with software engineering expertise proficient of building the technology that we all use.</p><p>Grace with your presence to a tech boot camp is a feasible path to evolution into a career in software development or software engineering as an alternative to graduating with a degree in computer science to aiding fill the need of skilled software engineers in the industry</p><p><a href="https://kubernetstech.co/">Kubernets Tech Academy</a> is an intensive approachable &amp; inclusive technical education. Offering experiences for Children, Individuals, people with disabilities &amp; corporations. Headquartered in Florida, USA, with offices in Denmark, Netherlands, Memphis Tn, Uganda and Zambia have propelled a tech boot camp premeditated to fashion the next generation of tech leaders.</p><p>The career paths include weekly, one-on-one mentorship sessions with dedicated professionals in each field supporting you throughout. Additionally, we base our curriculum specifically around the competencies you need to thrive on the job. Our programs are hands-on &amp; project-driven accomodating all individual, starting from Kids and People with disabilities — <a href="https://medium.com/apply.html">Apply today!</a></p><p>A program fragmented into three (03) stages to transmute you into the next tech leader; from zero to job-ready. Application is open to undergraduate, postgraduate and PhDs.</p><p><strong>Stack Tech Bootcamp;</strong> 3 months program that furnishes you with both soft skills like Program Management, Communication, Teamwork, Leadership, Critical thinking, and Technology. Cultivate your leadership potential. With a payment plan, other programs after the Bootcamp don’t require payment</p><p><strong>Resident Software Engineer;</strong> Selected candidates from the Boot camp join the 7.5 months long in-depth resident program. As an Engineering Resident, you’ll have the ability to build technical skills, fine-tune to industry work, and leverage a built-in support network, mentorship together with global engineers. Alongside your peers serving as a lifelong network</p><p><strong>Resident Rotational Program;</strong> Selected Resident Software Engineer from the 7.5 months program gets a prospect to work full time at our HQ, branch offices and partners for a 6–12-month Rotational Program.</p><p>The program is both online and on-site, it’s opened in<strong> </strong><a href="http://tiny.cc/Techbootcamp"><strong>Uganda</strong></a> and <a href="http://tiny.cc/TechBootcamp"><strong>Zambia</strong></a><strong> </strong>to be uncluttered in Malawi, Brazil, and Memphis TN. It lookout for persons with work ethic, Passion, Dreamers, Innovators with limitless Potential and Grit. The kernel is to offer employment opportunities not only expertise to those who join up the program.</p><p>Getting professional-level development skills takes a lot of work and many unalike skills are important to learn!</p><p>Regardless of the program, you choose to sign on, it’s important to know that as a professional developer or engineer it is significant to have certain skill sets. Things like; a programming language, a web framework, familiarity with server and hosting functionality, and databases are all vital skills to learn. Within each of these groupings of technologies, there are explicit technologies, each with trade-offs and paybacks both for and against them.</p><p>Find out more at <a href="http://kubernetstech.co/">kubernetstech.co</a></p><p><a href="http://tiny.cc/Techbootcamp"><strong>Uganda Application link</strong></a></p><p><a href="http://tiny.cc/TechBootcamp"><strong>Zambia Application link</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33a2e3fd1b0a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kubernets-inc/kubernets-inc-tech-bootcamp-33a2e3fd1b0a">Kubernets Inc Tech Bootcamp</a> was originally published in <a href="https://medium.com/kubernets-inc">Kubernets’ Lobby</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Useful Statistics Data Scientists Need to Know]]></title>
            <link>https://medium.com/developer-circle-kampala/5-useful-statistics-data-scientists-need-to-know-e8108242fffe?source=rss-6eb1af1a6cce------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8108242fffe</guid>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Tue, 10 Dec 2019 11:26:12 GMT</pubDate>
            <atom:updated>2019-12-10T11:26:12.822Z</atom:updated>
            <content:encoded><![CDATA[<p>Data Science can be practically defined as the process by which we get extra information from data. When doing Data Science, what we’re trying to do is explain what all of the data <em>means</em> in the real world, beyond the numbers.</p><p>To extract the information embedded in complex datasets, Data Scientists employ several tools and techniques including data exploration, visualization, and modeling. One very important class of mathematical techniques often used in data exploration is <strong>statistics</strong>.</p><p>In a practical sense, statistics allows us to define concrete mathematical summaries of our data. Rather than trying to describe every single data point, we can use statistics to describe some of its properties. And that’s often enough for us to extract some kind of information about the structure and make-up of the data.</p><p>Sometimes, when people hear the word “statistics” they think of something overly complicated. Yes, it can get a bit abstract, but we don’t always need to resort to complex theories to get some kind of value out of statistical techniques.</p><p>The most basic parts of statistics can often be of the most practical use in Data Science.</p><p>Today, we’re going to look at 5 useful Statistics for Data Science. These won’t be crazy abstract concepts but rather simple, applicable techniques that go a long way.</p><p>Let’s get started!</p><h3>(1) Central Tendency</h3><p>The central tendency of a dataset or feature variable is the <em>center</em> or <em>typical value</em> of the set. The idea is that there may be one single value that can best describe (to an extent) our dataset.</p><p>For example, imagine if you had a normal distribution centered at the x-y position of (100, 100). Then the point (100, 100) is the central tendency since, out of all the points to choose from, it is the one that provides the best summary of the data.</p><p>For Data Science, we can use central tendency measures to get a quick and simple idea of how our dataset looks as a whole. The “center” of our data can be a very valuable piece of information, telling us how exactly the dataset is <em>biased</em> since whichever value the data revolves around is essentially a bias.</p><p>There are 2 common ways of mathematically selecting a central tendency.</p><p><strong>Mean</strong></p><p>The Mean value of a dataset is the <em>average value</em> i.e. a number around which a whole data is spread out. All values used in calculating the average are weighted equally when defining the Mean.</p><p>For example, let’s calculate the Mean of the following 5 numbers:</p><p>(3 + 64 + 187 + 12 + 52) / 5 = 63.6</p><p>The mean is great for computing the actual mathematical average. It’s also very fast to compute with Python libraries like Numpy</p><p><strong>Median</strong></p><p>Median is the middle value of the dataset i.e if we sort the data from smallest to biggest (or biggest to smallest) and then take the value in the middle of the set: that’s the Median.</p><p>Let’s again compute the Median for that same set of 5 numbers:</p><p>[3, 12, <strong>52</strong>, 64, 187] → <strong>52</strong></p><p>The Median value is quite different from the Mean value of 63.6. Neither of them is right or wrong, but we can pick one based on our situation and goals.</p><p>Computing the Median requires sorting the data — this won’t be practical if your dataset is large.</p><p>On the other hand, the Median will be more robust to outliers than the Mean since the Mean will be pulled one way or the other if there are some very high magnitude outlier values.</p><p>The mean and median can be calculated with simple numpy one-liners:</p><pre>numpy.mean(array)<br>numpy.median(array)</pre><p>Under the umbrella of Statistics, the <strong>spread</strong> of the data is the extent to which it is <em>squeezed</em> towards a single value or more spread out across a wider range.</p><p>Take a look at the plots of the Gaussian probability distributions below — imagine that these are probability distributions describing a real-world dataset.</p><p>The blue curve has the smallest spread value since most of its data points all fall within a fairly narrow range. The red curve has the largest spread value since most of the data points take up a much wider range.</p><p>The legend shows the standard deviation values of these curves, explained in the next section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*oXPZbIvaHlf2IIV1ph4nKg.png" /></figure><p><strong>Standard Deviation</strong></p><p>The <strong>standard deviation</strong> is the most common way of quantifying the spread of data. Calculating it involves 5 steps:</p><ol><li>Find the mean.</li><li>For each data point, find the square of its distance to the mean.</li><li>Sum the values from Step 2.</li><li>Divide by the number of data points.</li><li>Take the square root.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/183/1*tCWwN04ONOLF09UNXWfhMw.png" /></figure><p>A larger value means that our data is more “spread out” from the mean. A smaller value means that our data is more concentrated around the mean.</p><p>Easily calculate the standard deviation in Numpy like so:</p><h3>(3) Percentiles</h3><p>We can further describe the <em>position</em> of each data point throughout the range using <strong>percentiles</strong>.</p><p>The percentile describes the exact position of the data point in terms of how high or low it is positioned in the range of values.</p><p>More formally, the <strong>p</strong>th percentile is the value in the dataset at which it can be split into two parts. The lower part contains <strong>p</strong> percent of the data i.e the pth percentile.</p><p>For example, consider the set of 11 numbers below:</p><pre>1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21</pre><p>The number 15 is the 70th percentile since when we split the dataset into 2 parts at the number 15, 70% of the remaining data is less than 15.</p><p>Percentiles combined with the mean and standard deviation can give us a good idea of where a specific point lies within the spread/range of our data. If it’s an outlier, then its percentile will be close to the ends — less than 5% or great than 95%. On the other hand, if the percentile is calculated as close to 50 then we know that it’s close to our central tendency.</p><p>The 50th percentile for an array can be calculated in Numpy like so:</p><pre>numpy.percentile(array, 50)</pre><h3>(4) Skewness</h3><p>The Skewness of data measures its asymmetry.</p><p>A positive value for the skewness means that values are concentrated on the left of the center of the data points; negative skewness means values are concentrated on the right of the center of the data points.</p><p>The graph below provides a nice illustration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*yPlc1VoBxbaY1hb3BjDWvw.png" /></figure><p>We can calculate the skewness with the following equation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*bhjdk2TUKQeZpnpxOAV1dQ.png" /></figure><p>Skewness will give us an idea of how close our data distribution is to be Gaussian. The greater the magnitude of the skewness, the further from a Gaussian distribution our dataset is.</p><p>This is important because if we have a rough idea of our data distribution, we can tailor whatever ML model we are going to train for that particular distribution. Moreover, not all ML modeling techniques will be effective on data which is not Gaussian.</p><p>Once again, stats gives us insightful information before we jump right into modeling!</p><p>Here’s how we can compute the Skewness in Scipy code:</p><pre>scipy.stats.skew(array)</pre><h3>(5) Covariance and Correlation</h3><p><strong>Covariance</strong></p><p>The covariance of two features variables measures how “related” they are. If the two variables have a positive covariance, then when one variable increases so do the other; with a negative covariance, the values of the feature variables will change in opposite directions.</p><p><strong>Correlation</strong></p><p>Correlation is simply the normalized (scaled) covariance where we divide by the product of the standard deviation of the two variables being analyzed. This effectively forces the range of correlation to always be between -1.0 and 1.0.</p><p>If the correlation of two feature variables is 1.0, then the variables have a perfect positive correlation. This means that if one variable changes by a given amount, the second move proportionally in the same direction.</p><figure><img alt="Figure" src="https://cdn-images-1.medium.com/proxy/1*30eLSgygLAQAyBxHrjC9sQ.png" /></figure><p>Illustration of PCA used for Dimensionality Reduction</p><p>A positive correlation coefficient less than one indicates a less than perfect positive correlation, with the strength of the correlation growing as the number approaches one. The same idea works for negative values of correlation, just with the values of the feature variables changing in opposite directions rather than changing in the same direction.</p><p>Knowing about correlation is incredibly useful for techniques like <a href="https://towardsdatascience.com/principal-component-analysis-your-tutorial-and-code-9719d3d3f376">Principal Component Analysis</a> (PCA) used for Dimensionality Reduction. We start by computing a correlation matrix — if there are 2 or more variables that are highly correlated, then they are effectively redundant in explaining our data and some of them can be dropped to reduce the complexity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8108242fffe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/5-useful-statistics-data-scientists-need-to-know-e8108242fffe">5 Useful Statistics Data Scientists Need to Know</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</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 machine learning]]></title>
            <link>https://medium.com/developer-circle-kampala/what-is-machine-learning-645cca00de49?source=rss-6eb1af1a6cce------2</link>
            <guid isPermaLink="false">https://medium.com/p/645cca00de49</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[devckla]]></category>
            <category><![CDATA[gulu]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Fri, 06 Dec 2019 15:42:21 GMT</pubDate>
            <atom:updated>2019-12-06T15:42:21.575Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is machine learning</strong></h3><p>Machine Learning is a sub-area of artificial intelligence, whereby the term refers to the ability of IT systems to independently find solutions to problems by recognizing patterns in databases. In other words: Machine Learning enables IT systems to recognize patterns on the basis of existing algorithms and data sets and to develop adequate solution concepts. Therefore, in Machine Learning, artificial knowledge is generated on the basis of experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Oxp8oY5iHo7J8VefBG_G_w.jpeg" /><figcaption>Source: PNGuru</figcaption></figure><p>In order to enable the software to independently generate solutions, the prior action of people is necessary. For example, the required algorithms and data must be fed into the systems in advance and the respective analysis rules for the recognition of patterns in the data stock must be defined. Once these two steps have been completed, the system can perform the following tasks by Machine Learning:</p><ul><li>Finding, extracting and summarizing relevant data</li><li>Making predictions based on the analysis data</li><li>Calculating probabilities for specific results</li><li>Adapting to certain developments autonomously</li><li>Optimizing processes based on recognized patterns</li></ul><h3>Machine Learning: How it works</h3><p>In a way, Machine Learning works in a similar way to human learning. For example, if a child is shown images with specific objects on them, they can learn to identify and differentiate between them. Machine Learning works in the same way: Through data input and certain commands, the computer is enabled to “learn” to identify certain objects (persons, objects, etc.) and to distinguish between them. For this purpose, the software is supplied with data and trained. For instance, the programmer can tell the system that a particular object is a human being (=” human”) and another object is not a human being (=” no human”). The software receives continuous feedback from the programmer. These feedback signals are used by the algorithm to adapt and optimize the model. With each new data set fed into the system, the model is further optimized so that it can clearly distinguish between “humans” and “non-humans” in the end.</p><p>But Machine Learning means much more than just distinguishing between two classes. Using the <a href="https://www.spotlightmetal.com/redirect/746226/aHR0cHM6Ly93d3cua3VrYS5jb20vZW4tZ2I%3D/4026c43bb7978f3ea2731146a6eb5d597933fe8e32e9402ecd2186cf/article/">KUKA</a> table tennis robot as an example, you can see how a <a href="https://www.spotlightmetal.com/redirect/746226/aHR0cHM6Ly93d3cuZXRtbS1vbmxpbmUuY29tL21hY2hpbmluZ19lcXVpcG1lbnQv/9e6fe3dc65c4c649af54933a2633567cb227f21cad71a8216afd0b13/article/">machine</a> scans the complex tendencies and the playing style of its opponent adapts to them and even makes a world champion sweat this way</p><h3>Advantages of Machine Learning</h3><p>Machine Learning undoubtedly helps people to work more creatively and efficiently. Basically, you too can delegate quite complex or monotonous work to the computer through Machine Learning — starting with scanning, saving and filing paper documents such as invoices up to organizing and editing images.</p><p>In addition to these rather simple tasks, self-learning machines can also perform complex tasks. These include, for example, the recognition of error patterns. This is a major advantage, especially in areas such as the manufacturing industry: the industry relies on continuous and error-free production. While even experts often cannot be sure where and by which correlation a production error in a plant fleet arises, Machine Learning offers the possibility to identify the error early — this saves downtimes and money.</p><p>Self-learning programs are now also used in the medical field. In the future, after “consuming” huge amounts of data (medical publications, studies, etc.), apps will be able to warn an in case his doctor wants to prescribe a drug that he cannot tolerate. This “knowledge” also means that the app can propose alternative options which for example also take into account the genetic requirements of the respective patient.</p><h3>These methods are used in Machine Learning</h3><p>In Machine Learning, statistical and mathematical methods are used to learn from data sets. Dozens of different methods exist for this, whereby a general distinction can be made between two systems, namely symbolic approaches on the one hand and sub-symbolic approaches on the other. While symbolic systems are, for example, propositional systems in which the knowledge content, i.e. the induced rules and the examples are explicitly represented, sub-symbolic systems are artificial neuronal networks. These work on the principle of the human brain, whereby the knowledge contents are implicitly represented.</p><h3>Types of Machine Learning</h3><p>Basically, algorithms play an important role in Machine Learning: On the one hand, they are responsible for recognizing patterns and on the other hand, they can generate solutions. Algorithms can be divided into different categories:</p><p><strong>Supervised learning:</strong> In the course of monitored learning, example models are defined in advance. In order to ensure adequate allocation of the information to the respective model groups of the algorithms, these then have to be specified. In other words, the system learns on the basis of given input and output pairs. In the course of monitored learning, a programmer, who acts as a kind of teacher, provides the appropriate values for a particular input. The aim is to train the system in the context of successive calculations with different inputs and outputs and to establish connections.</p><p><strong>Unsupervised learning: </strong>In unsupervised learning, artificial intelligence learns without predefined target values and without rewards. It is mainly used for learning segmentation (clustering). The machine tries to structure and sort the data entered according to certain characteristics. For example, a machine could (very simply) learn that coins of different colours can be sorted according to the characteristic “colour” in order to structure them.</p><p><strong>Partially supervised learning: </strong>Partially supervised learning is a combination of supervised and unsupervised learning.</p><p><strong>Encouraging learning:</strong> Reinforcing learning — just like Skinner’s classical conditioning — is based on rewards and punishments. The algorithm is taught by a positive or negative interaction which reaction to a certain situation should take place.</p><p><strong>Active learning:</strong> Within the framework of active learning, an algorithm is given the opportunity to query results for specific input data on the basis of pre-defined questions that are considered significant. Usually, the algorithm itself selects questions with high relevance.</p><p>In general, the data basis can be either offline or online, depending on the corresponding system. In addition, it can be available only once or repeatedly for Machine Learning. Another distinguishing feature is the either staggered development of the input and output pairs or their simultaneous presence. On the basis of this aspect, a distinction is made between so-called sequential learning and so-called batch learning.</p><h3>Machine Learning and its most popular applications</h3><p>Machine Learning is applied at Netflix and Amazon as well as for Facebook’s face recognition. For you as a user, Machine Learning is for example reflected in the possibility of tagging people on uploaded images. In fact, Facebook has the largest face database in the world. The data fed by users into the social network is used by Facebook to optimize and train Machine Learning systems in terms of visual recognition.</p><p>Another application of Machine Learning that is now firmly integrated into everyday life is the automatic detection of spam that is integrated into almost all e-mail programs. Within the scope of spam detection, the data contained in the e-mails is analysed and categorised. The “spam” and “non-spam” patterns are used in this respect. If an e-mail is recognized as junk mail, the program learns to identify spam mails even more efficiently. Other areas of application for Machine Learning include search engine ranking, combating cybercrime and preventing computer attacks.</p><h3>The commercial application of Machine Learning</h3><p>With the help of Machine Learning, economic data can be turned into money. Companies that rely on Machine Learning or Machine Learning methods are not only able to increase the satisfaction of their customers, but also to achieve cost reductions at the same time. Through Machine Learning, customer wishes and needs can be evaluated and the following marketing measures can be personalized. This optimizes the customer experience and increases customer loyalty.</p><p>In addition, Machine Learning can help companies to find out whether there is a threat of customer migration in the near future. This is achieved, for example, through the automatic evaluation of support requests. An alternative is to analyse those characteristics that customers who have already migrated in the past have in common. If those existing customers who also have these characteristics are then filtered out on the basis of the characteristics resulting from the analysis, the company receives a list of the customer group at risk of migration. Appropriate measures can then be taken to retain these customers.</p><p>In addition, more and more chatbots are being used in the area of telephone customer service. These are automated programs that communicate with customers. In this way, the chatbots can optimize their cognitive abilities with regard to the interpretation of the tone in different situations. In addition, the chatbots are able to forward the call — for example, if it is a more complex request — to an employee of the call centre.</p><p>Furthermore, Machine Learning is a key technology in the development of autonomous systems: In addition to driverless cars, Machine Learning is also used in collaborative robots. Other areas of application for Machine Learning would be:</p><ul><li>Analysis of the stock market</li><li>Credit Card Fraud Detection</li><li>Automated diagnostic procedures</li><li>Acquisition of landmines in acoustic sensor and radar data</li></ul><h3>Machine Learning: The technology leaders</h3><p>In addition to Microsoft, Google, Facebook, IBM and Amazon, Apple also spends enormous financial resources on the use and further development of Machine Learning. IBM’s Watson supercomputer is still the best-known appliance for Machine Learning. Watson is mainly used in the medical and financial sectors. As already mentioned, Facebook uses Machine Learning for image recognition, Microsoft for the speech recognition system Cortana, Apple for Siri. Of course, Machine Learning is also used at Google, both in the area of image services and search engine ranking.</p><p>Cloud providers such as Google, Microsoft, Amazon Webservice and IBM have now created services for Machine Learning. With their help, it is also possible for developers who do not have specific Machine Learning knowledge to develop applications. These applications are able to learn from a freely definable set of data. Depending on the provider, these platforms have different names:</p><ul><li>IBM: Watson</li><li>Amazon: Amazon Machine Learning</li><li>Microsoft: Azure ML Studio</li><li>Google: Tensorflow</li></ul><p>In addition to the platforms mentioned above, there is a broad spectrum of high-quality, free open source programs through which Machine Learning has been made accessible to a wider audience so that you as a developer or data specialist can work with it.</p><p><strong>About the Author:</strong> <br>Oscar Okello is a highly active member and contributor to DevC Kampala, Lead of GDG Gulu, a data scientist and an open Source enthusaist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*o-4KTqkhR9dU68YGCOyVTw.jpeg" /><figcaption>GDG Gulu 2019</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=645cca00de49" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/what-is-machine-learning-645cca00de49">what is machine learning</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Learning — Backpropagation Algorithm Basics]]></title>
            <link>https://medium.com/oscar-okello/deep-learning-backpropagation-algorithm-basics-1727005a5177?source=rss-6eb1af1a6cce------2</link>
            <guid isPermaLink="false">https://medium.com/p/1727005a5177</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Wed, 20 Nov 2019 03:22:10 GMT</pubDate>
            <atom:updated>2019-11-20T03:22:10.741Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deep Learning — Backpropagation Algorithm Basics</h3><p><strong>Backpropagation</strong> is a method used in <a href="https://en.wikipedia.org/wiki/Artificial_neural_network">artificial neural networks</a> to calculate a <a href="https://en.wikipedia.org/wiki/Gradient">gradient</a> that is needed in the calculation of the <a href="https://en.wikipedia.org/wiki/Artificial_neural_network#Components_of_an_artificial_neural_network">weights</a> to be used in the network. Backpropagation is shorthand for “the backward propagation of errors,” since an error is computed at the output and distributed backwards throughout the network’s layers. It is commonly used to train <a href="https://en.wikipedia.org/wiki/Deep_neural_network">deep neural networks</a>.</p><p>Backpropagation is a generalization of the <a href="https://en.wikipedia.org/wiki/Delta_rule">delta rule</a> to multi-layered <a href="https://en.wikipedia.org/wiki/Feedforward_neural_network">feedforward networks</a>, made possible by using the <a href="https://en.wikipedia.org/wiki/Chain_rule">chain rule</a> to iteratively compute gradients for each layer. It is closely related to the <a href="https://en.wikipedia.org/wiki/Gauss%E2%80%93Newton_algorithm">Gauss-Newton algorithm</a> and is part of continuing research in <a href="https://en.wikipedia.org/wiki/Neural_backpropagation">neural backpropagation</a>.</p><p>Backpropagation is a special case of a more general technique called <a href="https://en.wikipedia.org/wiki/Automatic_differentiation">automatic differentiation</a>. In the context of learning, backpropagation is commonly used by the <a href="https://en.wikipedia.org/wiki/Gradient_descent">gradient descent</a> optimization algorithm to adjust the weight of neurons by calculating the <a href="https://en.wikipedia.org/wiki/Gradient">gradient</a> of the <a href="https://en.wikipedia.org/wiki/Loss_function">loss function</a>.</p><p><strong><em>Backpropagation Algorithm</em></strong> — An important mathematical tool for making better and high accuracy predictions in machine learning. This algorithm uses supervised learning methods for training <a href="https://vinodsblog.com/2018/10/25/deep-learning-introduction-to-artificial-neural-networks/">Artificial Neural Networks</a>. The whole idea of training multi-layer perceptrons is to compute the derivatives of the error function or gradient descent with respect to weights using the backpropagation algorithm. This algorithm is actually based on the linear algebraic operation with a goal of optimising error function by harnessing its intelligence and provisioning updates.</p><p><strong>what is the Backpropagation Algorithm</strong></p><p>As mentioned above “Backpropagation” is an algorithm which uses supervised learning methods to compute the gradient descent (delta rule) with respect to weights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*OcDA6xqKHqDccr40j4_aLw.gif" /></figure><p>This algorithm is used for finding minimum value error function in the neural network during the training model stage. The core idea of backpropagation is to find, what impact it would bring to the overall cost of the neural network if we play around with weights.</p><p>Weights are used to minimise the error function, so where it minimises that point is considered as the solution to our learning problem. To understand this better we can take an example below.</p><p>Let’s take below table to demonstrate our weights importance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*To_DELwxmueZrTgzyJUqIQ.png" /></figure><p>So now if we start playing with weights we will see the real game. With weight as 4, we will have below output. Point to note in below table the difference between the actual and the desired output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*eZJfp7ONk4TSw6jbmsLQ9Q.png" /></figure><p>Now let’s compare the two tables above, the weighted output has a huge error margin as 6,18 and 54 for 3 input values and only one value is correct. When we do the square we will notice a further increase. Let’s change our weight value to 3 from 4, the error margin reduces to 0, 3, 9 and 27 but it’s still not optimal. So one thing clear our approach is in the correct direction i.e. reducing weights is the correct decision here. Let’s decrease it further to 2. With weight value as 2 our Desired output value on the spot with zero error margin.</p><p><strong><em>What was done here</em></strong></p><ul><li>With initial random value for “Weight” (W), we actually used forward propagate method. This is actually the first step in any neural networks. Forward propagate helps to get the output to be compared with the desired output real value to get the error.</li><li>We got our error values like 0, 6, 18 and 54 which were really not appealing values for obvious reasons. To reduce the error, the backwards propagation method was used i.e. reduced the value of ‘W’.</li><li>After reducing there was still an error (0, 3, 9, and 27) though it was decreased, it was not our desired result. Learning was made as “<em>Reducing the value of “W” is in the correct direction and any increment will never yield desired output</em>“.</li><li>Again we propagated backwards and reduced the value of ‘W’ to 2 from 3.</li></ul><p>The whole idea of forward/backward propagation and playing with weights is to reduce/minimise or optimise the error value. After a couple of iteration, the network learns, which side of the number scale it needs to move until error gets minimised. There is a sort of breakpoint where any further update to the weight results in the increase of error and an indication to stop, take it’s as a final weight value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/0*kA8aMLkTNy1W3p7W" /></figure><p><strong><em>Backpropagation algorithm Step by Step</em></strong></p><p>In neural networks the learning about to make neuron intelligent on activation process i.e. when to get activated and when to remain mum. The human brain is not designed to accommodate or allow any of the backpropagation principles. The basic steps in the artificial neural network for backpropagation used for calculating derivatives in a much faster manner:</p><ul><li><strong><em>Set inputs and desired outputs</em></strong> — Choose inputs and set the desired outputs</li><li><strong><em>Set random weights</em></strong> — This is needed for manipulating the output values.</li><li><strong><em>Calculating the error</em></strong> — Calculating error helps to check how far is the required output from the actual. How good/bad is the model output from the actual output.</li><li><strong><em>Minimising the error</em></strong> — Now at this step, we need to check the error rate for its minimization</li><li><strong><em>Updating the parameters</em></strong> — In case the error has a huge gap then, change/update the parameters i.e. weights and biases to reduce it. Repeating this check and update process until error gets minimised is the motive here.</li><li><strong><em>Model readiness for a prediction</em></strong> — After the last step, we get our error optimised and once it’s done, we can now test our output with some testing inputs.</li></ul><p>The human brain is a <em>deep</em> and complex recurrent <em>neural network</em>. Deep learning allows computational models that are composed of multiple processing layers to learn representations of data with multiple levels of abstraction. In very simple words and not to confuse anything/anyone here, we can define both models as below.</p><ul><li>Feedforward propagation — Type of Neural Network architecture where the connections are “fed forward” only i.e. input to hidden to output The values are “fed forward”.</li><li>Backpropagation (supervised learning algorithm) is a training algorithm with 2 steps:</li><li>Feedforward the values</li><li>Calculate the error and propagate it back to the layer before.</li></ul><p>Propagating forward help to see the behaviour of neural network i.e how well the performance is. Observe the error and then backpropagation comes in to reduce the error (also update the bias and weight) in the gradient descent manner. In short, forward-propagation is part of the backpropagation algorithm but comes before back-propagating.</p><p><strong>The Need of Backpropagation</strong></p><p>Backpropagation or backward propagation comes in as a very handy, important and useful mathematical tool when it’s about improving the accuracy of our prediction in machine learning. As mentioned above as well it is used in neural networks as the learning algorithm for computing the gradient descent by playing around with weights.</p><p>Backpropagation is a very efficient learning algorithm for multi-layer neural networks as compared with the form of reinforcement learning. In perturbation, we try to randomly perturb one wight at a time to measure the change in performance and saving of any improvement is seen thus quite inefficient.</p><p>In backpropagation, computation of efficient error derivatives is possible and that too for all hidden units at the same time. So in this regard backpropagation is far better as you don’t need to randomly change one wight and do the whole forward propagate. This is kind of supervised machine learning algorithm with reason in which it requires a known, desired output for each input value. This way it calculates the loss function gradient descent. This algorithm is emerging as an important machine learning tool for predictive analytics.</p><h3>How the backpropagation algorithm works</h3><p>Back-propagation works in a logic very similar to that of <em>feed-forward</em>. The difference is the direction of data flow. In the feed-forward step, you have the inputs and the output observed from it. You can propagate the values forward to <em>train</em> the neurons ahead.</p><p>In the back-propagation step, you cannot know the errors occurred in every neuron but the ones in the output layer. Calculating the errors of output nodes is straightforward — you can make the difference between the output from the neuron and the <em>actual output</em> for that instance in the training set. The neurons in the hidden layers must update their errors from this. Thus you have to pass the error values back to them. From these values, the hidden neurons can update their error and other parameters using the weighted sum of errors from the layer ahead.</p><p>A step-by-step demo of feed-forward and back-propagation steps can be found <a href="http://home.agh.edu.pl/~vlsi/AI/backp_t_en/backprop.html">here</a>.</p><p>If you’re a beginner to neural networks, you can begin learning from <a href="http://en.wikipedia.org/wiki/Perceptron"><strong>Perceptron</strong></a>, then advance to NN, which actually is a <a href="http://en.wikipedia.org/wiki/Multilayer_perceptron">multilayer perceptron</a>.</p><h3>Backpropagation Visualization</h3><p>For an interactive visualization showing a neural network as it learns, check out my <a href="http://www.emergentmind.com/neural-network">Neural Network visualization</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1727005a5177" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oscar-okello/deep-learning-backpropagation-algorithm-basics-1727005a5177">Deep Learning — Backpropagation Algorithm Basics</a> was originally published in <a href="https://medium.com/oscar-okello">oscar okello</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practical advice for analysis of large, complex data sets]]></title>
            <link>https://medium.com/@blessfossil/practical-advice-for-analysis-of-large-complex-data-sets-2cb3b3cdec46?source=rss-6eb1af1a6cce------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cb3b3cdec46</guid>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Wed, 20 Nov 2019 03:18:48 GMT</pubDate>
            <atom:updated>2019-11-20T03:18:48.480Z</atom:updated>
            <content:encoded><![CDATA[<p>For a number of years, I led the data science team for Google Search logs. We were often asked to make sense of confusing results, measure new phenomena from logged behaviour, validate analyses done by others, and interpret metrics of user behaviour. Some people seemed to be naturally good at doing this kind of high-quality data analysis. These engineers and analysts were often described as “careful” and “methodical”. But what do those adjectives actually mean? What actions earn you these labels?</p><p>To answer those questions, I put together a document which I optimistically and simply titled “Good Data Analysis.”</p><p>Why has this document resonated with so many people over time? I think the main reason is that it’s full of specific actions to take, not just abstract ideals. I’ve seen many engineers and analysts pick up these habits and do high-quality work with them. I’d like to share the contents of that document in this blog post.</p><p>The advice is organized into three general areas:</p><ul><li><em>Technical</em>: Ideas and techniques for how to manipulate and examine your data.</li><li><em>Process</em>: Recommendations on how you approach your data, what questions to ask, and what things to check.</li><li><em>Social</em>: How to work with others and communicate about your data and insights.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*LV0lUIuAqwc7WQZMg6h_UA.png" /></figure><h3>Technical</h3><h3>Look at your distributions</h3><p>While we typically use summary metrics (means, median, standard deviation, etc.) to communicate about distributions, you should usually be looking at a much richer representation of the distribution. Something like histograms, CDFs, Q-Q plots, etc. will allow you to see if there are important interesting features of the data such as multi-modal behaviour or a significant class of outliers that you need to decide how to summarize.</p><h3>Consider the outliers</h3><p>You should look at the outliers in your data. They can be canaries in the coal mine for more fundamental problems with your analysis. It’s fine to exclude them from your data or to lump them together into an “Unusual” category, but you should make sure you know why data ended up in that category. For example, looking at the queries with the lowest click-through rate (CTR) may reveal clicks on elements in the user interface that you are failing to count. Looking at queries with the highest CTR may reveal clicks you should not be counting. On the other hand, some outliers you will never be able to explain so you need to be careful in how much time you devote this.</p><h3>Report noise/confidence</h3><p>First and foremost, we must be aware that randomness exists and will fool us. If you aren’t careful, you will find patterns in the noise. Every estimator that you produce should have a notion of your confidence in this estimate attached to it. Sometimes this will be more formal and precise (through techniques such as confidence intervals or credible intervals for estimators, and p-values or Bayes factors for conclusions) and other times you will be looser. For example, if a colleague asks you how many queries about frogs we get on Mondays, you might do a quick analysis looking and a couple of Mondays and report “usually something between 10 and 12 million” (not real numbers).</p><h3>Look at examples</h3><p>Anytime you are producing new analysis code, you need to look at examples of the underlying data and how your code is interpreting those examples. It’s nearly impossible to produce a working analysis code of any complexity without this. Your analysis is removing lots of features from the underlying data to produce useful summaries. By looking at the full complexity of individual examples, you can gain confidence that your summarization is reasonable.</p><p>You should be doing stratified sampling to look at a good sample across the distribution of values so you are not too focused on the most common causes.</p><p>For example, if you are computing Time to Click, make sure you look at examples throughout your distribution, especially the extremes. If you don’t have the right tools/visualization to look at your data, you need to work on those first.</p><h3>Slice your data</h3><p>Slicing means to separate your data into subgroups and look at the values of your metrics in those subgroups separately. In the analysis of web traffic, we commonly slice along dimensions like mobile vs. desktop, browser, locale, etc. If the underlying phenomenon is likely to work differently across subgroups, you must slice the data to see if it is. Even if you do not expect a slice to matter, looking at a few slices for internal consistency gives you greater confidence that you are measuring the right thing. In some cases, a particular slice may have bad data, a broken experience, or in some way be fundamentally different.</p><p>Anytime you are slicing your data to compare two groups (like experiment/control, but even time A vs. time B comparisons), you need to be aware of mix shifts. A mix shift is when the amount of data in a slice is different across the groups you are comparing. <a href="http://en.wikipedia.org/wiki/Simpson%27s_paradox">Simpson’s paradox</a> and other confusions can result. Generally, if the relative amount of data in a slice is the same across your two groups, you can safely make a comparison.</p><h3>Consider practical significance</h3><p>With a large volume of data, it can be tempting to focus solely on the statistical significance or to hone in on the details of every bit of data. But you need to ask yourself, “Even if it is true that value X is 0.1% more than value Y, does it matter?” This can be especially important if you are unable to understand/categorize part of your data. If you are unable to make sense of some user agents strings in our logs, whether it’s 0.1% of 10% makes a big difference in how much you should investigate those cases.</p><p>On the flip side, you sometimes have a small volume of data. Many changes will not look statistically significant but that is different than claiming it is “neutral”. You must ask yourself “How likely is it that there is still a practically significant change”?</p><h3>Check for consistency over time</h3><p>One particular slicing you should almost always employ is to slice by units of time (we often use days, but other units may be useful also). This is because many disturbances to underlying data happen as our systems evolve over time. Typically the initial version of a feature or the initial data collection will be checked carefully, but it is not uncommon for something to break along the way.</p><p>Just because a particular day or set of days is an outlier does not mean you should discard it. Use the data as a hook to find a causal reason for that day being different before you discard it.</p><p>The other benefit of looking at day over day data is it gives you a sense of the variation in the data that would eventually lead to confidence intervals or claims of statistical significance. This should not generally replace rigorous confidence interval calculation, but often with large changes, you can see they will be statistically significant just from the day-over-day graphs.</p><h3>Process</h3><h3>Separate Validation, Description, and Evaluation</h3><p>I think about exploratory data analysis as having 3 interrelated stages:</p><ol><li><em>Validation or </em><a href="http://en.wikipedia.org/wiki/Data_analysis"><em>Initial Data Analysis</em></a>: Do I believe data is self-consistent, that the data was collected correctly, and that data represents what I think it does? This often goes under the name of “sanity checking”. For example, if manual testing of a feature was done, can I look at the logs of that manual testing? For a feature launched on mobile devices, do my logs claim the feature exists on desktops?</li><li><em>Description</em>: What’s the objective interpretation of this data? For example, “Users do fewer queries with 7 words in them?”, “The time page-load to click (given there was a click) is larger by 1%”, and “A smaller percentage of users go to the next page of results.”</li><li><em>Evaluation</em>: Given the description, does the data tell us that something good is happening for the user, for Google, for the world? For example, “Users find results faster” or “The quality of the clicks is higher.”</li></ol><p>By separating these phases, you can more easily reach an agreement with others. The description should be things that everyone can agree on from the data. Evaluation is likely to have much more debate because you imbuing meaning and value to the data. If you do not separate Description and Evaluation, you are much more likely to only see the interpretation of the data that you are hoping to see. Further, Evaluation tends to be much harder because establishing the normative value of a metric, typically through rigorous comparisons with other features and metrics, takes significant investment.</p><p>These stages do not progress linearly. As you explore the data, you may jump back and forth between the stages, but at any time you should be clear what stage you are in.</p><h3>Confirm expt/data collection setup</h3><p>Before looking at any data, make sure you understand the experiment and data collection setup. Communicating precisely between the experimentalist and the analyst is a big challenge. If you can look at experiment protocols or configurations directly, you should do it. Otherwise, write down your own understanding of the setup and make sure the people responsible for generating the data agree that it’s correct.</p><p>You may spot unusual or bad configurations or population restrictions (such as valid data only for a particular browser). Anything notable here may help you build and verify theories later. Some things to consider:</p><ul><li>If it’s the features of a product, try it out yourself. If you can’t, at least look through screenshots/descriptions of behaviour.</li><li>Look for anything unusual about the time range the experiment ran over (holidays, big launches, etc.)</li></ul><h3>Check vital signs</h3><p>Before actually answering the question you are interested in (e.g. “Did users use my awesome new feature?”) you need to check for a lot of other things that may not be related to what you are interested in but may be useful in later analysis or indicate problems in the data. Did the number of users change? Did the right number of affected queries show up in all my subgroups? Did error rates changes? Just as your doctor always checks your height, weight, and blood pressure when you go in, check your data vital signs to potential catch big problems.</p><p>This is one important part of the “Validation” stage.</p><h3>Standard first, custom second</h3><p>This is a variant of checking for what shouldn’t change. Especially when looking at new features and new data, it’s tempting to jump right into the metrics that are novel or special for this new feature. But you should always look at standard metrics first, even if you expect them to change. For example, when adding a brand new UI feature to the search page, you should make sure you understand the impact on standard metrics like clicks on results before diving into the special metrics about this new UI feature. You do this because standard metrics are much better validated and more likely to be correct. If your new, custom metrics don’t make sense with your standard metrics, your new, custom metrics are likely wrong.</p><h3>Measure twice, or more</h3><p>Especially if you are trying to capture a new phenomenon, try to measure the same underlying thing in multiple ways. Then, check to see if these multiple measurements are consistent. By using multiple measurements, you can identify bugs in measurement or logging code, unexpected features of the underlying data, or filtering steps that are important. It’s even better if you can use different data sources for the measurements.</p><h3>Check for reproducibility</h3><p>Both slicing and consistency over time are particular examples of checking for reproducibility. If a phenomenon is important and meaningful, you should see it across different user populations and time. But reproducibility means more than this as well. If you are building models of the data, you want those models to be stable across small perturbations in the underlying data. Using different time ranges or random sub-samples of your data will tell you how reliable/reproducible this model is. If it is not reproducible, you are probably not capturing something fundamental about the underlying process that produced this data.</p><h3>Check for consistency with past measurements</h3><p>Often you will be calculating a metric that is similar to things that have been counted in the past. You should compare your metrics to metrics reported in the past, even if these measurements are on different user populations. For example, if you are looking at measuring search volume on a special population and you measure a much larger number than the commonly accepted number, then you need to investigate. Your number may be right on this population, but now you have to do more work to validate this. Are you measuring the same thing? Is there a rational reason to believe these populations are different? You do not need to get the exact agreement, but you should be in the same ballpark. If you are not, assume that you are wrong until you can fully convince yourself. Most surprising data will turn out to be an error, not a fabulous new insight.<br>New metrics should be applied to old data/features first</p><p>If you gather completely new data and try to learn something new, you won’t know if you got it right. When you gather a new kind of data, you should first apply this data to a known feature or data. For example, if you have a new metric for user satisfaction, you should make sure it tells you your best features help satisfaction. Doing this provides validation for when you then go to learn something new.</p><h3>Make hypotheses and look for evidence</h3><p>Typically, exploratory data analysis for a complex problem is iterative. You will discover anomalies, trends, or other features of the data. Naturally, you will make hypotheses to explain this data. It’s essential that you don’t just make a hypothesis and proclaim it to be true. Look for evidence (inside or outside the data) to confirm/deny this theory. For example, If you believe an anomaly is due to the launch of some other feature or a holiday in Katmandu, make sure that the population the feature launched to is the only one affected by the anomaly. Alternatively, make sure that the magnitude of the change is consistent with the expectations of the launch.</p><p>Good data analysis will have a story to tell. To make sure it’s the right story, you need to tell the story to yourself, predict what else you should see in the data if that hypothesis is true, then look for evidence that it’s wrong. One way of doing this is to ask yourself, “What experiments would I run that would validate/invalidate the story I am telling?” Even if you don’t/can’t do these experiments, it may give you ideas on how to validate with the data that you do have.</p><p>The good news is that these hypotheses and possible experiments may lead to new lines of inquiry that transcend trying to learn about any particular feature or data. You then enter the realm of understanding, not just this data, but deriving new metrics and techniques for all kinds of future analyses.</p><h3>Exploratory analysis benefits from end to end iteration</h3><p>When doing exploratory analysis, you should strive to get as many iterations of the whole analysis as possible. Typically you will have multiple steps of signal gathering, processing, modelling, etc. If you spend too long to get the very first stage of your initial signals perfect you are missing out on opportunities to get more iterations in the same amount of time. Further, when you finally look at your data at the end, you may make discoveries that change your direction. Therefore, your initial focus should not be on perfection but on getting something reasonable all the way through. Leave notes for yourself and acknowledge things like filtering steps and data records that you can’t parse/understand, but trying to get rid of all of them is a waste of time at the beginning of the exploratory analysis.</p><h3>Social</h3><h3>Data analysis starts with questions, not data or a technique</h3><p>There’s always a reason that you are doing some analysis. If you take the time to formulate your needs as questions or hypotheses, it will go a long way towards making sure that you are gathering the data you should be gathering and that you are thinking about the possible gaps in the data. Of course, the questions you ask can and should evolve as you look at the data. But analysis without a question will end up aimless.</p><p>Further, you have to avoid the trap of finding some favourite technique and then only finding the parts of problems that this technique works on. Again, making sure you are clear what the questions are will help you avoid this.</p><h3>Acknowledge and count your filtering</h3><p>Almost every large data analysis starts by filtering the data in various stages. Maybe you want to consider only US users, or web searches, or searches with a result click. Whatever the case, you must</p><ul><li>Acknowledge and clearly specify what filtering you are doing</li><li>Count how much is being filtered at each of your steps</li></ul><p>Often the best way to do the latter is to actually compute all your metrics even for the population you are excluding. Then you can look at that data to answer questions like “What fraction of queries did my filtering remove?”</p><p>Further, looking at examples of what is filtered is also essential for filtering steps that are novel for your analysis. It’s easy to accidentally include some “good” data when you make a simple rule of data to exclude.</p><h3>Ratios should have clear numerator and denominators</h3><p>Many interesting metrics are ratios of underlying measures. Unfortunately, there is often ambiguity of what your ratio is. For example, if I say click-through rate of a site on search results, is it:</p><ul><li>“# clicks on-site’ / ‘# results for that site’</li><li>‘# search result pages with clicks to that site’ / ‘# search result pages with that site shown’</li></ul><p>When you communicate results, you must be clear about this. Otherwise, your audience (and you!) will have trouble comparing to past results and interpreting a metric correctly.</p><h3>Educate your consumers</h3><p>You will often be presenting your analysis and results to people who are not data experts. Part of your job is to educate them on how to interpret and draw conclusions from your data. This runs the gamut from making sure they understand confidence intervals to why certain measurements are unreliable in your domain to what typical effect sizes are for “good” and “bad” changes to understanding population bias effects.</p><p>This is especially important when your data has a high risk of being misinterpreted or selectively cited. You are responsible for providing the context and a full picture of the data and not just the number a consumer asked for.</p><h3>Be both skeptic and champion</h3><p>As you work with data, you must be both the champion of the insights you are gaining as well as a skeptic. You will hopefully find some interesting phenomena in the data you look at. When you have an interesting phenomenon you should ask both “What other data could I gather to show how awesome this is?” and “What could I find that would invalidate this?”. Especially in cases where you are doing analysis for someone who really wants a particular answer (e.g. “My feature is awesome”) you are going to have to play the skeptic to avoid making errors.</p><h3>Share with peers first, external consumers second</h3><p>A skilled peer reviewer can provide qualitatively different feedback and sanity-checking than the consumers of your data can, especially since consumers generally have an outcome they want to get. Ideally, you will have a peer that knows something about the data you are looking at, but even a peer with just experience looking at data, in general, is extremely valuable. The previous points suggested some ways to get yourself to do the right kinds of sanity checking and validation. But sharing with a peer is one of the best ways to force yourself to do all these things. Peers are useful at multiple points through the analysis. Early on you can find out about gotchas your peer knows about, suggestions for things to measure, and past research in this area. Near the end, peers are very good at pointing out oddities, inconsistencies, or other confusions.</p><h3>Expect and accept ignorance and mistakes</h3><p>There are many limits to what we can learn from data. Nate Silver makes a strong case in <a href="http://www.amazon.com/dp/159420411X">The Signal and the Noise</a> that only by admitting the limits of our certainty can we make advances in better prediction. Admitting ignorance is a strength but it is not usually immediately rewarded. It feels bad at the time, but will ultimately earn you respect with colleagues and leaders who are data-wise. It feels even worse when you make a mistake and discover it later (or even too late!), but proactively owning up to your mistakes will translate into credibility. Credibility is the key social value for any data scientist.</p><h3>Closing thoughts</h3><p>No shortlist of advice can be complete even when we break through the barrier of the Top 10 List format (for those of you who weren’t counting, there are 24 here). As you apply these ideas to real problems, you’ll find the habits and techniques that are most important in your domain, the tools that help you do those analyses quickly and correctly, and the advice you wish were on this list. Make sure you share what you’ve learned so we can all be better data scientists.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cb3b3cdec46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hot topics in AI research]]></title>
            <link>https://medium.com/@blessfossil/hot-topics-in-ai-research-db259490bc3c?source=rss-6eb1af1a6cce------2</link>
            <guid isPermaLink="false">https://medium.com/p/db259490bc3c</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Mon, 14 Oct 2019 08:14:36 GMT</pubDate>
            <atom:updated>2019-10-14T08:14:36.244Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are reading this article, you are already surrounded by AI-powered tech more than you can imagine. From the website in front of you to reading CT scans, AI <a href="https://www.techemergence.com/everyday-examples-of-ai/?source=post_page---------------------------">applications</a> are inevitable.</p><p>Generally, when people hear about AI they often equate it to Machine Learning and Deep Learning, but they are just two of the many subtopics in AI research. These two are arguably the most effective themes in today’s AI world but many other subtopics have gained significant traction in the AI community for their applications and the future potential. In this article we will discuss some of the hot subtopics in the AI research, many of these topics are interlinked and come under the broad umbrella of artificial intelligence:</p><h3>Large scale Machine Learning</h3><p>Machine Learning (ML) is concerned about developing systems that improve their performance with experience. In the last decade progress in AI can easily be attributed to the advances in ML. ML is so popular that it has become synonymous with AI. The researchers are now focusing on scaling the state-of-the-art ML algorithms to large datasets. For more information on ML read this <a href="https://medium.com/@ageitgey/machine-learning-is-fun-80ea3ec3c471?source=post_page---------------------------">introductory blog</a>.</p><h3>Deep Learning</h3><p>A subset of ML, Deep Learning (DL) is re-branding of neural networks- a class of models inspired by biological neurons in our brain. DL has been driving force for lots of applications in AI like object recognition, speech, language translation, playing computer games and controlling self-driving cars. For more information on DL read this <a href="https://towardsdatascience.com/introducing-deep-learning-and-neural-networks-deep-learning-for-rookies-1-bd68f9cf5883?source=post_page---------------------------">introductory blog</a>.</p><h3>Reinforcement Learning</h3><p>Reinforcement Learning (RL) is the closed-form of learning to the way a human being learns. It consists of an intelligent agent that interacts with its environment smartly to reap a numerical reward. The goal of the agent is to learn sequential actions to maximize the long-time reward. Like a human being who learns from his experience with the real world, keep exploring new things and updating his values and beliefs, the RL agents works on the similar principle to maximize his rewards in the long run. In 2017, Google’s AlphaGo computer program used RL to beat the world champion in the game of Go. For more information on RL read this <a href="https://medium.freecodecamp.org/an-introduction-to-reinforcement-learning-4339519de419?source=post_page---------------------------">blog</a>.</p><h3>Robotics</h3><p>Technically speaking, Robotics is a separate branch of its own but it does have some overlap with AI. AI has made robot navigation in dynamic environment possible. How do you make sure that a self-driving cargo from point A to point B without harming itself and anyone else in the least time? Advances in DL, RL probably have answers to such questions in Robotics. For more information on robotics read this blog on AI-powered<a href="https://medium.com/fusion-by-fresco-capital/ai-powered-robots-are-now-a-thing-c3ead40d5c56?source=post_page---------------------------"> Robotics</a> and watch these demonstration videos: <a href="https://www.youtube.com/watch?v=wXxrmussq4E&amp;source=post_page---------------------------">1</a>, <a href="https://www.youtube.com/watch?v=W1LWMk7JB80&amp;source=post_page---------------------------">2</a>, <a href="https://www.youtube.com/watch?v=_luhn7TLfWU&amp;source=post_page---------------------------">3</a>.</p><h3>Computer Vision</h3><p><em>If We Want Machines to Think, We Need to Teach Them to See. Fei-Fei Li, Director of Stanford AI lab</em><a href="http://vision.stanford.edu/?source=post_page---------------------------"><em><br></em></a>Computer vision (CV) is concerned with how the computer visually perceives the world around it. Ironically, computers are good at doing mammoth tasks like finding tenth-root of a 100 digit number but struggle in simple tasks like recognizing and differentiating objects. Recent advances in DL and availability of labelled datasets and high computing power have made possible for CV systems to outperform their human counterparts for some of the narrowly defined tasks like visual object classification. For more information on CV read this <a href="https://medium.com/readers-writers-digest/beginners-guide-to-computer-vision-23606224b720?source=post_page---------------------------">blog</a>.</p><h3>Natural Language Processing</h3><p>Natural Language Processing (NLP) is concerned with systems that can perceive and understand spoken human language. It consists of sub-tasks like speech recognition, natural language understanding, generation and translation. With multiple languages used across the globe, NLP systems could be a real changer. Current NLP research includes developing chatbots that can dynamically interact with humans. For more information on NLP read this <a href="https://towardsdatascience.com/a-beginners-guide-to-natural-language-processing-e21e3e016f84?source=post_page---------------------------">introductory blog</a>.</p><h3>Recommender Systems</h3><p>From what to read, what to buy, to whom to date, Recommender Systems (RS) are everywhere and have completely replaced the annoying salesman in the virtual world. Companies like Netflix and Amazon heavy rely on RS. An RS takes into consideration a user’s past preferences, preferences of its peers and trends to make an effective recommendation. For more information on RS read the following articles: <a href="https://medium.com/ai-society/a-concise-recommender-systems-tutorial-fa40d5a9c0fa?source=post_page---------------------------">1</a>, <a href="https://hackernoon.com/introduction-to-recommender-system-part-1-collaborative-filtering-singular-value-decomposition-44c9659c5e75?source=post_page---------------------------">2</a>.</p><h3>Algorithmic Game Theory and Computational Mechanism Design</h3><p>The algorithmic game theory considers systems with multiple agents from economics and social science perspective. It sees how these agents make choices in an incentive-based environment. These multi-agent systems can include self-interested human members along with intelligent agents that compete together in a limited resource environment. For more information on this topic, you can follow the writings of Professor <a href="https://www.seas.harvard.edu/directory/parkes?source=post_page---------------------------">David Parkes</a>. This <a href="http://artint.info/html/ArtInt_234.html?source=post_page---------------------------">link</a> is also a good resource.</p><h3>Internet of Things</h3><p>Internet of Things (IoT) is a concept that daily use of physical devices are connected to the internet and can communicate with each other via exchange of data. The data collected could be processed intelligently to make the devices smarter. This <a href="https://www.iotforall.com/machine-learning-ai-smart-buildings/?source=post_page---------------------------">article</a> explains how AI could be used to make smarter buildings.</p><h3>Neuromorphic Computing</h3><p>With the rise of Deep Learning that relies on neurons based models, researchers have been developing hardware chips that can directly implement neural network architecture. These chips are designed to mimic the brain at the hardware level. In an ordinary chip, the data is required to be transferred between the central processing unit and storage blocks, which results in time overheads and energy consumption. In a neuromorphic chip, data is both processed and stored in the chip in an analogue manner and can generate synapses when required, saving time and energy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db259490bc3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Companies Using A/B Testing to Launch Best Versions of Products]]></title>
            <link>https://medium.com/@blessfossil/companies-using-a-b-testing-to-launch-best-versions-of-products-a564908f5f77?source=rss-6eb1af1a6cce------2</link>
            <guid isPermaLink="false">https://medium.com/p/a564908f5f77</guid>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Fri, 29 Mar 2019 13:12:26 GMT</pubDate>
            <atom:updated>2019-03-29T13:12:26.777Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Companies Using A/B Testing to Launch Best Versions of Products</strong></p><p>How do you select your dress while shopping for a party? Do you ask your dear friends or Family members about the color that suits you the best? Do you? Yes, Indeed! We do. Opinion matters on these subjects, after all the best suiting color on you, will be the best outfit for you to be dazzling at the Party. Taking this as the example set now imagine you are the key person in a Business and want to test if some of your specific product which has two versions i.e., the identical products but one product with a modified version and the other with some old version that you are currently using, How would you come to know the best version which is liked by majority of your customers? Obviously, you would go for a test which would help you in gaining this important feedback from your valuable customers. This is what is known as A/B Test.</p><p>A/B Tests are conducted almost by every business to make it understand of the best version of a product which is liked by its customers to help the business expanding, in absence of which the Business would never come to know the improvisations it needed to survive in the competitive market.</p><p>You are running a business giving services to the customers, launching your existing product which is the key factor of profit in your organization and making a steady profit for quite some time, You want to launch a new version of this existing product but a little doubtful of the fact if this new version would add more profit to your organization or not. This is the time you will go for an A/B Testing now, testing your existing product with 50 percent of your customers and testing the new version of the same product with the left 50 percent. The revenue generated or the positive feedback from both the versions will now be compared and you will go into an evaluation of which product created the larger revenue.</p><p>Each of the Businesses today is using A/B Testing and those who are not is in the list to use this test for increasing the revenue and maintaining the Brand of the company. The words A and B in A/B Testing clearly signifies the two products A and B which is quite understandable in the present context.</p><p>Whether you are working on the next version of your web page wanting to have more traffic on your websites or are in the sales team of your company wanting to have effective campaigns for your sales, A/B Testing is considered the best to test on your customers on what sales campaign they are more attracted to which are resulting in more sales or which version of the web page they are liking more. The results shown by this test are going to add some revenue to the company which will, in turn, increase the profitability of the organization.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a564908f5f77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 Hot Artificial Intelligence (AI) Technologies]]></title>
            <link>https://medium.com/@blessfossil/top-10-hot-artificial-intelligence-ai-technologies-9e4c8c8a6e15?source=rss-6eb1af1a6cce------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e4c8c8a6e15</guid>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Fri, 29 Mar 2019 12:51:10 GMT</pubDate>
            <atom:updated>2019-03-29T12:55:41.143Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Top 10 Hot Artificial Intelligence (AI) Technologies</strong></p><p>The market for artificial intelligence (AI) technologies is flourishing. Beyond the hype and the heightened media attention, the numerous startups and the internet giants racing to acquire them, there is a significant increase in investment and adoption by enterprises. A Narrative Science survey found last year that 38% of enterprises are already using AI, growing to 62% by 2018. Forrester Research predicted a greater than 300% increase in investment in artificial intelligence in 2017 compared with 2016. IDC estimated that the AI market will grow from $8 billion in 2016 to more than $47 billion in 2020.</p><p>Coined in 1955 to describe a new computer science sub-discipline, &quot;Artificial Intelligence&quot; today includes a variety of technologies and tools, some time-tested, others relatively new. To help make sense of what&#39;s hot and what&#39;s not, Forrester just published a TechRadar report on Artificial Intelligence (for application development professionals), a detailed analysis of 13 technologies enterprises should consider adopting to support human decision-making.</p><p>Based on Forrester&#39;s analysis, here&#39;s my list of the 10 hottest AI technologies:</p><p><strong>Natural Language Generation</strong>: Producing text from computer data. Currently used in customer service, report generation, and summarizing business intelligence insights. Sample vendors: Attivio, Automated Insights, Cambridge Semantics, Digital Reasoning, Lucidworks, Narrative Science, SAS, Yseop.</p><p><strong>Speech Recognition</strong>: Transcribe and transform human speech into format useful for computer applications. Currently used in interactive voice response systems and mobile applications. Sample vendors: NICE, Nuance Communications, OpenText, Verint Systems.</p><p><strong>Virtual Agents</strong>: &quot;The current darling of the media,&quot; says Forrester (I believe they refer to my evolving relationships with Alexa), from simple chatbots to advanced systems that can network with humans. Currently used in customer service and support and as a smart home manager. Sample vendors: Amazon, Apple, Artificial Solutions, Assist AI, Creative Virtual, Google, IBM, IPsoft, Microsoft, Satisfi.</p><p><strong>Machine Learning Platforms</strong>: Providing algorithms, APIs, development and training toolkits, data, as well as computing power to design, train, and deploy models into applications, processes, and other machines. Currently used in a wide range of enterprise applications, mostly involving prediction or classification. Sample vendors: Amazon, Fractal Analytics, Google, H2O.ai, Microsoft, SAS, Skytree.</p><p><strong>AI-optimized Hardware</strong>:Graphics processing units (GPU) and appliances specifically designed and architected to efficiently run AI-oriented computational jobs. Currently primarily making a difference in deep learning applications. Sample vendors: Alluviate, Cray, Google, IBM, Intel, Nvidia.</p><p><strong>Decision Management</strong>:Engines that insert rules and logic into AI systems and used for initial setup/training and ongoing maintenance and tuning. A mature technology, it is used in a wide variety of enterprise applications, assisting in or performing automated decision-making. Sample vendors: Advanced Systems Concepts, Informatica, Maana, Pegasystems, UiPath.</p><p><strong>Deep Learning Platforms</strong>: A special type of machine learning consisting of artificial neural networks with multiple abstraction layers. Currently primarily used in pattern recognition and classification applications supported by very large data sets. Sample vendors: Deep Instinct, Ersatz Labs, Fluid AI, MathWorks, Peltarion, Saffron Technology, Sentient Technologies</p><p><strong>Biometrics</strong>: Enable more natural interactions between humans and machines, including but not limited to image and touch recognition, speech, and body language. Currently used primarily in market research. Sample vendors: 3VR, Affectiva, Agnitio, FaceFirst, Sensory, Synqera, Tahzoo.</p><p><strong>Robotic Process Automation</strong>: Using scripts and other methods to automate human action to support efficient business processes. Currently used where it&#39;s too expensive or inefficient for humans to execute a task or a process. Sample vendors: Advanced Systems Concepts, Automation Anywhere, Blue Prism, UiPath, WorkFusion.</p><p><strong>Text Analytics and NLP</strong>:Natural language processing (NLP) uses and supports text analytics by facilitating the understanding of sentence structure and meaning, sentiment, and intent through statistical and machine learning methods. Currently used in fraud detection and security, a wide range of automated assistants, and applications for mining unstructured data. Sample vendors: Basis Technology, Coveo, Expert System, Indico, Knime, Lexalytics, Linguamatics, Mindbreeze, Sinequa, Stratifyd, Synapsify.</p><p>There are certainly many business benefits gained from AI technologies today, but according to a survey Forrester conducted last year, there are also obstacles to AI adoption as expressed by companies with no plans of investing in AI:</p><p>There is no defined business case 42%</p><p>Not clear what AI can be used for 39%</p><p>Don&#39;t have the required skills 33%</p><p>Need first to invest in modernizing data mgt platform 29%</p><p>Don&#39;t have the budget 23%</p><p>Not certain what is needed for implementing an AI system 19%</p><p>AI systems are not proven 14%</p><p>Do not have the right processes or governance 13%</p><p>AI is a lot of hype with little substance 11%</p><p>Don&#39;t own or have access to the required data 8%</p><p>Not sure what AI means 3%</p><p>Once enterprises overcome these obstacles, Forrester concludes, they stand to gain from AI driving accelerated transformation in customer-facing applications and developing an interconnected web of enterprise intelligence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e4c8c8a6e15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Get Better Deep Learning Results]]></title>
            <link>https://medium.com/developer-circle-kampala/how-to-get-better-deep-learning-results-d154058796a8?source=rss-6eb1af1a6cce------2</link>
            <guid isPermaLink="false">https://medium.com/p/d154058796a8</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Wed, 20 Feb 2019 21:15:10 GMT</pubDate>
            <atom:updated>2019-02-20T21:15:10.929Z</atom:updated>
            <content:encoded><![CDATA[<p>Configuring neural network models is often referred to as a “<em>dark art</em>.”</p><p>This is because there are no hard and fast rules for configuring a network for a given problem. We cannot analytically calculate the optimal model type or model configuration for a given dataset.</p><p>Fortunately, there are techniques that are known to address specific issues when configuring and training a neural network that are available in modern deep learning libraries such as Keras.</p><p>You will discover how you can confidently get better performance from your deep learning models.</p><p>This is a big and important post. You might want to bookmark it.</p><p>Let’s get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*A17x469bBgeTUypCE9AFdw.jpeg" /><figcaption>How to Get Better Deep Learning Performance</figcaption></figure><p>Before we get started, let’s make sure you are in the right place.</p><p>The list below provides some general guidelines as to who this article was designed for.</p><p>You need to know:</p><ul><li>Your way around basic Python and NumPy.</li><li>The basics of Keras for deep learning.</li></ul><p>You do NOT need to know:</p><ul><li>How to be a math wiz!</li><li>How to be a deep learning expert!</li></ul><p>This article will take you from a developer that knows a little deep learning to a developer who can get better performance on your deep learning project.</p><p>Note: I assume you have a working Python 2 or 3 SciPy environment with at least NumPy and Keras 2 installed. If you need help with your environment, you can follow the step-by-step tutorial here: <a href="https://machinelearningmastery.com/setup-python-environment-machine-learning-deep-learning-anaconda/">How to Set Up a Python Environment for Machine Learning and Deep Learning With Anaconda</a></p><h3>Overview</h3><p>Below are seven lessons that will allow you to confidently improve the performance of your deep learning model:</p><ul><li><strong>Lesson 01</strong>: Better Deep Learning Framework</li><li><strong>Lesson 02</strong>: Batch Size</li><li><strong>Lesson 03</strong>: Learning Rate Schedule</li><li><strong>Lesson 04</strong>: Batch Normalization</li><li><strong>Lesson 05</strong>: Weight Regularization</li><li><strong>Lesson 06</strong>: Adding Noise</li><li><strong>Lesson 07</strong>: Early Stopping</li></ul><h3>Lesson 01: Better Deep Learning Framework</h3><p>Modern deep learning libraries such as Keras allow you to define and start fitting a wide range of neural network models in minutes with just a few lines of code.</p><p>Nevertheless, it is still challenging to configure a neural network to get good performance on a new predictive modeling problem.</p><p>There are three types of problems that are straightforward to diagnose with regard to the poor performance of a deep learning neural network model; they are:</p><ul><li><strong>Problems with Learning</strong>. Problems with learning manifest in a model that cannot effectively learn a training dataset or shows slow progress or bad performance when learning the training dataset.</li><li><strong>Problems with Generalization</strong>. Problems with generalization manifest in a model that overfits the training dataset and makes poor performance on a holdout dataset.</li><li><strong>Problems with Predictions</strong>. Problems with predictions manifest as the stochastic training algorithm having a strong influence on the final model, causing a high variance in behavior and performance.</li></ul><p>The sequential relationship between the three areas in the proposed breakdown allows the issue of deep learning model performance to be first isolated, then targeted with a specific technique or methodology.</p><p>We can summarize techniques that assist with each of these problems as follows:</p><ul><li><strong>Better Learning</strong>. Techniques that improve or accelerate the adaptation of neural network model weights in response to a training dataset.</li><li><strong>Better Generalization</strong>. Techniques that improve the performance of a neural network model on a holdout dataset.</li><li><strong>Better Predictions</strong>. Techniques that reduce the variance in the performance of a final model.</li></ul><p>You can use this framework to first diagnose the type of problem that you have and then identify a technique to evaluate to attempt to address your problem.</p><h3>Next</h3><p>Discovering how to control the speed of learning with the batch size.</p><h3>Lesson 02: Batch Size</h3><p>Neural networks are trained using gradient descent where the estimate of the error used to update the weights is calculated based on a subset of the training dataset.</p><p>The number of examples from the training dataset used in the estimate of the error gradient is called the batch size and is an important hyperparameter that influences the dynamics of the learning algorithm.</p><p>The choice of batch size controls how quickly the algorithm learns, for example:</p><ul><li><strong>Batch Gradient Descent</strong>. Batch size is set to the number of examples in the training dataset, more accurate estimate of error but longer time between weight updates.</li><li><strong>Stochastic Gradient Descent</strong>. Batch size is set to 1, noisy estimate of error but frequent updates to weights.</li><li><strong>Minibatch Gradient Descent</strong>. Batch size is set to a value more than 1 and less than the number of training examples, trade-off between batch and stochastic gradient descent.</li></ul><p>Keras allows you to configure the batch size via the <em>batch_size</em> argument to the <em>fit()</em> function, for example:</p><p>Neural networks are trained using gradient descent where the estimate of the error used to update the weights is calculated based on a subset of the training dataset.</p><p>The number of examples from the training dataset used in the estimate of the error gradient is called the batch size and is an important hyperparameter that influences the dynamics of the learning algorithm.</p><p>The choice of batch size controls how quickly the algorithm learns, for example:</p><ul><li><strong>Batch Gradient Descent</strong>. Batch size is set to the number of examples in the training dataset, more accurate estimate of error but longer time between weight updates.</li><li><strong>Stochastic Gradient Descent</strong>. Batch size is set to 1, noisy estimate of error but frequent updates to weights.</li><li><strong>Minibatch Gradient Descent</strong>. Batch size is set to a value more than 1 and less than the number of training examples, trade-off between batch and stochastic gradient descent.</li></ul><p>Keras allows you to configure the batch size via the <em>batch_size</em> argument to the <em>fit()</em> function, for example:</p><p>Neural networks are trained using gradient descent where the estimate of the error used to update the weights is calculated based on a subset of the training dataset.</p><p>The number of examples from the training dataset used in the estimate of the error gradient is called the batch size and is an important hyperparameter that influences the dynamics of the learning algorithm.</p><p>The choice of batch size controls how quickly the algorithm learns, for example:</p><ul><li><strong>Batch Gradient Descent</strong>. Batch size is set to the number of examples in the training dataset, more accurate estimate of error but longer time between weight updates.</li><li><strong>Stochastic Gradient Descent</strong>. Batch size is set to 1, noisy estimate of error but frequent updates to weights.</li><li><strong>Minibatch Gradient Descent</strong>. Batch size is set to a value more than 1 and less than the number of training examples, trade-off between batch and stochastic gradient descent.</li></ul><p>Keras allows you to configure the batch size via the <em>batch_size</em> argument to the <em>fit()</em> function, for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*DLdFZl9fMa6gILaDStnZcQ.png" /></figure><p>The example below demonstrates a Multilayer Perceptron with batch gradient descent on a binary classification problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*iSjOrr5tYMJwTCqSXoamow.png" /></figure><h3>Next</h3><p>Discovering how to fine tune a model during training with a learning rate schedule.</p><h3>Lesson 03: Learning Rate Schedule</h3><p>The amount of change to the model during each step of this search process, or the step size, is called the “<em>learning rate</em>” and provides perhaps the most important hyperparameter to tune for your neural network in order to achieve good performance on your problem.</p><p>Configuring a fixed learning rate is very challenging and requires careful experimentation. An alternative to using a fixed learning rate is to instead vary the learning rate over the training process.</p><p>Keras provides the <em>ReduceLROnPlateau</em> learning rate schedule that will adjust the learning rate when a plateau in model performance is detected, e.g. no change for a given number of training epochs. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*FVF0laCxjapMOKAQUMZ0EA.png" /></figure><p>This callback is designed to reduce the learning rate after the model stops improving with the hope of fine-tuning model weights during training.</p><p>The example below demonstrates a Multilayer Perceptron with a learning rate schedule on a binary classification problem, where the learning rate will be reduced by an order of magnitude if no change is detected in validation loss over 5 training epochs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*qGjI82pcejL3Z0vqnQctig.png" /></figure><h3>Next</h3><p>Discovering how you can accelerate the training process with batch normalization</p><h3>Lesson 04: Batch Normalization</h3><p>Batch normalization, or batchnorm for short, is proposed as a technique to help coordinate the update of multiple layers in the model.</p><p>The authors of the paper introducing batch normalization refer to change in the distribution of inputs during training as “<em>internal covariate shift</em>“. Batch normalization was designed to counter the internal covariate shift by scaling the output of the previous layer, specifically by standardizing the activations of each input variable per mini-batch, such as the activations of a node from the previous layer.</p><p>Keras supports Batch Normalization via a separate <em>BatchNormalization</em> layer that can be added between the hidden layers of your model. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*FE1ICUA9NKXSKyrld4NwJQ.png" /></figure><p>The example below demonstrates a Multilayer Perceptron model with batch normalization on a binary classification problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*jJJTMVLJlc7PwhjoCbKtiA.png" /></figure><h3>Next</h3><p>Discovering how to reduce overfitting using weight regularization</p><h3>Lesson 05: Weight Regularization</h3><p>A model with large weights is more complex than a model with smaller weights. It is a sign of a network that may be overly specialized to training data.</p><p>The learning algorithm can be updated to encourage the network toward using small weights.</p><p>One way to do this is to change the calculation of loss used in the optimization of the network to also consider the size of the weights. This is called weight regularization or weight decay.</p><p>Keras supports weight regularization via the <em>kernel_regularizer</em> argument on a layer, which can be configured to use the L1 or L2 vector norm, for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*ckh3XPK3SG7pijNDcDeGfw.png" /></figure><p>The example below demonstrates a Multilayer Perceptron model with weight decay on a binary classification problem</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*-dznB0Kp0oD8si6ojUHtDg.png" /></figure><h3>Next</h3><p>Discovering how to reduce overfitting by adding noise to your mode</p><h3>Lesson 06: Adding Noise</h3><p>Training a neural network with a small dataset can cause the network to memorize all training examples, in turn leading to poor performance on a holdout dataset.</p><p>One approach to making the input space smoother and easier to learn is to add noise to inputs during training.</p><p>The addition of noise during the training of a neural network model has a regularization effect and, in turn, improves the robustness of the model.</p><p>Noise can be added to your model in Keras via the <em>GaussianNoise</em> layer. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*yocnm01Ls1eIZ0qBuOHy3A.png" /></figure><p>Noise can be added to a model at the input layer or between hidden layers.</p><p>The example below demonstrates a Multilayer Perceptron model with added noise between the hidden layers on a binary classification problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*mq42xcGIqirkCD3dBGazxw.png" /></figure><h3>Next</h3><p>Discovering how to reduce overfitting using early stopping.</p><h3>Lesson 07: Early Stopping</h3><p>A major challenge in training neural networks is how long to train them.</p><p>Too little training will mean that the model will underfit the train and the test sets. Too much training will mean that the model will overfit the training dataset and have poor performance on the test set.</p><p>A compromise is to train on the training dataset but to stop training at the point when performance on a validation dataset starts to degrade. This simple, effective, and widely used approach to training neural networks is called early stopping.</p><p>Keras supports early stopping via the <em>EarlyStopping</em> callback that allows you to specify the metric to monitor during training.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*j7UBtp913xFwcUeT7oQBTQ.png" /></figure><p>The example below demonstrates a Multilayer Perceptron with early stopping on a binary classification problem that will stop when the validation loss has not improved for 200 training epochs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*lLfZB-08PcNuIquiStd62A.png" /></figure><h3>The End!<br>(Look how far you have come!)</h3><p>You made it. Well done!</p><p>Take a moment and look back at how far you have come.</p><p>You discovered:</p><ul><li>A framework that you can use to systematically diagnose and improve the performance of your deep learning model.</li><li>Batch size can be used to control the precision of the estimated error and the speed of learning during training.</li><li>Learning rate schedule can be used to fine tune the model weights during training.</li><li>Batch normalization can be used to dramatically accelerate the training process of neural network models.</li><li>Weight regularization will penalize models based on the size of the weights and reduce overfitting.</li><li>Adding noise will make the model more robust to differences in input and reduce overfitting</li><li>Early stopping will halt the training process at the right time and reduce overfitting.</li></ul><p>This is just the beginning of your journey with deep learning performance improvement. Keep practicing and developing your skills.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d154058796a8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/how-to-get-better-deep-learning-results-d154058796a8">How to Get Better Deep Learning Results</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data science process]]></title>
            <link>https://medium.com/developer-circle-kampala/data-science-process-bcc06f713bea?source=rss-6eb1af1a6cce------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcc06f713bea</guid>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Oscar Okello]]></dc:creator>
            <pubDate>Sun, 17 Feb 2019 07:04:42 GMT</pubDate>
            <atom:updated>2019-02-21T18:38:15.113Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we get into the fun part of working with data, let’s break down how data science involves more than just statistics, why it’s becoming more important, and the data science process.</p><p><strong>Data Science vs. Statistics</strong><br>In short, data science is extracting knowledge from data. But how is that different between statistics? Data science encompasses more than statistics. Statistics is good to have for exploratory data analysis, making sure insights are statistically significant, and creating predictive models. Some extra skills other than statistics are good to have to become a data scientist:</p><ul><li>Creativity will help you think of ways to use the data to find associated variables that may not be trivial to find.</li><li>The data, the insights that you find, and visualizations can all come together to tell an intriguing story. Putting this together is a key way to present your findings and to deploy your models.</li><li>Knowledge of programming is a great thing to have as a data scientist. Several things you can do are:</li></ul><blockquote>Programmatically creating statistical or machine learning models.</blockquote><blockquote>Use <strong>pandas</strong> or <strong>dplyr</strong> to programmatically do data wrangling and cleaning.</blockquote><blockquote>Can create web or mobile applications to use the created models.</blockquote><p><strong>Why Data Science is Becoming More Important</strong><br>This <a href="https://www.forbes.com/sites/bernardmarr/2015/09/30/big-data-20-mind-boggling-facts-everyone-must-read/#4b8a5f7917b1">article on Forbes about big data</a> helps sum up the importance of data scientists and why they are becoming more sought after. Here are a couple of highlights on what it will be like in the future:</p><blockquote>By then (2020), our accumulated digital universe of data will grow from 4.4 <a href="https://en.wikipedia.org/wiki/Zettabyte"><strong>zettabytes</strong></a> today to around 44 zettabytes, or 44 trillion gigabytes.</blockquote><blockquote>Within five years there will be over 50 billion smart connected devices in the world, all developed to collect, analyze and share data.</blockquote><p>And the one that is most relevant to data scientists:</p><blockquote>At the moment less than 0.5% of all data is ever analyzed and used.</blockquote><p>Imagine all the knowledge that can be gathered from looking at even 1% of that data! Also, imagine how much of that data can be used as training data for machine learning opportunities.</p><p>A good bit of that data, too, can be used for really positive outcomes. Can the data help us figure out who is more prone to certain diseases? Will doctors be able to get better diagnoses? Is safer travel possible?</p><p><strong>Data Science Process</strong><br>So what does a data scientist actually do? Data scientists seem to have a bit of a magical quality to them. They are perceived to get a data set, apply some magic to it, and instantly comes insights that will transform the business to higher profits. As much as that may seem like it is, there is a lot more work into the process.</p><p>To get a better idea of this process, here’s a diagram of the <a href="https://en.wikipedia.org/wiki/Cross_Industry_Standard_Process_for_Data_Mining">Cross Industry Standard Process for Data Mining</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*rjON5hSBpDINVkncWw5_vg.png" /></figure><h3>Data Science Process in Detail</h3><p>Let’s look at each of these items in more detail to help give more definition to them.</p><ul><li><strong>Business Understanding</strong> — In this first step, we try to get a better idea of what business needs we should be extracting from data. What kind of questions should we be asking to help further the business and to help the business understand what kinds of actions it should take from the trends that the data shows. This could be open ended in such that you, as the data scientist, ask questions about the data that you see and find. Or it could be a series of questions from your client that they specifically want to know.</li><li><strong>Data Understanding</strong> — This is getting a business idea of the data that you have and understanding what each part of the data means. This may involve actually figuring out what data would be best needed and the best ways to acquire it. This also means finding out what each of the data points signifies in terms of the business. For instance, if you’re given a data set from a client, you have to know what each column and row represent. Do rows represent a single customer? Does this one column with a heading of what looks to be an acronym has a big relationship with the data? We can’t really know this without understanding what exactly it means.</li><li><strong>Data Preparation</strong> — The data preparation part of the process is where most of your time will be. Cleaning the data can be more of an art form than a science since you have to realize if you have the correct data to proceed to a good model and knowing how to clean it correctly so it won’t corrupt your model. I would also consider that having <em>reliable</em> data is part of this, as well. There’s an old saying, “garbage in, garbage out”. Your model won’t be very effective if you’re giving it bad data.</li><li><strong>Modeling</strong> — Here is where doing statistics and analyzing the data come in to create a model that best fits the data. You may have to try several models in order to find one with the best fit. In order to do that, going back to how the data was prepared may often happen. There are more ways to clean missing data. Is it safe to just remove the rows? Is there an average we can put in for it? There may even be a better value to put in the missing ones depending on the business. All of these can help make the model much better.</li><li><strong>Evaluation</strong> — This part is where you test to see if you have a good model or not before deploying or presenting. As the diagram indicates, this is also the part where you make sure the model answers the business questions you had at the beginning of this process. Perhaps it may even uncover more questions that are more important.</li><li><strong>Deployment</strong> — This is where you share your findings of the data. This isn’t limited to having an API to call that uses your model. It could simply be documenting your findings in an email, a shared document, or presenting to a group of executives. While it’s easy to talk technical with your colleagues, relaying what you find in the data to a sales team or the executives so they can take action with it is the key with this step.</li></ul><p>The interesting parts of this diagram indicate that it’s best to have an understanding of the business. Without that, it would be much harder to ask the right questions and extract the most information from the data. Also, some items can have the potential to go back and be iterated on again. For example, if you’ve moved from data preparation to modeling but new data came in, you would have to go back to preparing the new data and merging it with the old data that you already had to help give you more accurate results.</p><p>Once you have a model and are evaluating it, like the arrow indicates, it’s helpful to go back to make sure that the results of the model are in line with the business. Does it help the business take action? Can it give answers to the business questions we had at the beginning? Are there any new questions that were raised?</p><p>Now that we looked at what data science is and its process, I think it’s time to look at a data set to see if we can answer any questions from it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcc06f713bea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/developer-circle-kampala/data-science-process-bcc06f713bea">Data science process</a> was originally published in <a href="https://medium.com/developer-circle-kampala">Developer Circle Kampala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>