<?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 Woneui  Hong on Medium]]></title>
        <description><![CDATA[Stories by Woneui  Hong on Medium]]></description>
        <link>https://medium.com/@woneuihong?source=rss-f342f55077f6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wxnjEA6uK2bSbzle.</url>
            <title>Stories by Woneui  Hong on Medium</title>
            <link>https://medium.com/@woneuihong?source=rss-f342f55077f6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:10:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@woneuihong/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[[One-page machine learning] Estimation and Prediction]]></title>
            <link>https://medium.com/@woneuihong/one-page-machine-learning-estimation-and-prediction-9bb4b1b85ab9?source=rss-f342f55077f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bb4b1b85ab9</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[one-page-machine-learning]]></category>
            <dc:creator><![CDATA[Woneui  Hong]]></dc:creator>
            <pubDate>Wed, 12 Dec 2018 13:26:52 GMT</pubDate>
            <atom:updated>2018-12-12T13:37:59.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*e_nChqzG-8OIa3UJ6OjaqA.png" /></figure><p>One of the machine learning basic is the concept of a model in a general view. Model is like a hypothesis, which represents some <strong>GUESS</strong> on something real.</p><p>For example, when we toss a coin several times in a row, let’s say it’s 10000 times. Then the number of heads might be some value around 5000 when the coin is ideal. As the number of flips (=N) increases, the approximation gets closer to ½. Note that each x represents a random variable which contains 1 (head) or 0 (tail), i.e., x∈{0, 1}.</p><p>As N increases, the variance of the parameter p_0 gets small. For instance, if N=100000000, just one or two more or fewer trials will not affect that much on the result. As the very same analogy, we say that the model M learns data more and more and gets stable. Then stop learning at some point when p seems stable enough. When we find the optimal parameter p for the model, then we call the parameter in a new term, <em>p hat.</em> The process of finding the optimal <em>p hat </em>from data is parameter <strong>estimation</strong>.</p><p>Now the model M with the estimated parameter <em>p hat</em> can be used to decide whether the unknown trial will be ‘head’ or ‘tail’. This is called <strong>prediction</strong> of outcome (i.e., we can easily guess the coin will be head in ½ probability without tossing it 10000 times. It’s because we already get the estimated parameter ½ in our memory.)</p><p>The left part of the figure depicts the parameter <strong>estimation</strong>, while the right part is the <strong>prediction</strong> of outcome. Most of the (parametric) machine learning models are built (=estimated) and used(in prediction) in this scheme.</p><p>Though the figure illustrates a naive parameter p which is easy to know. More advanced and complex parametric models are still based on this concept of estimation and prediction.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bb4b1b85ab9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[One-page machine learning] model tuning in parametric approach]]></title>
            <link>https://medium.com/@woneuihong/one-page-machine-learning-model-tuning-in-parametric-approach-5262a7285f19?source=rss-f342f55077f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/5262a7285f19</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Woneui  Hong]]></dc:creator>
            <pubDate>Wed, 05 Dec 2018 03:49:35 GMT</pubDate>
            <atom:updated>2018-12-13T08:08:39.055Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*58_9x1065ft7NaRXU3Bb5Q.png" /><figcaption>Parameter tuning in the parametric approach</figcaption></figure><p>Machine learning is a bunch of engineering techniques for building a model 𝑀 which represents given data ‘well’ enough. Though ‘well’ is ambiguous to say, we will find out how this ‘well’ness is defined in terms of engineering in later chapters.</p><p>There are 3 major types of approaches in supervised learning, parametric approaches, non-parametric approaches, and semi-parametric approaches. Parametric approaches, in particular, require a parameter 𝜽 (it could be a fixed value, a list of values (i.e., a vector), or even a set of probability distributions) in a model 𝑀 to be tuned to certain “criteria<em>”</em>. The criteria vary with respect to different objectives of why we want the model. The objectives can be maximizing utilities or minimizing “errors” over the given “constraints”.</p><p>Note that when you find words in quotation marks (e.g., “errors”), it means that the term is used in general (i.e., common sense), but it actually contains detail which can be investigated more deeply. For example, there are hundreds of “distances” defined in different ways for different usages (<a href="https://en.wikipedia.org/wiki/Distance">https://en.wikipedia.org/wiki/Distance</a><a href="https://en.wikipedia.org/wiki/Type_I_and_type_II_errors">)</a>. In terms of engineering, it is required to very carefully pick a proper term to solve a problem.</p><p>Without loss of generality, the parameter stated above is represented as 𝜽 in the figure. We choose to use the machine learning model 𝑀 as a parametric model for particular reasons, and we can choose 𝑀 as a non-parametric or as semi-parametric for some other reasons, which we will see later.</p><p>Imagine that you are an owner of a vending machine 𝑀 who just bought it from a factory. You do not yet know which beverages will be more consumable after installing it in the school corridor. The size and functions of 𝑀 are already designed and well known (i.e., you put in the coins, press the button, then get the item) but the display of items is not yet decided because you don’t know the market enough. Then what you first need to do is to collect data from the customers so that you can decide which items to sell. Let me describe how it works. You just put any items at random (Cola in the first row, soda in the second row, and so on), and put the plug and see what will happen during a week. After the week, you check that some items were more consumed than the others. Then you adjust the display under your policy (i.e., the more consumed, the more displayed), fill in the new stock, and wait one more week. You repeat this process until your effort to adjust seems useless. Then you can say that you learned enough of the customers in the corridor. Then leave the machine as it is and move to install another machine to attain more money. This is exactly the same what the machine 𝑀(=vending machine) searches the parameter 𝜽(=how items displayed) over data (=items).</p><p>In the figure above, there are basically two separate areas. <strong>Known</strong>, and <strong>unknown</strong>. We have the parametric model 𝑀 in the<strong> </strong>area of <strong>known </strong>(i.e., you know everything about the machine but 𝜽). What you do at first is to randomly initialize the parameter 𝜽 so that the model is now in the area of unknown. As 𝑀 learns the data, 𝜽 is tuned(=learnt) toward the data. The model is in the state of <strong>underfitting </strong>on first several trials, which means 𝑀 needs to learn more. As the trial is going on, 𝑀 moves to the state of <strong>overfitting</strong>. Which means it learns too much so that it predicts almost perfectly for the given data. However, though the vending machine is well fit to the school students, how to deal with their parents, who do have a completely different taste with students, came to celebrate their graduation? Well, you can simply just say that ‘that is just an exception, we can ignore the case’. This may be right in the case of a vending machine, but what if the machine is not a vending machine and is used in the medical domain? just 1 over million mispredict may cause big trouble. Since being overfit in training data gives high error rates for test data, the high error rate for the test case is not a desirable option.</p><p>The more fundamental reason why overfitting is not welcomed is that predicting given data has nowhere to be used. The reason why we let the machine predict is to make it be able to treat well for the cases which it has not seen before.</p><p>𝑀 starts learning 𝜽 from underfit (i.e., random, completely wrong), move to overfit (i.e., precisely right to the given data, useless). We can find the optimum between them.</p><p>To find the point where to stop learning, 𝑀 exploits not only training data but validation data. As 𝜽 is tuned to the training data, validation data is used to check the performance never changing 𝜽. If 𝑀 is too tuned to the training data, the error rate is going to serge under validation data. There is when the machine 𝑀 stops learning. Then we finally get the machine with a so-so performance in training data and so-so performance in test data. Note that exact prediction in the test set is under God’s domain in the real world because the future is partially based on known area, but basically based on unknown area.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5262a7285f19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[One-page machine learning] What does ‘learning’ mean in machine learning?]]></title>
            <link>https://medium.com/@woneuihong/one-page-machine-learning-what-does-learning-mean-in-machine-learning-6e6f5ef1e8fe?source=rss-f342f55077f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e6f5ef1e8fe</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Woneui  Hong]]></dc:creator>
            <pubDate>Thu, 29 Nov 2018 04:00:02 GMT</pubDate>
            <atom:updated>2018-12-13T07:31:26.118Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*aqpuAXDE9lYpER81AxiY9Q.png" /></figure><p>Once upon a long, long time ago, people were stupid. They just got wet in the rain, for example. But one day, someone decided they didn’t want to be wet anymore, so they decided to invent tools. Of course, all the tools were built manually and used manually.</p><p>After several million years later, people got smarter and invented something called a machine. People who were called ‘engineers’ made the machines and lazy people like me just used them by pushing the run button (AD 1956 is the year the term ‘AI’ was born). The machines were built based on logic (i.e., if~then~), and many engineers needed to debug the machines before selling them to customers, to check if they had logical errors or not.</p><p>After several decades, people got smarter and invented a new type of machine which is even smarter. We still need engineers to build such machines and set compulsory parameters for them. However, the machines now investigate given a training set of data and tune their own values. This is called machine ‘learning’. This means the machines change settings in themselves by learning from data. The machines are still based on logic, and also are based on data to be built. This is a big difference because machines in the past were stupid, so they could not correct themselves without engineers. However, engineers still need to check whether the machines are well made or not. The checking is done by putting other sets of data called validation and testing.</p><p>After more long, long years, when utopia comes, both building and running procedures might be automated (I believe), and then we may not need engineers anymore.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e6f5ef1e8fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning in General]]></title>
            <link>https://medium.com/series/machine-learning-in-general-9d73d64e7441?source=rss-f342f55077f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d73d64e7441</guid>
            <dc:creator><![CDATA[Woneui  Hong]]></dc:creator>
            <pubDate>Fri, 10 Aug 2018 05:30:13 GMT</pubDate>
            <atom:updated>2018-08-10T05:30:13.694Z</atom:updated>
            <content:encoded><![CDATA[<p>df</p><p>df</p><p>test</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d73d64e7441" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>