{ "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-11-18T19:31:34+00:00", "source_file": "5-Clustering/2-K-Means/solution/R/lesson_15-R.ipynb", "language_code": "pcm" } }, "cells": [ { "cell_type": "markdown", "metadata": { "id": "GULATlQXLXyR" }, "source": [ "## Learn K-Means Clustering wit R and Tidy Data Principles\n", "\n", "### [**Pre-lecture quiz**](https://gray-sand-07a10f403.1.azurestaticapps.net/quiz/29/)\n", "\n", "For dis lesson, you go sabi how to create clusters wit Tidymodels package and oda packages wey dey R ecosystem (we go call dem friends π§βπ€βπ§), and di Nigerian music dataset wey you don import before. We go talk about di basics of K-Means for Clustering. Remember say, as you don learn for di earlier lesson, plenty ways dey to work wit clusters and di method wey you go use depend on your data. We go try K-Means because na di most common clustering technique. Make we start!\n", "\n", "Terms wey you go sabi:\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) na method wey dem take from signal processing domain. E dey used to divide and arrange groups of data into `k clusters` based on similarities for dia features.\n", "\n", "Di clusters fit show as [Voronoi diagrams](https://wikipedia.org/wiki/Voronoi_diagram), wey get one point (or 'seed') and di region wey dey follow am.\n", "\n", "
\n",
"
\n",
"
\n",
"
\n",
"
\n",
"
\n",
"
\n",
"
\n",
"