<?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 Achyar on Medium]]></title>
        <description><![CDATA[Stories by Achyar on Medium]]></description>
        <link>https://medium.com/@achyarua?source=rss-e8a7e6d2cbcd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*51nEQNpXomN44COD.jpg</url>
            <title>Stories by Achyar on Medium</title>
            <link>https://medium.com/@achyarua?source=rss-e8a7e6d2cbcd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:21:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@achyarua/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[The Visual Guide to Mastering Machine Learning Hyperparameters]]></title>
            <link>https://medium.com/@achyarua/the-visual-guide-to-mastering-machine-learning-hyperparameters-308482e0b87c?source=rss-e8a7e6d2cbcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/308482e0b87c</guid>
            <category><![CDATA[hyperparameter-tuning]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Achyar]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 08:58:41 GMT</pubDate>
            <atom:updated>2026-07-10T08:58:41.484Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why more neurons or deeper trees can quietly make a model worse, and how to feel the effect of every knob before you write a line of code.</em></p><p>Every time I teach machine learning, I hit the same wall. A participant can recite that <strong>a neural network “adjusts its weights”</strong> or that <strong>regularization “prevents overfitting.”</strong> They have read the sentence and can pass a quiz on it. But ask them what actually happens when you double the hidden units, or make every tree in a boosted ensemble deeper, and the answer goes vague. The words are there. The intuition is not.</p><blockquote><em>How do you build intuition for something a learner only ever sees as a number scrolling past in a training log?</em></blockquote><p>That question is why I built <strong>AI/ML Playbook</strong>, a small interactive playground where you pick an algorithm, shape the data, tune the hyperparameters, and watch the model learn step by step. Every algorithm is written from scratch in plain JavaScript, no ML library involved, so the math is visible instead of hidden behind an import. You can open it here: <a href="https://achyar-cn.github.io/AI-ML-Playbook/"><strong>AI/ML Playbook live demo</strong></a>.</p><p>The detail that makes it click, <strong>every run splits into a training set and a test set, tracked separately.</strong> That is what turns overfitting from a definition into something you watch happen, as the training metric keeps improving while the test metric quietly turns and walks away.</p><p>Here are two cases I keep coming back to, <strong>classification</strong> with a <strong>neural network</strong>, and <strong>regression</strong> with <strong>XGBoost</strong>. Different families, same underlying lesson.</p><h3>Case 1: A Neural Network Learning a XOR</h3><p>Pick the Neural Network and the <strong>XOR </strong>dataset, one class inside a ring of the other. No straight line can separate it, which is the point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*MiTnzTcHa8WX_SRpLrI-dw.gif" /><figcaption>Hyperparameter Tuning Simulation - Neural Network</figcaption></figure><p>Set <strong>hidden units to 1</strong> and run. The boundary is basically a straight cut, and both training and test accuracy stall. This is <strong>underfitting,</strong> not enough capacity for the shape, and no number of epochs will fix it. Raise <strong>hidden units to 6</strong> and the boundary curves around the ring, with both accuracies climbing together. That is the sweet spot.</p><p>Now push <strong>hidden units to 24</strong> with <strong>L2 at 0</strong> and let it run. The two numbers diverge, training accuracy creeps toward perfect while <strong>test accuracy peaks and falls</strong>, and the boundary goes wavy chasing individual noisy points. That gap is <strong>overfitting</strong>, live. Then nudge <strong>L2</strong> up and the boundary smooths back out and test accuracy recovers. The phrase “L2 penalizes large weights” becomes something you can see.</p><p>The same screen also shows <strong>Precision, Recall, and F1</strong> with a live <strong>confusion matrix</strong>, each split Train and Test. And the other knobs reward a few minutes of play, a learning rate too high makes the loss diverge, too low makes it crawl, and switching Tanh, ReLU, or Sigmoid on the same data reshapes both the boundary and the convergence speed.</p><h3>Case 2: XGBoost Fitting a Sine Wave</h3><p>Switch to <strong>XGBoost Reg.</strong> on the <strong>sine</strong> dataset. Because XGBoost is an ensemble of trees, its prediction is not a smooth curve but a <strong>staircase</strong> of flat steps that together approximate the wave. The metric to watch is <strong>RMSE</strong> on the test set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*o0Kk5XNjxyG6pykNKc3Rjw.gif" /><figcaption>Hyperparameter Tuning Simulation — XGBoost</figcaption></figure><p>Start starved, <strong>Max Depth 1</strong> and only a few <strong>Boosting Rounds</strong> gives a crude staircase nowhere near the sine, with high, stubborn test RMSE. This is <strong>high bias</strong>. Back at the defaults, <strong>Max Depth 3</strong> and <strong>20 rounds</strong>, the steps trace the wave and test RMSE drops. Now push <strong>Max Depth to 8</strong> with many rounds and both regularizers at zero: the deep trees carve out single points, the staircase turns jagged, training RMSE looks great and <strong>test RMSE climbs</strong>. Same overfitting, told in steps instead of curves.</p><p>Two levers pull it back. Raise <strong>L2 Leaf Reg (lambda)</strong> and the value in each leaf shrinks toward zero, flattening the steps. Raise <strong>Min Gain (gamma)</strong> and XGBoost refuses splits that do not earn their keep, so the noise-chasing splits never happen: regularization by pruning rather than shrinking. The regression panel also tracks <strong>MAE, RMSE, MAPE, and NMAE</strong>, Train and Test, and the gap between MAE and RMSE is about to matter.</p><h3>The Lesson Both Cases Share</h3><p>The two stories rhyme. In the network, the <strong>hidden units</strong> decided how flexible the model could be, and <strong>L2</strong> was the brake. In XGBoost, <strong>tree depth and the number of rounds</strong> set that flexibility, and <strong>lambda and gamma</strong> were the brakes. Different sliders, same two forces. That flexibility has a proper name, <strong>model capacity</strong>, but the idea behind it is simpler than the term.</p><blockquote><em>The more flexible you let a model be, the more real structure it can capture, and the more noise it can chase by mistake. </em><strong><em>Regularization</em></strong><em> is the brake that holds it back.</em></blockquote><p>Once someone has watched a train and test gap open and close by moving one slider, they stop asking “what is overfitting?” and start asking “where is the sweet spot <em>for this data</em>?” And that phrase, for this data, is the half the model knobs never tell you about.</p><h3>The Data Decides as Much as the Model</h3><p>The playground ships with quick data presets, <strong>Separable, Noisy, and Outliers</strong>, plus a <strong>shape picker</strong> underneath. The shapes climb in difficulty, <strong>Linear</strong> is trivial, <strong>XOR</strong> breaks any linear model and motivates the hidden layer, and <strong>Moons, Circle, Spiral, and Grid</strong> each demand more flexibility than the last. My favorite experiment, take a network that comfortably overfits a Circle, point it unchanged at a Spiral, and watch it underfit. The flexibility a model needs is not fixed, it depends on the shape of the problem.</p><p>The presets carry the rest. Separable is the baseline where everything works. Noisy overlaps the classes so no model reaches a perfect score, and chasing that last percent is how you overfit. Outliers drops a few points on the wrong side, exactly where a too-flexible model wastes its effort bending around samples it should ignore. And when the built-in scenarios are not enough, the <strong>CSV tab lets you upload your own data</strong>, so learners can run the same tuning story on a dataset they actually care about.</p><p>Messy data is also why each case shows several metrics, not one. In classification, Noisy or Outliers can keep accuracy high while the model quietly fails the hard class, which is what Precision, Recall, F1, and the confusion matrix are for. In regression, MAE and RMSE agree until you load Outliers, then RMSE spikes while MAE stays calm, because RMSE squares its errors and a few big misses dominate. Seeing those two numbers separate on one run is the clearest “RMSE is sensitive to outliers” I have ever managed to give.</p><h3>Try It, and Use It</h3><p>The tool is free, open source, and runs entirely in the browser, so there is nothing to install for your learners.</p><ul><li><strong>Play with it:</strong> <a href="https://achyar-cn.github.io/AI-ML-Playbook/">AI/ML Playbook live demo</a></li><li><strong>Read the code or fork it:</strong> <a href="https://github.com/Achyar-CN/AI-ML-Playbook">github.com/Achyar-CN/AI-ML-Playbook</a></li></ul><p>If you teach, resist explaining first. Put the tool on screen, set one bad hyperparameter on purpose, and ask the room to predict what will happen before you hit Run. That prediction, followed instantly by watching the boundary or the staircase prove them right or wrong, is where the intuition sticks. I built this mostly for the teams I train, but it turned out just as useful for my own tinkering. If you spot a rough edge or want another model added, the repo is open.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=308482e0b87c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generative AI Coding for Data Analytics]]></title>
            <link>https://medium.com/@achyarua/generative-ai-coding-for-data-analytics-484dd4462a90?source=rss-e8a7e6d2cbcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/484dd4462a90</guid>
            <category><![CDATA[code-generation]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[github-copilot]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Achyar]]></dc:creator>
            <pubDate>Thu, 30 Nov 2023 03:02:02 GMT</pubDate>
            <atom:updated>2023-11-30T03:02:02.714Z</atom:updated>
            <content:encoded><![CDATA[<p>Data analytics is closely related to coding, as it dictates how we visualize and analyze data. One common <strong>pain point is the repetitive coding and debugging process</strong>, which can often be time-consuming.</p><p>With emerging technology especially in generative AI, it is possible to harness such AI to help our team to eliminate this pain point. <strong>Generative AI Coding able to generate snippet code based on our requirement with ease in real-time.</strong></p><p>There are several potential tools for code generation, such as Github Copilot, Replit, Tabnine, etc. In this article, the<strong> focus will be on Github Copilot</strong>, as it uses OpenAI’s newest technology, includes a core repository, and guarantees code privacy.</p><p>There are some <strong>benefits offer by Github Copilot</strong>, such as:</p><ol><li>Assist in complete coding task faster</li><li>Enhance code quality and readability</li><li>Tackling repetitive task and debugging process</li><li>Provide Learning resource and more creative works.</li></ol><p><strong>How it works?</strong></p><p>Github Copilot leverage OpenAI Codex Model as it core brain. The model has been train and learn from various public code and text on the internet. Further, Github Copilot provide service by integrated to code editor such as visual studio code. It provide code suggesstion as well as improve the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*-y89QwAmF4CQf7Ft8aGKPA.png" /><figcaption>Ilustration on How Github Copilot works</figcaption></figure><p>Here are some example on how Github Copilot help in providing code suggestion and chat assist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E3MWtcBEbzlhpvLIy8wsmw.png" /><figcaption>Github Copilot Implementation Example</figcaption></figure><p><strong>How much the Impact?</strong></p><p>Based on survey research conducted by GitHub Copilot team towards 95 professional developers, it shows that The group that used GitHub Copilot had a higher rate of completing the task and developers who used GitHub Copilot completed the task significantly faster–55% faster than the developers who didn’t use GitHub Copilot (GitHub, 2022).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KayKZU0YqyIBGPOe" /></figure><p><strong>Personal Thought Based on User Experience</strong></p><p>(+) Strong Points</p><ol><li>Assist in complete coding task faster, integrated to IDE</li><li>Enhance code quality and readability</li><li>Tackling repetitive task and debugging process</li><li>Context-aware of other files within directory</li><li>Use powerful Open AI codex engine (same as ChatGPT)</li></ol><p>(-) Areas for Improvement</p><ol><li>User interface could be improved to generate the code in more seamless</li><li>It takes longer time to generate code compared to ChatGPT</li><li>It has less code explanation compared to ChatGPT</li><li>Challenging to do collaboration as the license is per user based</li></ol><blockquote><strong>In summary, AI code generation such as Github Copilot would very beneficial to help coding task. It is very helpful to help data analytics team in doing repetitive coding and debugging process. Further, data analytics team would laverage the time saved to focus more on data analysis insight to generate more value for Business.</strong></blockquote><p>References:</p><p>[1] <a href="https://arxiv.org/pdf/2302.06590.pdf">The Impact of AI on Developer Productivity: Evidence from GitHub Copilot</a></p><p>[2] <a href="https://github.blog/2022-09-07-research-quantifying-github-copilots-impact-on-developer-productivity-and-happiness/">https://github.blog/2022-09-07-research-quantifying-github-copilots-impact-on-developer-productivity-and-happiness/</a></p><p>[3] <a href="https://medium.com/analytics-vidhya/github-copilot-all-you-need-to-know-8e6fc1d5ccc">https://medium.com/analytics-vidhya/github-copilot-all-you-need-to-know-8e6fc1d5ccc</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=484dd4462a90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interpretable AI for Credit Scoring]]></title>
            <link>https://medium.com/@achyarua/interpretable-ai-for-credit-scoring-46a843e0e02a?source=rss-e8a7e6d2cbcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/46a843e0e02a</guid>
            <category><![CDATA[interpretability]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[credit-score]]></category>
            <dc:creator><![CDATA[Achyar]]></dc:creator>
            <pubDate>Thu, 30 Nov 2023 02:18:29 GMT</pubDate>
            <atom:updated>2023-11-30T09:46:49.855Z</atom:updated>
            <content:encoded><![CDATA[<p>How to get better accuracy &amp; keep interpretability of an AI Credit Scoring?</p><p><strong>Indonesia’s financial inclusion</strong> has increased to 85.10% by 2020. However, this figure is still <strong>relatively low compared to neighboring</strong> countries such as Singapore (98%), Thailand (96%), and Malaysia (88%). There is a need to accelerate the expansion of financial inclusion in Indonesia (OJK, 2022).</p><p>One of the causes is that <strong>financial institutions prefer to approach bankable segment customers</strong>. Unbankable segment customers are more difficult to assess for their credit power. Hence, there is a need for a better scoring model that can accommodate various variables and consider more complex patterns.</p><blockquote><strong>How might we accurately determine customer’s creditworthiness </strong>to avoid approving unsuitable customers while also ensuring approval for eligible customers?</blockquote><p>Credit scoring commonly relies on<strong> Logistic Regression and the Score Card</strong> method due to their balance between accuracy and interpretability. <strong>However</strong>, these methods <strong>have limitations in capturing complex patterns</strong> and variable interactions, leading to <strong>lower accuracy</strong>. The consequences of lower accuracy can be detrimental to businesses, resulting in issues such as a higher number of defaulting customers or lost potential customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFVkrwijWCjR0alQYVs_Vg.png" /><figcaption>Comparison of Common Method &amp; Alternative Method</figcaption></figure><p>There are <strong>several advanced algorithms </strong>that can be used in Credit Scoring such as Decision Tree, Random Forest, Support Vector Machine, Gradient Boosting and Deep Learning. These algorithms might offer better accuracy as it <strong>can grab non-linear data pattern </strong>and consider <strong>complex variables interactions</strong>.</p><p>Based on top 150 articles from ScienceDirect between 2016-June 2021, sorted by relevance related to machine learning and credit done by Markov et al. to know latest trend method in credit scoring (Markov et.al., 2022). The trend show <strong>that Logistic Regression mostly used as baseline </strong>and <strong>Machine Learning with boosting and bagging offer better performance. </strong>Further</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hEYCSOGRyjX4ctJ5j1qZ-g.png" /><figcaption>Credit Score Model Compariosn (Markov et. al., 2022)</figcaption></figure><p>Based on several recent research paper related to credit scoring, it has been shown that advanced algorithms <strong>perform better </strong>than Logistic Regression (Score Card). In some cases, advanced algorithm would have <strong>accuracy twice higher </strong>than Score Card (Zhao et al., 2022). Below are listed accuracy comparison between logistic and advanced algorithm across publication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KQJGodfy_Bm4UmmmhWYWmA.png" /></figure><p>Advance algorithms have ability to capture <strong>complex</strong> <strong>relationship</strong> and <strong>variables</strong> <strong>interactions</strong>, which lead to <strong>higher accuracy</strong>. However, it has one main downside which is quite <strong>challenging</strong> to <strong>interprate</strong> how the model works in deciding the prediction result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*D83W-zidNgA4O1rMauQZow.png" /><figcaption>Pros &amp; Cons of Logistic Regression VS Advanced Algorithm</figcaption></figure><blockquote>How to keep interpretability in Advanced Model? The answer is SHAP.</blockquote><p><strong>SHAP</strong> (SHapley Additive exPlanations) is a game theoretic <strong>approach to explain</strong> the output of <strong>any machine learning model</strong>. It connects optimal credit allocation with local explanations using the classic Shapley values from game theory and their related extensions. Shape enable to interpret any machine learning model in linear form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rh-kynwhAvUkBwKsjKkUJw.png" /><figcaption>Ilustration on How SHAP works</figcaption></figure><p>SHAP has the potential to answer some challenges, <strong>ease</strong> the challenge of <strong>interpreting</strong>; facilitate <strong>managers</strong>’ <strong>understanding</strong> models, help to <strong>justify</strong> <strong>results</strong> to <strong>supervisory</strong> <strong>authorities</strong>. In addition, <strong>local explanations </strong>enable justifications for individual predictions, which is a <strong>regulatory requirement</strong> imposed by <strong>GDPR</strong> (de Lange et al, 2022).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*Ekz1Tn-SQjunALOQnWtEoA.png" /><figcaption>SHAP in action interpreting Credit Scoring Model</figcaption></figure><p>de Lange et al <strong>combined a LightGBM model with SHAP </strong>for predicting credit default on a Norwegian bank. The LightGBM model clearly <strong>outperforms the bank’s actual credit scoring model </strong>(Logistic Regression), and then <strong>interpret</strong> the results using <strong>local explanations provided by SHAP</strong>.</p><p>In summary, advanced algorithms would offer higher accuracy than the old model. However, to maintain interpretability, we need tools like SHAP. The combination of both would provide high accuracy and interpretability. Hopefully, it could contribute to increasing financial inclusion in our lovely country, Indonesia.</p><p>Reference:</p><p>[1] Anton Markov, Zinaida Seleznyova, Victor Lapshin (2022). Latest trends and points to consider, The Journal of Finance and Data Science, 10(1), 38–53. doi:https://doi.org/10.1108/15265940910924481</p><p>[2] Abdou, H. A. (2009). An evaluation of alternative scoring models in private banking. The Journal of Risk Finance, 10(1), 38–53. doi:https://doi.org/10.1108/15265940910924481</p><p>[3] de Lange, P. E., Melsom, B., Vennerød, C. B., &amp; Westgaard, S. (2022). Explainable AI for Credit Assessment in Banks. Journal of Risk and Financial Management 15: 556. <a href="https://doi.org/10.3390/jrfm15120556">https://doi.org/10.3390/jrfm15120556</a></p><p>[4] Hjelkrem, L. O., &amp; de Lange, P. E. (2023). Explaining deep learning models for credit scoring with SHAP: A case study using open banking data. Journal of Risk and Financial Management, 16(4), 221. doi:https://doi.org/10.3390/jrfm16040221</p><p>[5] Kim, L. T., Le, H. A., Nguyen, T. H., &amp; Nguyen, D. T. (2022). Explainable machine learning for financial distress prediction: Evidence from vietnam. Data, 7(11), 160. doi:https://doi.org/10.3390/data7110160</p><p>[6] Le, T.-T.-H.; Prihatno, A.T.; Oktian, Y.E.; Kang, H.; Kim, H. (2023 ). Exploring Local Explanation of Practical Industrial AI Applications: A Systematic Literature Review. Appl. Sci. 13, 5809. <a href="https://doi.org/10.3390/app13095809">https://doi.org/10.3390/app13095809</a></p><p>[7] Munkhdalai, L., Munkhdalai, T., Namsrai, O., Jong, Y. L., &amp; Ryu, K. H. (2019). An empirical comparison of machine-learning methods on bank client credit assessments. Sustainability, 11(3), 699. doi:https://doi.org/10.3390/su11030699</p><p>[8] Xia, Y., Liao, Z., Xu, J., &amp; Li, Y. (2022). From credit scoring to regulatory scoring: Comparing credit scoring models from a regulatory perspective. Technological and Economic Development of Economy, 28(6), 1954–1990. doi:https://doi.org/10.3846/tede.2022.17045</p><p>[9] Zhao, L.; Yang, S.; Wang, S.; Shen, J. (2022). Research on PPP Enterprise Credit Dynamic Prediction Model. Appl. Sci.12, 10362. <a href="https://doi.org/10.3390/app122010362">https://doi.org/10.3390/app122010362</a></p><p>[10] <a href="https://money.kompas.com/read/2023/08/26/084510526/memperluas-inklusi-keuangan-dengan-innovative-credit-scoring?page=all">https://money.kompas.com/read/2023/08/26/084510526/memperluas-inklusi-keuangan-dengan-innovative-credit-scoring?page=all</a></p><p>[11] https://dailysocial.id/post/menggodok-data-membangun-credit-scoring</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46a843e0e02a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning Concept & It’s Application in HR]]></title>
            <link>https://medium.com/@achyarua/machine-learning-concept-its-application-in-hr-11167e8c540a?source=rss-e8a7e6d2cbcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/11167e8c540a</guid>
            <category><![CDATA[data-minig]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificalintelligence]]></category>
            <category><![CDATA[human-resources]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Achyar]]></dc:creator>
            <pubDate>Fri, 03 Jul 2020 00:13:39 GMT</pubDate>
            <atom:updated>2020-07-03T01:52:23.868Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uUMXfycmjXB31xt6oO_ShQ.jpeg" /></figure><h4>Why Machine Learning?</h4><p>On daily basis, we commonly face any situation that requires us to take the decision. To get the better decision we usually look back to our experience, prior knowledge, or asking someone else opinion. How if we face the situation that forces us to decide a <strong>problem that has a thousand options, a lot of factors need to be considered in a short amount of time with the least bias.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*jKfXou5BjvyhwCPpBUakAg.jpeg" /></figure><p>To help us solve that problem we need a tool that can make sense a huge amount of data, learning patterns within the data, create a relevant rule so it can be used to understand new data and also can be automated and run efficiently. The machine can be a useful tool for this case, but this machine should have an additional ability which is able to learn by itself from data without explicit programs.</p><h4>What is Machine Learning?</h4><p>Based on one of the best selling books related to Machine learning with the title “The Hundred-Page of Machine Learning Book”.</p><blockquote>Machine Learning is a subfield of computer science that is concerned with building <strong>algorithms</strong> which, to be useful, <strong>rely on a collection of examples </strong>of some phenomenon. -Andriy Burkov</blockquote><h4>Types of Machine Learning</h4><p>In general, there are 2 types of machine learning:</p><ol><li>Supervised Learning</li></ol><p>In Supervised learning, Algorithm is presented with example inputs and their desired outputs (label), given by a “teacher”, and the goal is to learn a general rule that maps inputs to outputs.</p><p>Based on its output label, Supervised Learning divide into two groups:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*xutTyT0S0-iABiBZ_gfjkw.jpeg" /></figure><p>2. Un-Supervised Learning</p><p>In Un-Supervised learning, Algorithm learns from plain examples without any associated label, the algorithm to determine the data patterns on its own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*MbC4-nETlyXE00y2iTPtMQ.jpeg" /></figure><h4>Machine Learning Workflow</h4><p>In Building Machine learning, we usually follow CRISP-DM framework.</p><blockquote><strong>CRISP-DM (</strong><em>Cross-industry standard process for data mining</em><strong>), </strong>six major iterative phases to standardize a data mining process across industries.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*eGmBucd4APh9AJe_4TYbvg.jpeg" /></figure><ul><li><strong>Define Problem </strong>in Machine Learning</li></ul><p>Based on personal experiences and advice from colleagues, at least there are 3 steps in defining a problem in machine learning, which are:</p><ol><li>Understand Customer Journey &amp; It’s Pain Points</li><li>Create Problem Statement &amp; Objective</li><li>Defining Machine Learning Problem</li></ol><p>I tried to find HR data in Kaggle (Data, ML &amp; AI Community Website) and I found one, related to Employee Attrition. Let us try to simulate how to define it as a machine learning problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*vfgzceyV4eeqCH2yXMeOWA.jpeg" /></figure><ul><li><strong>Data</strong> Understanding &amp; Preparation</li></ul><p>Now we come to probably the most time-consuming part of building machine learning, which is understanding &amp; preparing data itself. as we know that from its definition machine learning highly depend on its data imputation if we input incorrect data the machine most probably will fail to get the right rules we wanted as common word said that “garbage in, garbage out”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*bACxn3XpEfOTe-q1v8aWww.jpeg" /></figure><ul><li><strong>Building</strong> Machine Learning</li></ul><p>Continuing, our example related to employee attrition. Previously we’ve defined it as a classification problem. Before we can teach our machine learning algorithm. there are two important things that we need to do.</p><ol><li>Data Splitting</li></ol><p>All existing data which have been labeled need to be split at least int two which are training data for machine learning to learn and test data in which machine learning will be evaluated.</p><p>2. Determining the Evaluation Method</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*pp3BD-noMXQpQ6agdPMeKQ.jpeg" /></figure><p>Accuracy might be the most familiar matrix for business in examining machine learning, but in fact, sometimes accuracy itself won&#39;t give sufficient information about how good the model especially in imbalance class prediction because in order to predict 1 attrition employee out of 100 employees the machine can predict all employee will always stay with accuracy (99%) but it is not the model we are looking for. To handle that problem we need other matrices such as AUC.</p><p>Next, we move to choose a machine-learning algorithm to be trained. there are several algorithms we can choose for classification problems such as Logistic Regression, KNN, Decision Tree, Random Forest, Etc.</p><p>For this time, we will use KNN.</p><p>KNN (K-Nearest Neighbour)</p><p>From its name, we can know that this algorithm learns to classify data by finding K nearest data by considering the similarity calculated by distance.</p><p>In the below image, we will K=3 for illustration.</p><p>Suppose, Red represents attrition while blue represent keep stay</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*wvgQj-buzXxNUqeyUbnMSg.jpeg" /></figure><p>For each data point, the algorithm will check its data distance to all other data points and classify it the same as 3 nearest data point major classes. As the learning result, KNN algorithm will generate a boundary decision that will act as a rule to define wether some employees will attrition or not for this case.</p><ul><li><strong>Deployment &amp; Evaluation</strong></li></ul><p>Our <strong>Pre-trained Machine Learning will predict New Data</strong>, as a result, new data will get an additional column which is prediction result. After that, the prediction result will be <strong>stored in a database </strong>and can be use for any purpose such as <strong>report or dashboard</strong> making, etc. In practice, prediction results need to be evaluated<strong> periodically </strong>by domain experts to maintain it’s relevancy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*BMOw57sAKmpQccBDhhHPjw.jpeg" /></figure><h3><strong>Applications </strong>in Human Resources</h3><p>here are some application of machine learning in human resources that I found from an article entitled ‘<a href="https://emerj.com/ai-sector-overviews/machine-learning-in-human-resources/">machine-learning-in-human-resources</a>’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*CwGClFxuYtfaaAskMt4j3Q.jpeg" /></figure><h3>References</h3><p>Shai Shalev-Shwartz &amp; Shai Ben-David.2014.Understanding Machine Learning : From Theory to Algorithms</p><p>Burkov’s, Andriy.2019.The Hundred-Page of Machine Learning Book</p><p><a href="https://deepai.org/machine-learning-glossary-and-terms/machine-learning">https://deepai.org/machine-learning-glossary-and-terms/machine-learning</a></p><p><a href="https://towardsdatascience.com/supervised-vs-unsupervised-learning">https://towardsdatascience.com/supervised-vs-unsupervised-learning</a></p><p><a href="http://www.datascience-pm.com/crisp-dm-2/">http://www.datascience-pm.com/crisp-dm-2/</a></p><p><a href="https://towardsdatascience.com/knn-in-python-835643e2fb53">https://towardsdatascience.com/knn-in-python-835643e2fb53</a></p><p><a href="https://www.kaggle.com/HRAnalyticRepository/employee-attrition-data">https://www.kaggle.com/HRAnalyticRepository/employee-attrition-data</a></p><p><a href="https://emerj.com/ai-sector-overviews/machine-learning-in-human-resources/">https://emerj.com/ai-sector-overviews/machine-learning-in-human-resources/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11167e8c540a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I choose Data Scientist over Actuaries]]></title>
            <link>https://medium.com/@achyarua/i-choose-data-scientist-over-actuaries-5ff2238bc575?source=rss-e8a7e6d2cbcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ff2238bc575</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Achyar]]></dc:creator>
            <pubDate>Sun, 17 Mar 2019 08:06:18 GMT</pubDate>
            <atom:updated>2019-03-17T10:58:43.349Z</atom:updated>
            <content:encoded><![CDATA[<h3>I Choose Data Scientist over Actuary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jZ-9Iy0VD5pFYBtcbZJiqA.png" /></figure><p>The story begin when I was about to finished my senior high school. It was critical time for me to decide what major to take. There was no so much choice in my mind. Applied Math was the only major that I thought of at that time. I was simple minded boy who love to learn math. At the first time I didn’t think about what job I could applied by having math degree. But, I knew that I should get real and needed to be sure about it. Not so long after that I started browsing jobs available in math major. It was 2014 and I found out Actuary was the “sexiest” job for math students. Since that time I learned that:</p><blockquote>Actuary is a profession that predict and calculate risk in insurance to determine premium and reserves need to be provided by the company by applying math and statistics tools</blockquote><p>I started to talk about it in my school but i freak out that there is no even one person at my school knew about that profession even the teachers. I started to learn about that major independently and wanted to learn about it even more as I felt that trough this profession I would solve interesting math problem that can give impact to society life.</p><p>Shortly I applied and accepted to math major in one of state university in my country, I started to learn about basic math, logic, calculus, linear algebra and kind of things. My dreamed was to become best Actuary, I take courses from across program (Mathematics, Statistics, Actuarial Science, Accounting, Economic). One of my favorite subject was about probability. Along the way I learned about stochastic and queuing theory (which became my thesis topic).</p><p>Finally, it was graduation time. Because of my personal target, I finished my study little bit early than my batch. In that moment I just got 4 out of 7 ASAI (Associate of Actuaries of Indonesia) certificates.</p><p>Time to looking for jobs was coming, I tried to apply actuarial’s jobs. I found out that it was hard enough for fresh graduate to find jobs available in that field. within the waiting time, I applied to some other jobs related to math. Soon after that, there were job calls. One was actuarial job and the other one was “Data Scientist”. I just heard about Data Scientist in that company presentation. Data scientist is a unique profession which combined mathematics,statistic, programming skills and business knowledge to analyze various data (tabular, text, video, audio) in order to produce useful insight for business in decision making. Moreover, It also offer various interesting use case such as fraud detection, demand prediction, sentiment analysis, face recognition and others. Started from that time I felt like <strong>fall in love for the second time </strong>to new subject for me which is about machine learning, artificial intelligence and big data. I tried to take the test and by God’s mercy I got the chance to join the “Data Scientist Program” in that company. Beside that, I also received notification that I’ve been accepted to reassurance company as Actuary.</p><p>It was hard choice for me to choose Actuary or Data Scientist. Actuary was my old dream profession, most of my university time I&#39;ve spent to learn about it. I started to contemplated. I think there are some over lapping part between Actuary and Data Scientist in analyzing data to help business in decision making, but for me Data Scientist give more challenges as it offer wider application of mathematics, statistic and probabilistic concept that I can apply not only in insurance company. It also offered automation that help to bring society life one level up. I tried to browse again about Data Scientist profession. In 2018, it has become “sexiest” job especially in math major pushing Actuary to the second podium. I felt more exited to learn more about data science and started from that night in the train heading to home I committed to choose <strong><em>Data Scientist</em></strong> over Actuary.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ff2238bc575" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>