<?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 Porntiva Visitsora-at on Medium]]></title>
        <description><![CDATA[Stories by Porntiva Visitsora-at on Medium]]></description>
        <link>https://medium.com/@Porntivi?source=rss-b5a579e2de7b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cO54jz8XlCW8w1GLA2c6nw.jpeg</url>
            <title>Stories by Porntiva Visitsora-at on Medium</title>
            <link>https://medium.com/@Porntivi?source=rss-b5a579e2de7b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 20:13:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Porntivi/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[Metrics พื้นฐานสำหรับวัดประสิทธิภาพของโมเดล Machine Learning]]></title>
            <link>https://medium.com/@Porntivi/metrics-%E0%B8%9E%E0%B8%B7%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%A7%E0%B8%B1%E0%B8%94%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%AA%E0%B8%B4%E0%B8%97%E0%B8%98%E0%B8%B4%E0%B8%A0%E0%B8%B2%E0%B8%9E%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B9%82%E0%B8%A1%E0%B9%80%E0%B8%94%E0%B8%A5-machine-learning-c00fcc32fa30?source=rss-b5a579e2de7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c00fcc32fa30</guid>
            <category><![CDATA[maching-learning]]></category>
            <dc:creator><![CDATA[Porntiva Visitsora-at]]></dc:creator>
            <pubDate>Tue, 29 Oct 2019 05:04:52 GMT</pubDate>
            <atom:updated>2019-10-29T05:04:52.871Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@tomaszdudek/but-what-is-this-machine-learning-engineer-actually-doing-18464d5c699"><strong>ML Engineer</strong></a> มี metrics ที่ใช้วัดความถูกต้องของโมเดลหลายตัวมากดังนั้นเราจึงทำการรวบรวมค่าต่างๆไว้ เพราะมีเยอะมากจนบางทีก็ลืมมันไป ไว้เก็บไว้ดูหากลืมคำไหนในที่นี้ก็รวม metrics หลักๆ ไว้ในนี้ละกันเนอะ หลักๆ คือได้นำข้อมูลมากจาก D<a href="http://อธิบาย 10 Metrics พื้นฐานสำหรับวัดผลโมเดล Machine Learning | DataRockie">ataRockie</a> เพราะเขียนสรุปให้ได้ง่ายและเข้าใจ และมี metrics เพิ่มเติมที่เราได้เจอเพิ่มเติมและนำมาเพิ่มไว้ในนี้ด้วย</p><p>โดยเราแบ่งเป็น Matrix เป็น 2่ กลุ่มใหญ่ ๆ <br>สำหรับปัญหา <strong>regression </strong>และ <strong>classification</strong></p><p>metrics ที่จะกล่าวถึงคือ</p><blockquote><strong>Regression</strong><br> — MAE, MAD, MSE, MAPE, RMSE, R2<br><strong>Classification </strong><br> — Accuracy, Precision, Recall, F1-Score, F-Beta Score, AUC</blockquote><p>ในบทความนี้เราใช้ terminology (คำศัพท์) ดังนี้</p><ul><li>[y] prediction/forecast — ผลการทำนายของโมเดล</li><li>[y] actual — ค่าจริง</li><li>metrics คือค่าที่ได้จากการคำนวณ/ เปรียบเทียบผล prediction vs. actual ว่าโมเดลของเราทำนายได้ถูกต้องแค่ไหน</li></ul><h3>Regression</h3><p>Metrics สำหรับปัญหา Regression เราสร้างโมเดล Regression เพื่อทำนายตัวแปร y แบบ continuous (ตัวเลข) สามารถเขียนสมการคำนวณค่า error ได้แบบนี้</p><p>Error = prediction — actual</p><p>ML เรียก error function นี้ว่า “<a href="https://en.wikipedia.org/wiki/Loss_function"><strong>Loss function</strong></a>” และเป้าหมายของการ train โมเดลคือการ minimize หรือลดค่า loss ให้มีค่าต่ำที่สุด รูปด้านล่างคือ <a href="https://datarockie.com/2018/05/02/linear-regression-in-excel/"><strong>Linear Regression</strong></a> ง่ายๆเพื่อทำนายค่า y ด้วยตัวแปร x</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/0*4w7Yvlaw_wZ6T5_j.png" /><figcaption>ref: <a href="http://www.sthda.com/english/sthda-upload/images/machine-learning-essentials/linear-regression.png">http://www.sthda.com/english/sthda-upload/images/machine-learning-essentials/linear-regression.png</a></figcaption></figure><p>จุดสีดำบนรูปคือ actual data ส่วนเส้นตรงสีแดงคือ prediction ที่ได้จากการ train Linear Regression ระยะห่างของ prediction vs. actual คือค่า loss ที่เราต้องการ minimize</p><h3>MAE,MAD</h3><p>Metric ตัวแรก (หรือ loss function) ที่เราใช้เทรน Linear Regression คือ MAE ย่อมาจาก “Mean Absolute Error” คำนวณง่ายๆแค่หาผลรวมของค่า absolute(error) แล้วคูณกับ 1/n เพื่อเปลี่ยนเป็นค่าเฉลี่ย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/0*XVEZm-134DY10IoV" /></figure><p><strong>MAD</strong> บางแหล่งอ้างอิงเรียกว่า“Median Absolute Deviation” หรือ “Mean Absolute Deviation” บางแหล่งใช้สูตรเดียวกัน บางแหล่งได้บอกความต่างของทั้งคู่ดังรายละเอียดด้านล่างนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*pIIWrCq2h-qYBy_9kR41OQ.png" /><figcaption>ref: <a href="https://i.ytimg.com/vi/XJ8CpXtOATM/maxresdefault.jpg">https://i.ytimg.com/vi/XJ8CpXtOATM/maxresdefault.jpg</a></figcaption></figure><p>หากมองรวมๆ แล้วหาก ไม่มี outlier แล้วนั้นค่าที่คำนวณคือเหมือนกันเลย</p><h3>MAPE</h3><p>MAPE ย่อมาจาก “Mean Absolute Percentage Error” มีลักษณะคล้าย MAE แต่เปลี่ยนค่าเป็น percent</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*bRhPXNnPdbPd4jUmhaXYeg.png" /></figure><p>ตัวอย่างการคำนวณ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*-Mfe3rNjSKVFa9WyjwMRBg.png" /></figure><h3>MSE</h3><p>MSE ย่อมาจาก “Mean Squared Error” จะคล้ายกับ MAE แค่เปลี่ยนจากการทำ absolute เป็น squared (ยกกำลังสองค่า error) ก่อนหาค่าเฉลี่ย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/0*oxg81Sl5QDauFysz" /></figure><blockquote><strong>Technical Note</strong> — MSE จะดีกว่า MAE เวลาใช้พวก gradient descent algorithm เพราะว่าตอนหา derivative diff สมการ loss ด้วย calculusจะทำได้ง่ายกว่า</blockquote><h3>RMSE</h3><p>RMSE ย่อมาจาก “Root Mean Square Error” ทำ square root ค่า MSE เพื่อให้ได้ค่า loss ที่มีหน่วยเดียวกับตัวแปร y เหตุผลที่ต้องทำ SQRT เพราะว่าเรายกกำลังสองค่า error ก่อนหาค่าเฉลี่ยทำให้หน่วยมันเปลี่ยนไปจากเดิม (คนคิด RMSE เลยบอกว่าขอรูทกลับได้ไหม)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/0*VuD_VHY27gmyVzzK" /></figure><p>จากที่อธิบายมาสามตัว RMSE จะแปลผลง่ายสุดเลย Linear Regression ที่มี RMSE เท่ากับ 2.56 แปลว่าโดยเฉลี่ยโมเดลทำนาย y ผิดไป +/- 2.56 point</p><p>MAE,MAD,MAPE MSE, RMSE มีค่ายิ่งต่ำยิ่งดี ถ้าเท่ากับ 0 แปลว่าโมเดลทำนายค่า y ได้ถูกต้องเป๊ะ 100% ในทางปฏิบัติโอกาสที่จะเทรนโมเดลได้ loss = 0 เป็นไปได้ยากมาก เพราะอาจนำไปสู่ปัญหา <a href="https://en.wikipedia.org/wiki/Overfitting"><strong>Overfitting</strong></a> ได้</p><h3>R2</h3><p>R2 หรือ R-Squared เป็น metric ที่ใช้กันเยอะมากเวลารัน Linear Regression แบบนักสถิติ ในสูตรด้านล่าง y_hat คือ prediction และ y_bar คือค่าเฉลี่ยของ y อีกชื่อที่นักสถิติใช้เรียก R2 คือ <a href="https://en.wikipedia.org/wiki/Coefficient_of_determination"><strong>Explained Variance</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/0*0Y0lI4jSh3aosTnr" /></figure><p>Variance คืออะไร?</p><p>อธิบายภาษาคนง่ายๆ R2 คือ variance ที่โมเดลของเราอธิบายได้เป็นสัดส่วนจาก total variance ทั้งหมดของข้อมูลชุดนั้น (นักสถิติใช้สูตรคำนวณ total variance = explained variance + error) โดย R2 จะมีค่าอยู่ระหว่าง 0–1</p><p>ยิ่งเข้าใกล้ 1 แปลว่าโมเดลเราทำนายผลได้ดี</p><h3>Classification</h3><p>มาลองดู metrics ของปัญหา classification กันบ้าง ตัวอย่างวันนี้เราสร้างโมเดล ทำนายอีเมล์ ชื่อทางการของปัญหานี้คือ binary classification ที่ตัวแปร y มีได้แค่สองค่า {0, 1}</p><p>สิ่งแรกที่ทุกคนต้องรู้จักคือ <a href="https://datarockie.com/2018/04/30/confusion-matrix-explained/"><strong>Confusion Matrix</strong></a> ตาราง cross-tabs 2×2 ระหว่าง prediction และ actual label</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g1Y7pjwLGV9hMWVW.jpg" /></figure><p>ตารางด้านบนสรุปผลการทำนายผลลัพธ์จะถูกแบ่งเป็นสี่ช่อง แต่ละช่องมีชื่อเรียกทางการว่า True Positive, False Positive, False Negative, True Negative <br>(อ่านจากซ้ายไปขวา บนลงล่าง)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*rNnIzVNwVWq_AVLT" /></figure><p>การคำนวณ metrics ต่างๆจะใช้ตัวเลขในตารางนี้เป็นหลัก และผลการทำนายอีเมล์ทั้งหมดนี้มี N=100</p><h3>Accuracy</h3><p>Accuracy คือ metric ที่ใช้งานง่ายที่สุด บอกว่าโมเดลเราทำนายถูกทั้งหมดกี่ % จากตารางด้านบน accuracy = (20 + 50) / 100 = 70% คำนวณจากเส้นทแยงมุมของ confusion matrix ได้เลย</p><p>ถ้าแบบทางการหน่อย เราจะเขียนสูตรว่า accuracy = (TP + TN)/ N โดยค่า accuracy จะมีค่าอยู่ระหว่าง 0–1 ยิ่งเข้าใกล้ 1 แปลว่าโมเดลเราทำนายผลได้ดีมาก</p><h3>Precision</h3><p>นิยามของ <a href="https://developers.google.com/machine-learning/crash-course/classification/precision-and-recall"><strong>Precision</strong></a> คือความน่าจะเป็นที่โมเดลทำนาย spam ถูกต้องจากการทำนาย spam ทั้งหมด 32 ครั้ง (20 + 12 ผลรวมแถวบนของ confusion matrix)</p><p>แทนค่าในสมการ precision = TP / (TP + FP) = 20 / (20 + 12) = 62.5%</p><h3>Recall</h3><p>นิยามของ <a href="https://developers.google.com/machine-learning/crash-course/classification/precision-and-recall"><strong>Recall</strong></a> คือความน่าจะเป็นที่โมเดลสามารถตรวจจับ spam จากจำนวน spam email ทั้งหมดในข้อมูลของเรา 38 ฉบับ (20 + 18 ผลรวมคอลั่มแรกของ confusion matrix)</p><p>แทนค่าในสมการ recall = TP / (TP + FN) = 20 / (20 + 18) = 52.6%</p><h3>F1-Score</h3><p>F1-Score คือค่าเฉลี่ยแบบ harmonic mean ระหว่าง precision และ recall นักวิจัยสร้าง F1 ขึ้นมาเพื่อเป็น single metric ที่วัดความสามารถของโมเดล (ไม่ต้องเลือกระหว่าง precision, recall เพราะเฉลี่ยให้แล้ว)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/0*Ubm8pjCldJmVkU_i" /></figure><p>แทนค่าในสมการ F1 = 2 * ( (0.625 * 0.526) / (0.625 + 0.526) ) = 57.1%</p><p>Accuracy ไม่ใช่ metric เดียวที่เราต้องดู</p><h3>F-Beta Score</h3><p>F Score มีสูตรทั่วไปที่เราสามารถกำหนดค่า Beta ได้เอง (เช่น F1 คือการกำหนด Beta = 1) ถ้าเราอยากให้น้ำหนักไปทาง precision ให้กำหนดค่า Beta &lt; 1 แต่ถ้าอยากเน้นที่ recall ให้กำหนดค่า Beta &gt; 1 .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/0*jTekGdHHQKBphdED" /></figure><p>ถ้าเรากำหนด Beta=0 จะได้ค่า precision เพียวๆเลย ( prove สูตรให้ดูด้านล่าง) การใช้ <a href="https://turi.com/products/create/docs/generated/graphlab.evaluation.fbeta_score.html"><strong>F-Beta Score</strong></a> ช่วยให้เราปรับ metric ได้เหมาะสมตามสถานการณ์ เช่น งานที่เน้น recall ก็ให้ใช้ Beta = 2, 3, 5 เป็นต้น</p><pre># example beta=0<br>F0 = (1 + 0) * (precision * recall) / (0 + recall)<br>F0 = precision * recall / recall<br>F0 = precision</pre><h3>AUC</h3><p><a href="https://towardsdatascience.com/understanding-auc-roc-curve-68b2303cc9c5"><strong>AUC</strong></a> ย่อมาจาก “Area Under &lt;ROC&gt; Curve” เป็นอีกหนึ่ง metric ยอดนิยมที่ใช้กันแทบทุกงานเลย AUC มีค่าอยู่ระหว่าง 0–1 ยิ่งเข้าใกล้ 1 แปลว่าโมเดลในภาพรวมสามารถทำนาย y ได้ดีมาก</p><ul><li>AUC = 0.50 ไม่ต่างอะไรกับการเดาสุ่มเลย</li><li>AUC &gt; 0.70 คือเกณฑ์มาตรฐานสำหรับโมเดลส่วนใหญ่</li><li>AUC &gt; 0.80 โมเดลทำงานได้ดี</li><li>AUC &gt; 0.90 โมเดลทำงานได้ดีมาก</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/0*Jqwp_EqayGufIZ4s.png" /><figcaption><a href="https://blog.csdn.net/pipisorry/article/details/51788927">https://blog.csdn.net/pipisorry/article/details/51788927</a></figcaption></figure><h3>Conclusion</h3><p>เวลาทำงาน regression จะใช้ RMSE กับ R2 เป็นหลัก <br>ส่วน classification จะดูค่า accuracy, precision, recall, F1, AUC</p><p>ในการคำนวนค่าต่างๆนั้น สามารถใช้ library ได้หลากหลายภาษา เช่น R/ Python<br>ได้อย่างง่ายดาย</p><p>ขอบคุณข้อมูลแหล่งที่มาจาก</p><ul><li><a href="https://datarockie.com/2019/03/30/top-ten-machine-learning-metrics/">อธิบาย 10 Metrics พื้นฐานสำหรับวัดผลโมเดล Machine Learning | DataRockie</a></li><li><a href="https://theforecastpro.com/2015/04/02/a-guide-to-forecast-error-measurement-statistics-and-how-to-use-them/">A Guide to Forecast Error Measurement Statistics and How to Use Them</a></li><li><a href="https://www.forecastpro.com/Trends/forecasting101August2011.html">Welcome to Forecast Pro - Software for sales forecasting, inventory planning, demand planning, S&amp;OP and collaborative planning.</a></li><li><a href="https://www.h2o.ai/blog/regression-metrics-guide/">Regression Metrics&#39; Guide - Open Source Leader in AI and ML</a></li><li><a href="https://datascience.stackexchange.com/questions/42760/mad-vs-rmse-vs-mae-vs-msle-vs-r%C2%B2-when-to-use-which">MAD vs RMSE vs MAE vs MSLE vs R²: When to use which?</a></li><li><a href="http://www.scielo.br/scielo.php?script=sci_arttext&amp;pid=S0104-42302019000300452">Rational use of diagnostic tests for clinical decision making</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c00fcc32fa30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Time Series]]></title>
            <link>https://medium.com/@Porntivi/time-series-22c25e5b6751?source=rss-b5a579e2de7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/22c25e5b6751</guid>
            <dc:creator><![CDATA[Porntiva Visitsora-at]]></dc:creator>
            <pubDate>Wed, 02 Oct 2019 07:44:27 GMT</pubDate>
            <atom:updated>2019-10-02T07:44:27.935Z</atom:updated>
            <content:encoded><![CDATA[<p>Time Series ตามหลักแล้วคือ เวลาเป็นตัวพื้นฐานหลักของความเป็นไปของข้อมูล</p><p>ความแตกต่างของข้อมูลแบบ Time Series กับข้อมูลทั่วไป คือ ข้อมูลพวกนี้มีฟีเจอร์ในส่วนที่เกี่ยวข้องกับ เวลา เช่น</p><ul><li>Trend (เทรนด์)<br> เป็นทิศทางทั่วไปที่บางสิ่งกำลังพัฒนาหรือเปลี่ยนแปลง ดังนั้นเราจึงเห็นแนวโน้มที่เพิ่มขึ้นในซีรีส์เวลานี้ เราจะเห็นได้ว่าจำนวนผู้โดยสารเพิ่มขึ้นตามจำนวนปี ลองจินตนาการถึงแนวโน้มของอนุกรมเวลา</li><li>Seasonality (ความแปรผันตามฤดูกาล)<br> อีกรูปแบบที่ชัดเจนสามารถเห็นได้ในชุดเวลาข้างต้นคือรูปแบบซ้ำในช่วงเวลาปกติซึ่งเป็นที่รู้จักกันเป็นฤดูกาล การเปลี่ยนแปลงหรือรูปแบบใด ๆ ที่คาดการณ์ได้ในอนุกรมเวลาที่เกิดขึ้นซ้ำหรือซ้ำในช่วงเวลาที่ระบุสามารถกล่าวได้ว่าเป็นฤดูกาล ลองนึกภาพฤดูกาลของอนุกรมเวลา</li><li>Cycle (วัฏจักร)</li></ul><p>ที่เราสามารถนำมาใส่ในโมเดล เพื่อให้ทำนายผลได้ออกมาแม่นยำมากขึ้น</p><p><strong>ความแตกต่างระหว่าง Time Series และ Regression</strong></p><p>ที่นี่คุณอาจคิดว่าเนื่องจากตัวแปรเป้าหมายเป็นตัวเลขสามารถทำนายได้โดยใช้เทคนิค <strong>Regression</strong> แต่ปัญหา <strong>Time Series </strong>แตกต่างจากปัญหา <strong>Regression </strong>ดังต่อไปนี้:</p><p>ข้อแตกต่างที่สำคัญคือ <strong>Time Series </strong>ขึ้นอยู่กับเวลา ดังนั้นสมมติฐานพื้นฐานของตัวแบบ <strong>Linear</strong> <strong>Regression </strong>ที่การสังเกตมีความเป็นอิสระ</p><ul><li>พร้อมกับแนวโน้มที่เพิ่มขึ้นหรือลดลง <strong>Time Series </strong>ส่วนใหญ่มีรูปแบบของแนวโน้มตามฤดูกาลบางรูปแบบเช่นรูปแบบที่เฉพาะเจาะจงกับกรอบเวลาที่เฉพาะเจาะจง</li></ul><p>ดังนั้นการทำนาย <strong>Time Series </strong>โดยใช้เทคนิค <strong>Regression </strong>จึงไม่ใช่วิธีที่ดี</p><p>การวิเคราะห์ <strong>Time Series </strong>ประกอบด้วยวิธีการในการวิเคราะห์ข้อมูล <strong>Time Series </strong>เพื่อดึงข้อมูลสถิติที่มีความหมายและลักษณะอื่น ๆ ของข้อมูลการพยากรณ์ <br><strong>Time Series </strong>คือการใช้แบบจำลองเพื่อทำนายค่าในอนาคตตามค่าที่สังเกตได้ก่อนหน้านี้</p><p>ดังนั้นการนำข้อมูลไปวิเคราะห์ของรูปแบบของ Time Series มีขั้นตอนต่างๆ ดัง</p><h3><strong>a) Understanding Data:</strong></h3><blockquote><strong>1) Hypothesis Generation</strong></blockquote><blockquote><strong>2) Getting the system ready and loading the data</strong></blockquote><blockquote><strong>3) Dataset Structure and Content</strong></blockquote><blockquote><strong>4) Feature Extraction</strong></blockquote><blockquote><strong>5) Exploratory Analysis</strong></blockquote><h3><strong>b) Forecasting using Multiple Modeling Techniques:</strong></h3><blockquote><strong>1) Splitting the data into training and validation part</strong></blockquote><blockquote><strong>2) Modeling techniques</strong></blockquote><p>Reference</p><p><a href="https://courses.analyticsvidhya.com/courses/take/creating-time-series-forecast-using-python/texts/8783545-datahack-summit-2019-india-s-largest-applied-artificial-intelligence-and-machine-learning-conference">Courses in Machine Learning and Data Science - Analytics Vidhya</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22c25e5b6751" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Supervised vs Unsupervised Learning]]></title>
            <link>https://medium.com/@Porntivi/supervised-vs-unsupervised-learning-f1009cad907c?source=rss-b5a579e2de7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1009cad907c</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <dc:creator><![CDATA[Porntiva Visitsora-at]]></dc:creator>
            <pubDate>Fri, 27 Sep 2019 05:13:07 GMT</pubDate>
            <atom:updated>2019-09-27T05:13:07.892Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/924/0*IMyfGe-M2MjefXSC.png" /></figure><h3>Supervised Learning</h3><p>predictive models are created based on input set of records with output data (numbers or labels)</p><p>divided into two different kinds:</p><ul><li><strong>Regression</strong>: When the outcome or response variable is a <strong>continuous</strong> variable (numeric or number), it can be called as regression problems.</li><li><strong>Classification</strong>: When the outcome or response variable is a <strong>discrete</strong> variable (labels), it can be called as classification problems.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*EG6JILQENd6JAw-V.png" /></figure><h3>Unsupervised Learning</h3><p>In unsupervised learning, patterns or structures are found in data and labelled appropriately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/0*0wKIfwHbr7bmS2Y3.png" /></figure><p><strong><em>CLASSICAL MACHINE LEARNING</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Yz2xQcNh8N93_xw.jpg" /></figure><p>Special extra: <a href="https://vas3k.com/blog/machine_learning/#scroll40">The map of the machine learning world</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kvl4KQ58XWpD-oAK.jpg" /></figure><p>Reference</p><ul><li><a href="https://towardsdatascience.com/regression-or-classification-linear-or-logistic-f093e8757b9c">Regression or Classification? Linear or Logistic?</a></li><li><a href="https://datafloq.com/read/machine-learning-explained-understanding-learning/4478">Machine Learning Explained: Understanding Supervised, Unsupervised, and Reinforcement Learning</a></li><li><a href="https://vitalflux.com/dummies-notes-supervised-vs-unsupervised-learning/">Dummies Notes - Supervised vs Unsupervised Learning - Reskilling IT</a></li><li><a href="https://vas3k.com/blog/machine_learning/">Machine Learning for Everyone</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1009cad907c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Centrality and Community Detection in Macaque Rhesus Brain Networks with Gephi 0.9.2]]></title>
            <link>https://medium.com/@Porntivi/centrality-and-community-detection-in-macaque-rhesus-brain-networks-with-gephi-0-9-2-ed62cb4d0cf8?source=rss-b5a579e2de7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed62cb4d0cf8</guid>
            <category><![CDATA[network-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[big-data-analytics]]></category>
            <category><![CDATA[gephi]]></category>
            <dc:creator><![CDATA[Porntiva Visitsora-at]]></dc:creator>
            <pubDate>Sat, 04 May 2019 18:26:37 GMT</pubDate>
            <atom:updated>2019-05-05T08:12:58.980Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZPn2mXQWGjYQAaoPqSazhw.png" /></figure><p>Tools : Gephi you can download and install in <a href="https://gephi.org/">https://gephi.org/</a><br><em>Gephi is the leading visualization and exploration software for all kinds of graphs and networks. Gephi is open-source and free.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hgfnubCBbuUwqBCrIVt9Q.jpeg" /></figure><p>Use data set from : <br><strong>The Network Data Repository with Interactive Graph Analytics and Visualization</strong></p><p><a href="http://networkrepository.com/bn-macaque-rhesus-brain-1.php"><em>http://networkrepository.com/bn-macaque-rhesus-brain-1.php</em></a></p><p><strong><em>Brain network<br></em></strong><em>Description : Edges represent fiber tracts that connect one vertex to another.</em></p><blockquote>Edge weights Unweighted<br>Nodes: 242<br>Edges: 4.1K<br>Density: 0.140256<br>Maximum degree:164<br>Minimum degree: 2<br>Average degree: 33</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*2gCdhRrpOOoJQamw_b0zlg.png" /><figcaption>.edges convert to .csv</figcaption></figure><p>Edge link dataset is in .edges format, However we’ll convert to .csv format before import into Gephi.</p><p>Expect of network graph represented base on</p><p>1. Centrality — Betweenness centrality <strong><em><br></em></strong><em>For detecting the amount of influence a node has over the flow of information in a graph. It is often used to find nodes that serve as a bridge from one part of a graph to another.</em></p><p>2. Community Detection — Modularity <br><em>A subset of vertices in a graph that have more connections to each other than to the rest of the network.</em></p><p>Betweenness can have several meanings. <br><em>In this case: Cells of brain with high betweenness may be the important link that impact others.</em></p><p>Modularity in the brain:<br><em>Communities are groups of brain areas that are more highly connected to each other than the rest of the brain</em></p><p>Let’s start on Gephi 9.0.2</p><ol><li>Data Laboratory → Import Spreadsheet</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*YdBFo4DdBHacuHKB2RWDLg.png" /></figure><p>2. Overview → Statistics <br>(press run on Modularity, Network Diameter or others)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*3hipgXr07mTYlcbWmuJTrw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*VYZrbJ1966YeTMisfjm5Hw.png" /><figcaption>e.g. Modularity found 5 commnunities</figcaption></figure><p>3. Appearance → Node</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/1*iRAqKHN9BrU6LgviY4aKAA.png" /><figcaption>Color of nodes by partition modularity class.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*KdfV3QMWW5FjAY_g0DljeA.png" /><figcaption>Size of nodes by ranking betweeness centrality.</figcaption></figure><p>4. Layout → Force Atlas</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*9wtzK4zaLQR2mg0vZ6SsaQ.png" /><figcaption>Shape the layout adjust by sizes</figcaption></figure><p>5. Filter → Queries</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*G6fBXFZyEmTEGl3rLiMAOA.png" /></figure><p>6. Graph → Lebel design</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*cg_HFPNf0hM60GGDKcdzqQ.png" /><figcaption>Lebel design</figcaption></figure><p>For customizing the visulization you can edit a graph with your style. <br> <a href="https://gephi.org/users/"><em>(learn more on Gephi)</em></a></p><h4><em>Steps below are a sample that focus on the high betweenness centraliry (large sizes) and communities of groups of brain areas (colors).</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*_lIfXKD0YI1yG13J_vLb6g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*WHK7hhxwSYEiCPXNxd9kGw.png" /></figure><h3><strong>Gephi help to find the High Betweenness e.g. node id are 31, 184, 73 etc. and 5 Modularity classes.</strong></h3><blockquote><strong>Future work : </strong><br>You are able to use this tool for help identify the other problems e.g. the network brain of the other animals or the other industries. and there’re various features for analysing.</blockquote><h4><strong>Useful References</strong></h4><p><a href="https://gephi.org/features/"><em>https://gephi.org/features/</em></a><a href="http://networkrepository.com/bn-macaque-rhesus-brain-1.php"><em><br> http://networkrepository.com/bn-macaque-rhesus-brain-1.php</em></a><em> </em><a href="https://pixabay.com/photos/animals-monkeys-macaque-nature-1846731/"><em>https://pixabay.com/photos/animals-monkeys-macaque-nature-1846731/</em></a><a href="https://www.humanbrainmapping.org/files/2017/ED%20Courses/Course%20Materials/Modularity_Muldoon_Sarah.pdf"><em>https://www.humanbrainmapping.org/files/2017/ED%20Courses/Course%20Materials/Modularity_Muldoon_Sarah.pdf</em></a><em><br> </em><a href="https://neo4j.com/docs/graph-algorithms/current/algorithms/betweenness-centrality/"><em>https://neo4j.com/docs/graph-algorithms/current/algorithms/betweenness-centrality/</em></a><em><br> </em><strong><em>Eakasit Pacharawongsakda, Ph.D., BD517 Network Analysis Course, Big Data Engineering Program, CITE, DPU, 2018</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed62cb4d0cf8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>