Top Python Libraries

Top Python Libraries

Share this post

Top Python Libraries
Top Python Libraries
KNN (Part 1): How to Classify Movie Genres Based on Fight and Kiss Counts?(Practical Data Analysis 18)

KNN (Part 1): How to Classify Movie Genres Based on Fight and Kiss Counts?(Practical Data Analysis 18)

Learn KNN (K-Nearest Neighbor) basics, from classifying movie genres by fight and kiss scenes to regression techniques and KD Tree optimization.

Meng Li's avatar
Meng Li
Jan 13, 2025
∙ Paid
1

Share this post

Top Python Libraries
Top Python Libraries
KNN (Part 1): How to Classify Movie Genres Based on Fight and Kiss Counts?(Practical Data Analysis 18)
1
Share
A minimalist logo design inspired by the KNN logo, featuring bold, clean, red uppercase letters in a modern and simple connected style. The text should be crisp and clear, with a dynamic flow but no excessive curves or embellishments. The background should be pure white to emphasize the red text. The design should maintain a widescreen horizontal layout.

Welcome to the "Practical Data Analysis" Series.

Table of Contents

Table of Contents

Meng Li
·
July 12, 2024
Read full story

Today, let me guide you through learning KNN, short for K-Nearest Neighbor, which is arguably one of the simplest algorithms in data mining.

Let's start with an example.

Imagine we want to classify movie genres based on certain features like the number of fight scenes and kiss scenes, though other metrics could also be considered. Here's a simple table of statistics:

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Meng Li
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share