Naive Bayes Classifier in Python (from scratch!)

Naive Bayes Classifier in Python (from scratch!)

Normalized Nerd

3 года назад

83,635 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@newguy2972
@newguy2972 - 01.09.2023 14:38

I was importing a mysql dataframe, I was importing string elements and it resolved them into objects,
data = pd.read_sql_table("ai_learning", engine)

columns_to_convert = ["Products", "feedback", "blog", "diagnosis"]

data[columns_to_convert] = data[columns_to_convert].apply(pd.to_numeric, errors='coerce')
data = data[["Products", "feedback", "blog", "diagnosis"]]

This is how I fixed it if anybody was getting the same outputs.

Ответить
@tarabalam9962
@tarabalam9962 - 27.07.2023 11:13

this gave a lot of clarity , thanks

Ответить
@yashicasaun
@yashicasaun - 07.03.2023 12:44

When you are checking for gaussian curve, shouldn't you have filtered for different diagnosis and then check if the curve fits?
Because now, we see the data fits gaussian. But we then change the data and only take a subset and then fitting the curve
Thanks for the great video.

Ответить
@minasahebi1474
@minasahebi1474 - 19.12.2022 20:22

perfect!

Ответить
@shortyTalks
@shortyTalks - 04.11.2022 06:46

😃Bro thx for the nice explanation. Are you using a theme for vs code, cuz all the colours in your systems are looking damn good

Ответить
@caljohn1475
@caljohn1475 - 24.10.2022 16:22

@normalized Nerd How do you make a prediction with this using specific values?

Ответить
@caljohn1475
@caljohn1475 - 13.10.2022 07:06

You're a legend my dude, thanks so much for explaining this

Ответить
@placement10lpa36
@placement10lpa36 - 24.09.2022 22:56

can someone explain me the guassian distribution part

Ответить
@hajraali1205
@hajraali1205 - 07.06.2022 04:28

I did not understand the output, we were detecting the cancer patient, but in out put there are two matrix and accuracy data so which is which.

Ответить
@Mustistics
@Mustistics - 16.05.2022 16:08

Damn, I was hoping for a SKlearn tutorial!

Ответить
@leogino9522
@leogino9522 - 13.05.2022 19:41

Thank you for opening up new horizons for me <3

Ответить
@pietrogarofalo2957
@pietrogarofalo2957 - 25.04.2022 14:59

Man, u save my life ty very much.
Use sklearn is too easy, justify why u decide to use Naive and why u can use it is the very important thing, keep it up man .
( excuse me for my bad english )

Ответить
@secondarypemail7181
@secondarypemail7181 - 24.04.2022 10:45

Thanks man,your effort to make algorithms from scratch is just on another level.Your effort is much appreciated👍

Ответить
@muhammadirsyaduddin6597
@muhammadirsyaduddin6597 - 19.04.2022 11:56

Hello! Is it possible to add the multinomial in the code? Thank you.

Ответить
@sukhmanpreetsinghsandhub2042
@sukhmanpreetsinghsandhub2042 - 12.02.2022 12:46

Awesome video.

Ответить
@HaiderAli-hp6tl
@HaiderAli-hp6tl - 29.01.2022 16:19

the number of subscribers to your channel does not do justice to your content. This is such quality educational content. Keep it up, man.

Ответить
@vishwajeetdeulkar3862
@vishwajeetdeulkar3862 - 02.10.2021 18:15

Hi, I am getting error as "index 29 is out of bounds for axis 0 with size 29" for this statement likelihood[j] *= cal_gaussianLikelihood(df,features[i],x[i],Y,labels[j]), any solution?

Ответить
@glennbroyne7316
@glennbroyne7316 - 27.08.2021 20:36

Fantastic video, very well explained!

Ответить
@jorgetaboada6500
@jorgetaboada6500 - 17.08.2021 23:47

Sorry, again I do understand now, and also I apply in my work with excellent results, Thanks!

Ответить
@jorgetaboada6500
@jorgetaboada6500 - 17.08.2021 01:49

Sorry, but I do not understand who is "df" when you def a function because you have never defined. I will appreciate your explanation

Ответить
@teetanrobotics5363
@teetanrobotics5363 - 19.03.2021 10:00

SVMs,Random Forest and gradient boosting left in the playlist

Ответить
@alexchristian220
@alexchristian220 - 18.03.2021 10:12

likelihood = [1] * len(labels), post_prob = [1] * len(labels)
what this above code actually do?

And also how can I work this code on tennis.csv dataset?

Ответить
@averyiorio4337
@averyiorio4337 - 11.03.2021 20:42

amazing content and fantastic explanations

Ответить
@kushagrakumar9576
@kushagrakumar9576 - 11.03.2021 00:31

Excellent video. Keep up the good work 🙂

Ответить
@lucascojot7226
@lucascojot7226 - 08.03.2021 08:21

Super high quality videos! I'm surprised you have 8K and not 800K... Keep it up!

Ответить
@sayantansadhu6380
@sayantansadhu6380 - 27.02.2021 22:09

The from scratch series in this channel is the best !!

Ответить
@pritammukherjee3972
@pritammukherjee3972 - 26.02.2021 16:19

Nice video

Ответить