{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "anaconda-cloud": "", "kernelspec": { "display_name": "R", "language": "R", "name": "ir" }, "language_info": { "codemirror_mode": "r", "file_extension": ".r", "mimetype": "text/x-r-source", "name": "R", "pygments_lexer": "r", "version": "3.4.1" }, "colab": { "name": "lesson_14.ipynb", "provenance": [], "collapsed_sections": [], "toc_visible": true }, "coopTranslator": { "original_hash": "ad65fb4aad0a156b42216e4929f490fc", "translation_date": "2025-09-06T12:18:11+00:00", "source_file": "5-Clustering/2-K-Means/solution/R/lesson_15-R.ipynb", "language_code": "my" } }, "cells": [ { "cell_type": "markdown", "metadata": { "id": "GULATlQXLXyR" }, "source": [ "## R နှင့် Tidy data အခြေခံများကို အသုံးပြု၍ K-Means clustering ကို လေ့လာပါ။\n", "\n", "### [**Pre-lecture quiz**](https://gray-sand-07a10f403.1.azurestaticapps.net/quiz/29/)\n", "\n", "ဒီသင်ခန်းစာမှာ Tidymodels package နဲ့ R ecosystem (သူငယ်ချင်းတွေ 🧑🤝🧑) ထဲက အခြား package တွေကို အသုံးပြုပြီး cluster တွေကို ဖန်တီးနည်းကို သင်ယူပါမယ်။ သင်ရင်းနှီးပြီးသား Nigerian music dataset ကို အသုံးပြုပါမယ်။ K-Means Clustering အခြေခံကို လေ့လာပါမယ်။ အရင်သင်ခန်းစာမှာ သင်ယူခဲ့သလို၊ cluster တွေကို အလုပ်လုပ်စေဖို့ နည်းလမ်းများစွာရှိပြီး သင့် data ပေါ်မူတည်ပြီး သင့်လျော်တဲ့နည်းလမ်းကို ရွေးချယ်ရပါမယ်။ K-Means က အများဆုံး အသုံးပြုတဲ့ clustering နည်းလမ်းဖြစ်လို့ အဲဒီနည်းလမ်းကို စမ်းကြည့်ပါမယ်။ စလိုက်ကြစို့!\n", "\n", "သင်လေ့လာရမယ့် အကြောင်းအရာများ:\n", "\n", "- Silhouette scoring\n", "\n", "- Elbow method\n", "\n", "- Inertia\n", "\n", "- Variance\n", "\n", "### **Introduction**\n", "\n", "[K-Means Clustering](https://wikipedia.org/wiki/K-means_clustering) က signal processing နယ်ပယ်က ဆင်းသက်လာတဲ့ နည်းလမ်းတစ်ခုဖြစ်ပြီး data တွေကို `k clusters` အဖြစ် feature တွေတူညီမှုအပေါ် မူတည်ပြီး ခွဲခြားပေးပါတယ်။\n", "\n", "ဒီ cluster တွေကို [Voronoi diagrams](https://wikipedia.org/wiki/Voronoi_diagram) အနေနဲ့ မြင်နိုင်ပြီး၊ diagram တွေမှာ point (သို့မဟုတ် 'seed') နဲ့ အဲဒီ point ရဲ့ region ပါဝင်ပါတယ်။\n", "\n", "
\n",
" \n",
"
\n",
" \n",
"
\n",
" \n",
"
\n",
" \n",
"