How to Build Your First KNN Python Model in scikit-learn (K Nearest Neighbors)

preview_player
Показать описание
Today we are taking a look at how to build a machine learning python K Nearest Neighbors model within Jupyter. This python coding tutorial is a great way to build your first model and is quite easy.

Code:

🍿 WATCH NEXT

OTHER SOCIALS:

Who is Ryan
Ryan is a Data Scientist at a fintech company, where he focuses on fraud prevention in underwriting and risk. Before that, he worked as a Data Analyst at a tax software company. He holds a degree in Electrical Engineering from UCF.

Who is Matt

*This is an affiliate program. We receive a small portion of the final sale at no extra cost to you.
Рекомендации по теме
Комментарии
Автор

Few Minor bugs in this video that should be fixed on the final article

Hey guys I hope you enjoyed the video! If you did please subscribe to the channel!


*Both Datacamp and Stratascratch are affiliate links.

RyanAndMattDataScience
Автор

Wouldn't it be better to use X_test = scaler.transform(X_test) instead of X_test = scaler.fit_transform(X_test)?

danielrexrj
Автор

true negative is on the top left,
false positive is on the top right,
false negative is at the bottom left,
true positive is at the bottom right

Jade-zq
Автор

Why don’t we use StandardScaler for this one?

aineshbalaga
Автор

why did we use fit_transform foe test data as well ? instead of only transform

khushgora
Автор

Hey Ryan, I'm trying to follow along. Will there be a link to the CSV file? Thank you in advance.

soyroian
Автор

what is difference between scaler.fit() and scaler.fit_transform() ⁉

arulkumaransendilvel
Автор

Are you able to do the scaling first before train test split?

ShiftKoncepts
Автор

can you explain why did you choose n_neighbors as 8

shihamfarook
Автор

Funniest tutorial intro in history. #RogerClemens #BarryBonds #PeteRose

chizitereigwe