Machine Learning Tutorial 13 - K-Nearest Neighbours (KNN algorithm) implementation in Scikit-Learn

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

It's been more than 5 years since I am following your channel through different phases of my career. You always ace it and I wanted to let you know that there was not a single time when your videos didn't help me in the past 5 years. Thank you for all the work. You are the best teacher I've ever had

tlubaina
Автор

Best explanation bro... You deserve 1 million subs

Ben-tmnt
Автор

NICELY DONE...

... but I DID notice that you DIDN'T actually USE your newly-trained predictor on a SINGLE test X (vector) - this too is a common scenario, as not everyone uses kNN for classifying BATCHES of inputs ;-) ...

A SINGLE test vector would take on THIS shape:
test_x_2 = [[5.9, 3.0, 5.1, 1.8]] <--- note the "double" dimension here - this IS required...

Then the call to the predictor would simply look like this:
y_test_pred_2 = classifier.predict(test_x_2)
y_test_pred_2

and you would get:
array(['Iris-virginica'], dtype=object)

so that

y_test_pred_2[0] = "Iris-virginica"

:-)

KEEP UP THE GREAT VIDEOS !

-Mark in North Aurora IL

VOGTLANDOUTDOORS
Автор

Thank you very much for a very well taught and presented video..

shubhamsahai
Автор

thanks, also thanks for brain malfunction and hearink keyboard sounds 24/7 lol

wanted_edits
Автор

Thank you so much for this! It's really helpful and easy to follow!

malKav
Автор

Thank you so much for this tutorial, however, every tutorial I've seen utilizes the Iris dataset and real-world data does not come anywhere near that. Could we get another example please?

HYroglif
Автор

Hi, Have you ever implemented SVM and Linear Regression via python, too? And put it on your channel?

Miiifaco
Автор

scaler.fit(x_train) is giving numpy.ndarray error. not resolving on using [ ]

shahzebkhan
Автор

I did not understand what was the final output how it classify the object that in which classes it belongs??

nafassaadat
Автор

I really appreciate your work on this, but I do hope you add subtitle to this and the upcoming videos.

vitoluong
Автор

How can we visualise the graph for the same? Kindly explain

sapnaarora
Автор

If a give an input list for the KNN algorithm to predict the classes of each element, How can I print out the list of inputs only belonging to a particular class?

shlokdoshi
Автор

I keep getting a ValueError when trying to run the Preprocessing Block of code. any suggestions?

LuisOrtega-uevp
Автор

Civil related data using prediction values

VSaipavankumarReddyLE
Автор

The audio on the video is very low... pls try and adjust that

agitacademy
Автор

How can a new data point be pointed using previous data set??

pallavishnuvardhan
Автор

I am unable to find the dataset where it is can anyone share in the comment section

HappyMishra
Автор

which language is better nd more job... c# or php ... pls say me nd say me reason why better it ...

jayeshpobari
Автор

you can only give algorithms or provide some logic behind all those.

kabijoshi