<?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 Muhammad Rizki on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Rizki on Medium]]></description>
        <link>https://medium.com/@murzkii?source=rss-9990c9edfba1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*jazLvUFwk6y15ikLTXqvPQ.jpeg</url>
            <title>Stories by Muhammad Rizki on Medium</title>
            <link>https://medium.com/@murzkii?source=rss-9990c9edfba1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:16:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@murzkii/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[[Practice] Data Preprocessing To The Rescue]]></title>
            <link>https://medium.com/analytics-vidhya/practice-data-preprocessing-to-the-rescue-13b57b86f868?source=rss-9990c9edfba1------2</link>
            <guid isPermaLink="false">https://medium.com/p/13b57b86f868</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-cleaning]]></category>
            <category><![CDATA[data-transformation]]></category>
            <category><![CDATA[data-preprocessing]]></category>
            <category><![CDATA[titanic]]></category>
            <dc:creator><![CDATA[Muhammad Rizki]]></dc:creator>
            <pubDate>Tue, 02 Jun 2020 14:32:25 GMT</pubDate>
            <atom:updated>2020-06-10T16:12:54.540Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bjZhKIsEZ4QF7K9V.jpg" /><figcaption>Titanic (<a href="https://i.ytimg.com/vi/XN4zWR2-7g8/maxresdefault.jpg">https://i.ytimg.com/vi/XN4zWR2-7g8/maxresdefault.jpg</a>)</figcaption></figure><p>We’ve already know how important Data Preprocessing is in the last chapter. If you have forgot about it, you can read in here. As we know, Data Preprocessing has 4 stage which are Data Cleaning, Data Transformation, Data Integration and Data Reduction. In this chapter, we will discover about how we use this ‘Data Preprocessing’ using Python Programming Language on Google Colab.</p><p>The main problem here is to predict how many survivor can survive from Titanic tragedy in the past. You can download data set in <a href="https://drive.google.com/drive/folders/1xVVAtUD94CEdZkSRXWeANaHp2wRRNDqi?usp=sharing">here</a>. Alright, here we go.</p><p>First thing first, if you want to using Google Colab, you should visit this <a href="https://colab.research.google.com/">link </a>and load data set in your Google Drive. After that, we can begin our journey. As the first step, we import some libraries that we need and do Explore Data Analytics.</p><pre>import pandas as pd<br>import numpy as np<br>import matplotlib.pyplot as plt<br>from matplotlib import style</pre><pre>titanic = pd.read_csv(&#39;/content/drive/My Drive/Datasets/titanic/train.csv&#39;, dtype={&#39;Age&#39;:np.float64})</pre><pre>titanic.head(3)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6BkvVMDd4l9V2U9USaVJwg.png" /><figcaption>Three rows data in data set</figcaption></figure><h3><strong>PERFORMING DATA CLEANING AND ANALYSIS</strong></h3><ol><li>Understanding meaning of each column: Data Dictionary: Variable Description</li></ol><p>Survived — Survived (1) or died (0)</p><p>Pclass — Passenger’s class (1 = 1st, 2 = 2nd, 3 = 3rd)</p><p>Name — Passenger’s name</p><p>Sex — Passenger’s sex</p><p>Age — Passenger’s age</p><p>SibSp — Number of siblings/spouses aboard</p><p>Parch — Number of parents/children aboard (Some children travelled only with a nanny, therefore parch=0 for them.)</p><p>Ticket — Ticket number</p><p>Fare — Fare</p><p>Cabin — Cabin</p><p>Embarked — Port of embarkation (C = Cherbourg, Q = Queenstown, S = Southampton)</p><p>2. Analysis which columns are completely useless in predicting the survival and deleting them</p><p>Don’t just delete the columns because you are not finding it useful. Or focus is not on deleting the columns. Our focus is on analysing how each column is affecting the result or the prediction and in accordance with that deciding whether to keep the column or to delete the column or fill the null values of the column by some values and if yes, then what values.</p><pre>titanic.describe()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*beGhnJBVRke9aqgfpiV6vw.png" /></figure><p>Since Name, Ticket, Cabin and Fare can’t decide survival of person, hence we can delete those column.</p><pre>del titanic[&#39;Name&#39;]<br>del titanic[&#39;Ticket&#39;]<br>del titanic[&#39;Cabin&#39;]<br>del titanic[&#39;Fare&#39;]</pre><pre>titanic.head(3)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*AkkiP0EM2MSrG7jXC_y9BA.png" /></figure><h3><strong>PERFORMING DATA TRANSFORMATION</strong></h3><p>We can convert the categorical value which is ‘Sex’ column into numerical value using <strong>One Hot Encoding</strong></p><pre>def getNumber(abc):<br>   if abc == &#39;male&#39;:<br>     return 1<br>   else :<br>     return 2</pre><pre>titanic[&#39;Gender&#39;] = titanic[&#39;Sex&#39;].apply(getNumber)<br>del titanic[&#39;Sex&#39;]<br>titanic.head(3)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*dZV_g3hWe9TFiSlSzHM0sQ.png" /></figure><p>After that. we can check how many data that contain null values using this one.</p><pre>titanic.isnull().sum()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/151/1*aQDRafz_SNfa7gSmjjwclA.png" /><figcaption>Information of missing values in data set</figcaption></figure><p>We got information that ‘Age’ column has 177 null values. This time, we wil fill this missing values using mean age of survived people</p><pre>age_mean = titanic[titanic.Survived == 1].Age.mean()<br>titanic[&#39;age&#39;] = np.where(pd.isnull(titanic.Age) &amp; titanic[&quot;Survived&quot;] == 1,age_mean, titanic[&quot;Age&quot;])</pre><pre>age_mean<br>titanic.head(3)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*CB-DMiDRbrtKDPuxAICmGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*FScbL3FigIptDeVatkSxig.png" /></figure><pre>titanic.isnull().sum()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/152/1*tfIwMVdtuxg2_EYT4SLCDQ.png" /><figcaption>‘age’ column contains missing values that person can’t survive</figcaption></figure><p>Since we got 125 rows data that contain missing values of person that can’t survive in Titanic tragedy, we hereafter should fill those missing values.</p><pre>age_mean_not_survived = titanic[titanic.Survived == 0].Age.mean()<br>titanic.age.fillna(age_mean_not_survived, inplace = True)<br>titanic.isnull().sum()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/154/1*EFYu2nFOvBAo9AF8xc7w7Q.png" /></figure><p>Voila, we succeed fill those missing values in Age. Our task now is remove “Age” column.</p><pre>del titanic[&#39;Age&#39;]<br>titanic.rename(columns = {&#39;age&#39; : &#39;Age&#39;}, inplace = True)<br>titanic.rename(columns={&#39;Gender&#39; : &#39;Sex&#39;}, inplace = True)</pre><p>Good job! Now, we want to check if “Embarked” column is <strong>important for analysis or not</strong>, that is whether survival of the person depends on the Embarked column value or not.</p><pre>survivedQ = titanic[titanic.Embarked == &#39;Q&#39;][titanic.Survived == 1].shape[0]<br>survivedC = titanic[titanic.Embarked == &#39;C&#39;][titanic.Survived == 1].shape[0]<br>survivedS = titanic[titanic.Embarked == &#39;S&#39;][titanic.Survived == 1].shape[0]</pre><pre>print(&#39;The number of survived Embarked Q is: &#39;, survivedQ)<br>print(&#39;The number of survived Embarked C is: &#39;, survivedC)<br>print(&#39;The number of survived Embarked S is: &#39;, survivedS)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*jWyiSv-jad6fWziesnGXkQ.png" /></figure><pre>not_survivedQ = titanic[titanic.Embarked == &#39;Q&#39;][titanic.Survived == 1].shape[0]<br>not_survivedC = titanic[titanic.Embarked == &#39;C&#39;][titanic.Survived == 1].shape[0]<br>not_survivedS = titanic[titanic.Embarked == &#39;S&#39;][titanic.Survived == 1].shape[0]</pre><pre>print(&#39;The number of not survived Embarked Q is: &#39;, not_survivedQ)<br>print(&#39;The number of not survived Embarked C is: &#39;, not_survivedC)<br>print(&#39;The number of not survived Embarked S is: &#39;, not_survivedS)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*cZ9ikjz5lXNjNwWy2DPWWg.png" /></figure><p>As there are significant changes in the survival rate based on which port the passengers aboard the ship. We cannot delete the whole embarked column(It is useful). Now the Embarked column has some null values in it and hence we can safely say that deleting some rows from total rows will not affect the result. So rather than trying to fill those null values with some vales. We can simply remove them.</p><pre>titanic.dropna(inplace = True)<br>titanic.isnull().sum()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/1*lOdzC37qL0qne-aY4fpT_Q.png" /></figure><p>As for now, finally we have the clear data. Next step is change Embark column as categorical value into numerical value.</p><pre>def getEmb(str):<br>   if str == &quot;S&quot;:<br>     return 1<br>   elif str == &quot;C&quot;:<br>     return 2<br>   else:<br>     return 3</pre><pre>titanic[&#39;Embark&#39;] = titanic[&#39;Embarked&#39;].apply(getEmb)<br>titanic.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*dcIQCq8jPNW7g_tkAyHNpw.png" /></figure><pre>import matplotlib.pyplot as plt<br>from matplotlib import style</pre><pre>males = (titanic[&#39;Sex&#39;] == 1).sum()<br>females = (titanic[&#39;Sex&#39;] == 2).sum()</pre><pre>print(males)<br>print(females)</pre><pre>p = [males, females]</pre><pre>plt.pie(p, labels = [&#39;Male&#39;, &#39;Female&#39;], colors = [&#39;green&#39;, &#39;yellow&#39;], explode = (0.15, 0), startangle = 0)<br>plt.axis(&#39;equal&#39;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*9T623AzHXn1BkedGZr1VtA.png" /><figcaption>Pie Chart of Male and Female</figcaption></figure><pre>MaleS = titanic[titanic.Sex == 1][titanic.Survived == 1].shape[0]<br>print(MaleS)<br>MaleN = titanic[titanic.Sex == 1][titanic.Survived == 0].shape[0]<br>print(MaleN)<br>FemaleS = titanic[titanic.Sex == 2][titanic.Survived == 1].shape[0]<br>print(FemaleS)<br>Femalen = titanic[titanic.Sex == 2][titanic.Survived == 0].shape[0]<br>print(FemaleN)</pre><pre>chart = [MaleS, MaleN, FemaleS, FemaleN]<br>colors = [&#39;lightskyblue&#39;, &#39;yellowgreen&#39;, &#39;Yellow&#39;, &#39;Orange&#39;]<br>labels = [&#39;Survived Male&#39;, &#39;Not Survived Male&#39;, &#39;Survived Female&#39;, &#39;Not Survived Female&#39;]<br>explode = [0, 0.05, 0, 0.1]</pre><pre>plt.pie(chart, labels = labels, colors = colors, explode = explode, startangle = 100, counterclock = False, autopct = &quot;%.2f%%&quot;)<br>plt.axis(&quot;equal&quot;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*d-3NA1OFwaf7RpIYOSKfIw.png" /><figcaption>The final result of our job</figcaption></figure><p>If you want to access full code of this project, you can visit my Github <a href="https://github.com/riskiip/data_preprocessing">here</a></p><h3>What’s Next ?</h3><p>We will discover about ‘Model’ in Machine Learning. It will be nice to you to know more about model in here. If you mastered all the models, you can build anything you want</p><p>Thank you for all of you, don’t forget to leave a note or comment for me and have a good day everyone :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13b57b86f868" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/practice-data-preprocessing-to-the-rescue-13b57b86f868">[Practice] Data Preprocessing To The Rescue</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s Dive Into Data Preprocessing]]></title>
            <link>https://medium.com/analytics-vidhya/lets-dive-into-data-preprocessing-e2284977e9c4?source=rss-9990c9edfba1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2284977e9c4</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-transformation]]></category>
            <category><![CDATA[data-preprocessing]]></category>
            <category><![CDATA[data-reduction]]></category>
            <category><![CDATA[data-cleaning]]></category>
            <dc:creator><![CDATA[Muhammad Rizki]]></dc:creator>
            <pubDate>Tue, 02 Jun 2020 09:10:09 GMT</pubDate>
            <atom:updated>2020-06-02T15:40:22.509Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*4luBfix71eXlI-N56Li4eA.png" /></figure><p>Living in this modern age, we face thousands of data every day. When we start our day by waking up in the morning, the first thing we do for most of us is to check the smartphone to see “is there an important email that I haven’t read?” or we check our social media to see “is my friend having a birthday today?” or do we check the news on the smartphone to see “what’s hot today?” Those are all examples of the application of data. Can you imagine if you face raw data that has not been processed before?</p><h3><strong>WHAT IS DATA PREPROCESSING</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*PGrD4e3vCukYIZ8UR9jfog.jpeg" /></figure><blockquote>“A simple definition could be that data preprocessing is a data mining technique to turn the raw data gathered from diverse sources into cleaner information that’s more suitable for work. In other words, it’s a preliminary step that takes all of the available information to organize it, sort it, and merge it.”</blockquote><p>Raw data can have missing or inconsistent values as well as present a lot of redundant information. The most common problems you can find with raw data can be divided into 3 groups:</p><p>· <strong>Missing data:</strong> you can also see this as inaccurate data since the information that isn’t there creates gaps that might be relevant to the final analysis. Missing data often appears when there’s a problem in the collection phase, such as a glitch that caused a system’s downtime, mistakes in data entry, or issues with biometrics use, among others.</p><p>· <strong>Noisy data:</strong> this group encompasses erroneous data and outliers that you can find in the data set but that is just meaningless information. Here you can see noise made of human mistakes, rare exceptions, mislabels, and other issues during data gathering.</p><p>· <strong>Inconsistent data:</strong> inconsistencies happen when you keep files with similar data in different formats and files. Duplicates in different formats, mistakes in codes of names, or the absence of data constraints often lead to inconsistent data, that introduces deviations that you have to deal with before analysis.</p><p>If you didn’t take care of those issues, the final output would be plagued with faulty insights. That’s especially true for more sensitive analysis that can be more affected by small mistakes, like when it’s used in new fields where minimal variations in raw data can lead to wrong assumptions.</p><h3><strong>WHY WE NEED DATA PROCESSING</strong></h3><p>By now, you’ve surely realized why your data preprocessing is so important. Since mistakes, redundancies, missing values, and inconsistencies all compromise the integrity of the set, you need to fix all those issues for a more accurate outcome. Imagine you are training a Machine Learning algorithm to deal with your customers’ purchases with a faulty dataset. Chances are that the system will develop biases and deviations that will produce a poor user experience.</p><p>Thus, before using that data for the purpose you want, you need it to be as organized and “clean” as possible. There are several ways to do so, depending on what kind of problem you’re tackling. Ideally, you’d use all of the following techniques to get a better data set. This picture below will help you to understand the steps you can do in Data Preprocessing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*1ozRqxjGXsthOHDuQ5LaPg.png" /></figure><p><strong>DATA CLEANING</strong></p><p>Your sets will surely have missing and noisy data. That’s because the data gathering process isn’t perfect, so you’ll have many irrelevant and missing parts here and there. The method you should use to take care of this issue is called data cleaning.</p><p>We can divide this into two groups. The first one includes methods to <strong>fight</strong> missing data. Here, you can choose to <strong>ignore</strong> the part of the data set that has the missing values (called a tuple) by remove the null values and remove the outlier values. This is only feasible if you’re working with a big dataset that has multiple missing values in the same tuple.</p><p>In other cases, the best approach you can take is <strong>filling</strong> the missing values. How? By inputting the values manually or using computational processes that assign values through attribute <strong>mean</strong> or by calculating the <strong>most probable value</strong>. The manual approach is far more accurate, but it can take a significant amount of time, so it’s up to you to decide which is the best way to go here.</p><p>But, how can we process the data if we want to make a Linear Regression or Support Vector Machine? The answer is by using conversion. We convert the data that has categorical value into a numerical value. This technique is called “One Hot Encoding”, and the process will go like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*vDc8i_xD9kSX7dQtsdOnZw.png" /></figure><p><strong>DATA TRANSORMATION</strong></p><p>After handling the issues mentioned above, data preprocessing moves on to the transformation stage. In this stage, you need to transform the data into appropriate conformations for the analysis. This can be done through several techniques, including:</p><p>· <strong>Normalization:</strong> scaling the data values in a predefined range.</p><p>· <strong>Attribute selection:</strong> using the given attributes, you create new ones to further organize the data sets and help the ulterior data analysis.</p><p>· <strong>Discretization</strong>: here you replace the raw values of numeric attributes with interval or conceptual levels.</p><p>· <strong>Concept Hierarchy Generation:</strong> finally, you take the levels you built before and take them to higher levels (for instance, taking values to more general categories)</p><p><strong>DATA REDUCTION</strong></p><p>Sifting through massive datasets can be a time-consuming task, even for automated systems. So, its time for Data Reduction to the rescue. Using data reduction, we can set limits to the data sets to the most important information, thus increasing storage efficiency while reducing the money and time costs associated with working with such sets.</p><p>Data reduction is a complex process that involves several steps, including:</p><p>· <strong>Data Cube Aggregation:</strong> data cubes are multidimensional arrays of values that result from data organization. To get there, you can use aggregation operations that derive a single value for a group of values (such as the average daily temperature in a given region).</p><p>· <strong>Attribute Subset Selection:</strong> selecting attributes means that only the most relevant will be used and the rest will be discarded. To select subsets, you can define a minimum threshold that all attributes have to reach to be taken into consideration. Every attribute that’s under that threshold is automatically discarded.</p><p>· <strong>Numerosity Reduction:</strong> for you to get a more manageable dataset, you can use numerosity reduction, a data reduction technique that replaces the original data with a smaller representation of that data.</p><p>· <strong>Dimensionality Reduction:</strong> Finally, you can wrap the set up by using data encoding mechanisms to further reduce its size. As with all compressing methods, you can go for a lossy or lossless option, depending on your specific needs and whether you want to retrieve the original information in its entirety or can afford the loss of certain parts.</p><p>By tackling all of these stages and combining these techniques, you can rest assured that the data sets you’ll use for work will be consistent and in better shape than if you didn’t take the trouble to do so. The suggestion is that you always go through a data preprocessing stage so you have stronger and more accurate results.</p><h3><strong>WHAT’S NEXT?</strong></h3><p>It has released <a href="https://medium.com/@murzkii/practice-data-preprocessing-to-the-rescue-13b57b86f868">here</a> ! We will discover a project using Titanic datasets to practice our Data Preprocessing knowledge.</p><p>Thank You and Stay Tune :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2284977e9c4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/lets-dive-into-data-preprocessing-e2284977e9c4">Let’s Dive Into Data Preprocessing</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Read This As Your Guide In Exploring Machine Learning]]></title>
            <link>https://medium.com/analytics-vidhya/read-this-as-your-guide-in-exploring-machine-learning-997cfd23a3ea?source=rss-9990c9edfba1------2</link>
            <guid isPermaLink="false">https://medium.com/p/997cfd23a3ea</guid>
            <category><![CDATA[steps-in-machine-learning]]></category>
            <category><![CDATA[hyperparameter]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Muhammad Rizki]]></dc:creator>
            <pubDate>Sat, 30 May 2020 09:26:38 GMT</pubDate>
            <atom:updated>2020-06-02T15:56:06.266Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*lVRCLkKoDrc0vl6hXn7CJw.jpeg" /><figcaption>The seven steps of making Machine Learning Project</figcaption></figure><p>In the <a href="https://medium.com/@murzkii/the-beginning-intro-to-machine-learning-66e041dc4934">previous chapter</a>, we know about what Machine Learning is. But, where do I should start to take my first journey in the Machine Learning project? What programming language do I should learn for that? For your information, the current Machine Learning project can be done using many programming languages, and one of the easiest is to use Python. Furthermore, I suggest you learn Python first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*9Q1rcr_peQdnGMwOYDBFhw.png" /><figcaption>Jupyter Notebook icon (left) Google Colab icon (right)</figcaption></figure><p>You can start to write your code in Jupyter Notebook that runs in your local computer environment or Google Colab that runs in Google Cloud environment. If you choose to write down your code in Jupyter Notebook, you can download it <a href="https://www.anaconda.com/products/individual">here</a> but if you choose to write down your code in Google Colab, then you should visit this <a href="https://colab.research.google.com/notebooks/">link</a>. The main difference between them is the GPU. While Jupyter Notebook uses your GPU to run the code, Google Colab gives you free GPU to use. Well, you can read <a href="https://medium.com/deep-learning-turkey/google-colab-free-gpu-tutorial-e113627b9f5d">this article</a> to know more about Google Colab.</p><p>Okay, back to the main topic. Here an explanation about the seven steps in Machine Learning.</p><ol><li><strong>Gathering Data</strong></li></ol><p>First thing first. You need to Understand the Business Problem you are facing. You have to consider what is the main goals of your problem, why do you should use Machine Learning as the problem solving and what benefits are obtained by using machine learning, etc. As an example, You were given the task as a Machine Learning engineer to make <strong><em>predictions automatically to determine oranges or apples</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*k4ezdSJKhYLtD3nSZoUY_w.jpeg" /><figcaption>The picture of orang (left) and apple (right)</figcaption></figure><p>Furthermore, you need to gather data like the based color of apple and orange, the size of apple and orange, etc. You can gather data using <a href="https://www.kaggle.com/">Kaggle</a>, databases, APIs, web scraper, online repositories, etc. Supported data formats in Machine Learning are CSV (Comma Separated Value), XLS, JSON (Javascript Object Notation), SQL (Standard Query Language), and SPSS (Statistical Package for the Social Science).</p><p><strong>2. Preparing Data</strong></p><p>The next step is Data Preparation. This step takes two important things to do, which are <strong>Data Cleaning</strong> and <strong>Data Transformation</strong>. Data cleaning is like <em>checking the missing values and inconsistency datatypes</em>, <em>also delete duplicate values</em>. If you got the missing values, it is better to fill it with the average value or the value that most often comes out of that column. On the other hand, Data Transformation is a <em>process of modifying the data</em> based on predefined rules like splitting the data into two different parts which are training and test. You can split them into 70% and 30% or 80% and 20% (up to how big dataset is).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ejz7xgkuSpuGWUk71pir0w.jpeg" /></figure><p><strong>3. Choosing a Model</strong></p><p>The third one is choosing a model. There are so many models that researchers and data scientists have created over the years. Some are very well suited for image data, others for sequences (like text, or music), some for numerical data, others for text-based data. Here are six of example models given:</p><p>· Artificial Neural Network</p><p>· Decision Trees</p><p>· Support Vector Machine</p><p>· Regression Analysis</p><p>· Bayesian Networks</p><p>· Genetic Algorithms</p><p>The model will work <strong><em>according to the type of learning</em></strong> made previously.</p><p><strong>4. Training Data</strong></p><p>Now we move onto what is often considered the bulk of machine learning — the <strong>training</strong>. In this step, we will use our data to incrementally improve our model’s ability to predict whether a given fruit is apple or orange.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*tBGo8Afncka0med4CY2GYg.png" /><figcaption>Slope intercept form</figcaption></figure><p>y=m*x+b, where x is the input, m is the slope of that line, b is the y-intercept, and y is the value of the line at the position x. The values we have available to us for adjusting, or “training”, are m and b. There is no other way to affect the position of the line since the only other variables are x, our input, and y, our output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*dx21N3IdpffwHH0xPGF1sA.png" /></figure><p>In machine learning, there are many m’s since there may be many features. The collection of these m values is usually formed into a matrix, that we will denote W, for the “weights” matrix. Similarly, for b, we arrange them together and call that the biases.</p><p>The training process involves initializing some random values for W and b and attempting to predict the output with those values. As you might imagine, it does pretty poorly. But we can compare our model’s predictions with the output that it should produce, and adjust the values in W and b such that we will have more correct predictions.</p><p>This process then repeats. Each iteration or cycle of updating the weights and biases is called one training “step”.</p><p><strong>5. Evaluation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/0*SfIzM7cYLNt2hUEH.png" /><figcaption>Scoring system in Evaluation step (<a href="https://miro.medium.com/max/713/1*Dz55Mr_38UdWbtPcTPCyZg.png">https://miro.medium.com/max/713/1*Dz55Mr_38UdWbtPcTPCyZg.png</a>)</figcaption></figure><p>After training process completed, it’s time to see the result using <strong>Evaluation</strong>. This is where that dataset that we set aside earlier comes into play. Evaluation allows us to test our model against data that has never been used for training. This metric allows us to see how the model might perform against data that it has not yet seen. This is meant to be representative of how the model might perform in the real world.</p><p><strong>6. Parameter Tuning</strong></p><p>Its okay if you satisfy with your latest result, but if you may want improve your training in any way, youcan do this by <strong><em>tuning our parameters</em></strong>. There were a few parameters we implicitly assumed when we did our training, and now is a good time to go back and test those assumptions and try other values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CrB7E2gMvcqcsM0k.png" /><figcaption>Parameter tuning (<a href="https://blog.floydhub.com/content/images/2018/08/Screen-Shot-2018-08-22-at-18.32.53.png">https://blog.floydhub.com/content/images/2018/08/Screen-Shot-2018-08-22-at-18.32.53.png</a>)</figcaption></figure><p>One example is <strong><em>how many times we run through the training dataset during training</em></strong>. What I mean by that is we can “show” the model our full dataset multiple times, rather than just once. This can sometimes lead to higher accuracies.</p><p>Another parameter is the “<strong><em>learning rate</em></strong>”. This defines how far we shift the line during each step, based on the information from the previous training step. These values all play a role in how accurate our model can become, and how long the training takes.</p><p>For more complex models, <strong><em>initial conditions can play a significant role in determining the outcome of training</em></strong>. Differences can be seen depending on whether a model starts off training with values initialized to zeroes versus some distribution of values, which leads to the question of which distribution to use.</p><p>As you can see there are many considerations at this phase of training, and it’s important that you define what makes a model “good enough”, otherwise you might find yourself tweaking parameters for a very long time.</p><p>These parameters are typically referred to as “<strong><em>hyperparameters</em></strong>”. The adjustment, or tuning, of these hyperparameters, remains a bit of an art and is more of an experimental process that heavily depends on the specifics of your dataset, model, and training process.</p><p><strong>7. Prediction</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qSJm1sDsTYCNB8SP" /><figcaption>Result in Prediction step (<a href="https://lh3.googleusercontent.com/tRhHQTKzNfr-eg1sSdaIxTbU7jTzmKamvAZbK393ftcBjP5Kpqevqv5D3JbIPdcIzyrScUQ09jk90LCO8svgRBuj9j-ytJexXMf7l9oPNbY3-SJbmUW_DuXBMQfio5sYn6KJzeJSuQ=w2400">https://lh3.googleusercontent.com/tRhHQTKzNfr-eg1sSdaIxTbU7jTzmKamvAZbK393ftcBjP5Kpqevqv5D3JbIPdcIzyrScUQ09jk90LCO8svgRBuj9j-ytJexXMf7l9oPNbY3-SJbmUW_DuXBMQfio5sYn6KJzeJSuQ=w2400</a>)</figcaption></figure><p>Machine learning is <a href="https://medium.com/towards-data-science/what-is-machine-learning-8c6871016736">using data to answer questions</a>. So <strong>Prediction</strong>, or inference, is the step where we get to answer some questions. This is the point of all this work, where the value of machine learning is realized.</p><p>Thats it for this part. Do you have any advice for me? Please, leave your comment below so I can read and notice. In the next chapter, we will discover more about Pandas and Preprocessing Data.</p><p>Thanks to all of you and have a good day :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=997cfd23a3ea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/read-this-as-your-guide-in-exploring-machine-learning-997cfd23a3ea">Read This As Your Guide In Exploring Machine Learning</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Beginning. Intro To Machine Learning]]></title>
            <link>https://medium.com/analytics-vidhya/the-beginning-intro-to-machine-learning-66e041dc4934?source=rss-9990c9edfba1------2</link>
            <guid isPermaLink="false">https://medium.com/p/66e041dc4934</guid>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <dc:creator><![CDATA[Muhammad Rizki]]></dc:creator>
            <pubDate>Wed, 27 May 2020 08:02:01 GMT</pubDate>
            <atom:updated>2020-06-06T17:02:31.589Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*05bxWhx3b3kpFy8tZONIug.jpeg" /><figcaption>Sub-Science of Artificial Intelligence</figcaption></figure><p>With the development of technology nowadays, we know about how important data is. We know about everything could be controlled by the internet and anything like that. But have you ever heard about what Artificial Intelligence is? Have you? Good! Now, could you describe what is that? As the picture showed above, we knew that Artificial Intelligence has seven sub-science where one of them is ‘Machine Learning’. Well what is that?</p><blockquote>Machine Learning, hereinafter known as ‘ML’ is a field that gives computers the ability to learn without being explicitly programmed. Machine Learning uses the statistician method to make the Computer could learn and recognize the pattern of data</blockquote><p>So what? Is there a significant benefit with Machine Learning? Well, it does! It has many benefits which may sometimes we don’t realize. One of them is Spam Filtering in Email. This feature work after we mark on some email as spam. Then, the computer will learn about its habit and will anticipate the email that came after. If the computer knows that some email contains spam, it will move the email to the ‘Spam’ category.</p><p>The implementation of Machine Learning has been raising nowadays, like the video recommendation from Youtube or Google Assistant. Nevertheless, how does Machine Learning works? In the picture below, the question will be answered as the flow chart is shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GYTkmzs_i85vC_1zG54mAQ.png" /><figcaption>The flow chart of Machine Learning</figcaption></figure><p>In general, Machine Learning is divided into four categories based on its Learning Methods, which are:</p><ol><li>Supervised Learning</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xMuHjcImRuUWFfstgF3kSw.jpeg" /><figcaption>Algorithm of supervised learning</figcaption></figure><p>In supervised learning, the dataset used as a label. A label is a tag or identifier of data. For example the fruit has a green attribute, weighs more than 500 grams, the skin is hard, thorny, has a pungent odor, and the flesh is sweet. Fruits having characteristics as agreed upon are recognized as durian, so the label of the attribute is durian. Spam email classifications above are an example of supervised learning.</p><p>2. Unsupervised Learning</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*0SkUsGp9ntltiYg4KJuPVQ.png" /><figcaption>Algorithm of unsupervised learning</figcaption></figure><p>In unsupervised learning, the dataset used does not have a label. The unsupervised model does self-study to label or group data. An example of an unsupervised case is from the data of 100 visitors to a website, the model will learn by itself to classify visitors. Maybe based on visit time, length of visit, number of clicks, and so on. Furthermore, the computer will do the clustering method from this knowledge.</p><p>3. Semi-Supervised Learning</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QXxOF6YiLJWQRISCOvrrQA.png" /><figcaption>Algorithm of Semi-supervised learning</figcaption></figure><p>Semi-Supervised is a combination of supervised learning and unsupervised learning. In the semi-supervised model, the dataset for training has partly labeled and partly not. The implementation of the semi-supervised model that we often use for example on Google Photos. On Google Photos we can tag everyone in a photo. As a result, when we upload a new photo with the face of the person we have tagged before, Google Photos will automatically recognize the person. One example of a semi-supervised model is the Deep Belief Network (DBN). (We talk about it later 😊).</p><p>Well, what is the differences about 3 algorithms above? The picture show below will be answer your question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*1qowiwOmQ-PmL9LrZD6F9Q.png" /></figure><p>4. Reinforcement Learning</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*NtAQk9Z5H9ACwfgQHEdkXg.png" /></figure><p>Reinforcement Learning is a model that learns to use reward and penalties systems. The learning model is to continue to get rewards and avoid penalties. Alpha Go is a famous example of reinforcement learning. Alpha Go is a program developed by Google DeepMind to play the game Go, a board game originating from China. Alpha Go learns every step in millions of go games to continue to get rewards that are to win a game. Alpha Go became famous after becoming the first computer program to successfully defeat a professional player.</p><p>Thats it for this part. Do you have any advice for me? Please, leave your comment below so I can read and notice :)</p><p>Thanks to all of you and have a good day :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66e041dc4934" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/the-beginning-intro-to-machine-learning-66e041dc4934">The Beginning. Intro To Machine Learning</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Di-mulai]]></title>
            <link>https://medium.com/@murzkii/di-mulai-f15cd60d467e?source=rss-9990c9edfba1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f15cd60d467e</guid>
            <dc:creator><![CDATA[Muhammad Rizki]]></dc:creator>
            <pubDate>Mon, 24 Feb 2020 08:19:46 GMT</pubDate>
            <atom:updated>2020-05-18T02:04:35.710Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VaB7uWo6PDW7i6_Y6T0Q-A.jpeg" /></figure><p>Hallo sobat Medium! Salam sejahtera untuk teman — teman yang sedang membaca artikel ini. Senang rasanya bisa membagikan kisah saya ini sebagai bahan pembelajaran dan motivasi untuk para pembaca di luar sana. Perkenalkan, saya Muhammad Rizki. Pria kelahiran Jakarta, 1 November 1997 yang bercita — cita menjadi seorang <em>Android</em> <em>Developer</em> handal yang bisa membuat aplikasi hebat untuk dipakai oleh semua orang. Artikel ini akan dimulai dari perkenalan singkat dan latar belakang kehidupan saya sampai akhirnya berujung kepada <em>roadmap</em> bagaimana saya mencapai cita — cita saya tersebut.</p><p>Saya dibesarkan di Jakarta oleh orang tua saya serta diberikan pendidikan formal sejak TK pada tahun 2002 sampai SMA pada tahun 2015. Dua belas tahun masa pendidikan formal saya tempuh di Jakarta dan alhamdulillah semua masa — masa indah tersebut bisa berakhir dengan manis. Sejak saya SMP, saya bercita — cita menjadi seorang Insinyur Sipil. Oleh karena itu, setelah lulus SMA, saya mendaftarkan diri pada berbagai jalur seleksi masuk PTN dengan jurusan tersebut. Namun keberuntungan saya berakhir di penghujung tahun 2015 karena saya tidak kunjung mendapatkan kabar baik dari PTN yang saya ikuti seleksinya. Tidak mau bersedih hati, saya ambil kesempatan <em>Gap</em> <em>Year</em> tersebut untuk melakukan sesuatu yang berguna, yaitu menjadi seorang pengajar. Alhamdulillah, saya diterima menjadi salah satu tentor Matematika di lembaga pendidikan Kumon selama satu tahun. Sepanjang tahun tersebut pun saya isi pula dengan belajar dan berlatih agar bisa lolos pada seleksi masuk PTN di tahun 2016. Tak lupa saya panjatkan doa kepada Allah SWT dan meminta restu kepada orang tua agar diimudahkan proses seleksinya. Memasuki bulan Maret 2016, saya berpindah haluan menjadi seorang <em>Programmer</em> karena menemukan <em>passion</em> baru di dalamnya. Singkat cerita, saya lolos SBMPTN di Universitas Diponegoro dengan jurusan Teknik Komputer. Alhamdulillah, puji syukur kepada Allah SWT.</p><p>Petulangan dalam dunia perkuliahan pun dimulai sejak Agustus 2019. Menjadi seorang mahasiswa baru di lembah Fakultas Teknik tidaklah mudah, ada berbagai macam proses pendewasaan serta kaderisasi yang harus diikuti dengan dalih membuat angkatan menjadi solid dan saling membantu satu sama lain. Pada masa itu, perkuliahan juga sangat sulit karena saya yang terlambat beradaptasi dari pelajaran SMA yang hanya mengenal Matematika, Kimia, Fisika dan Biologi menjadi harus mengenal mata kuliah Dasar Pemrograman, Algoritma Pemrograman, Sistem Operasi, Sistem Basis Data, Sistem Digital, Jaringan Komputer dan lain hal sebagainya. Namun alhamdulillah, berkat bantuan teman — teman angkatan dan semangat saya yang pantang menyerah, saya mampu menaklukan semua nya. Saya pun tertarik untuk mengikuti organisasi sebagai bekal <em>Soft</em> <em>Skill</em> saya di masa depan nanti. Pada penghujung tahun 2016, saya diterima menjadi Staff anggota di dua organisasi, yaitu Himpunan Mahasiswa dan BEM FT. Kedua amanah tersebut saya jalani dengan ikhlas dan penuh tanggung jawab sampai penghujung tahun 2017.</p><p>Memasuki awal tahun 2018, saya mendapatkan amanah yang lebih besar lagi, yaitu menjadi Wakil Ketua Himpunan Mahasiswa dan merasakan bagaimana manis dan pahit nya menjalani sebuah organisasi mahasiswa. Sejalan dengan masa jabatan tersebut, saya mencoba mengenali dan mengasah <em>Hard</em> <em>Skill</em> apa yang cocok untuk diri saya. Saya mengasah skill <em>Programming</em> saya dalam <em>Web</em> <em>Development</em> dengan <em>Laravel</em> dan <em>Js</em>, <em>Robotic</em> <em>Programming</em> dengan <em>Arduino</em>, <em>Android</em> <em>Programming</em> dengan <em>Java</em> dan <em>Kotlin</em> sampai akhirnya pilihan saya jatuh kepada <em>Android</em> <em>Programming</em>. Pada awal 2019, saya menjalani masa Kerja Praktik bersama 3 rekan saya di BATAN, Tangerang Selatan dengan <em>project</em> membuat suatu sistem informasi perangkat jaringan yang berada di seluruh BATAN yang dapat dimonitoring dengan menggunakan <em>smartphone</em> <em>Android</em>. <em>Project</em> tersebut dapat diselesaikan selama satu bulan, sejak Januari hingga Februari 2019. Alhamdulillah.</p><p>Kejutan demi kejutan terus berlanjut, pada bulan Maret 2019, saya mendapatkan beasiswa Bakti BCA untuk periode 2019–2020. Beasiswa tersebut saya gunakan untuk keperluan akademis saya. Memasuki bulan April 2019, saya mengikuti lomba <em>Android</em> <em>Programming</em> bersama 3 rekan saya. Aplikasi yang dibuat adalah aplikasi yang bertemakan pendidikan, yaitu mempertemukan seorang murid dan guru untuk bisa belajar privat sesuai yang diinginkan murid. Berkat aplikasi tersebut, kami berhasil mendapatkan posisi 5 besar se-Indonesia. Menuju akhir tahun 2019, saya mengikuti KKL dan KKN yang diwajibkan untuk menjadi syarat kelulusan. Dimulai dari bulan Januari 2020, saya mulai membuat Tugas Akhir dan Skripsi untuk menyelesaikan masa studi saya di Undip. Tugas Akhir yang saya buat merupakan sebuah pengaplikasian <em>Deep</em> <em>Learning</em> dalam bidang Prediksi Harga Saham perusahaan PT Adaro Energy Tbk. Tugas tersebut dibuat dengan bahasa pemrograman <em>Python</em> dan selesai dibuat pada pertengahan Februari 2020. Dengan meraih IPK selama 7 Semester sebesar 3.70, saya menunggu jadwal sidang skripsi yang insya Allah akan diselenggarakan pada bulan Maret 2020. Seiring dengan masa penantian sidang, saya menyibukkan diri dengan mempelajari bahasa pemrograman baru, yaitu <em>Go</em> <em>Language</em> (Golang). Bahasa pemrograman tersebut mulai saya dalami sejak Februari 2020 hingga sekarang. Dengan bermodal Bismillah, niat yang kuat dan semangat yang pantang meyerah, saya yakin akan menguasai bahasa pemrograman tersebut dalam beberapa waktu ke depan ini. Insya Allah.</p><p>Beberapa <em>point</em> yang saya rencanakan setelah saya bekerja dan memiliki penghasilan tetap salah satunya adalah mendirikan sebuah <em>startup</em> berbasis Teknologi. Penghasilan dari <em>startup</em> tersebut insya Allah akan saya hibahkan beberapa persen untuk membantu memajukan kualitas pendidikan khususnya dalam bidang IT di Indonesia.</p><p>Sampai berjumpa di story berikutnya. Ciao!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f15cd60d467e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>