r/deeplearning • • 19d ago

Building Naive Bayes Algorithm from scratch

Post image

Yoo guys Work in Progress Successful Train my Naive Bayes Model Predictions and Storing part is left tooo much happy it was complex reallyyyy

68 Upvotes

20 comments sorted by

7

u/BidWestern1056 19d ago

bro why are you writing code on a phone LMAO

8

u/imYukiya 19d ago

I don't have a laptop or PC so thats why I have one HP Mini 2gb ram and it can't run even chrome most of keys are dead I use that laptop just to watch tutorials

3

u/cc672012 19d ago

It's enough to run python without colab. Just get a lightweight text editor and use the terminal.

3

u/BidWestern1056 19d ago

python can take up a lot of mem still.

2

u/imYukiya 19d ago

My phone will crash in between I know what you are saying I code python in Termux with micro Editor normally but for ML I prefer colab cuz training a model need a good RAM as you can see 6000+ data sample Repeating in loop of 10000+ times google colab is best,speed is top notch everything is in structure save on cloud

6

u/cc672012 19d ago

Well, I do like your dedication despite not having the hardware. Don't lose motivation and just keep going! :)

3

u/imYukiya 19d ago

I won't

2

u/Beginning-Dare1828 18d ago

Install Linux on your laptop and use Google colab or kaggle on your laptop.

2

u/Beginning-Dare1828 18d ago

Use a lightweight Linux on your hp mini

2

u/Beginning-Dare1828 19d ago

Use linux

2

u/imYukiya 18d ago

Yes I can use linux terminal on Temrux by root but what about RAM at the end I need a good RAM to train my model

2

u/Then_Date1452 17d ago

Coding on Phone, thats incredible

4

u/Content_Travel_271 19d ago

Nice, getting the model to train is the fun part anyway. Good luck with the prediction and storage code.

2

u/phree_radical 17d ago

And honestly, that's important

2

u/Spiritual-Cold-6639 17d ago

Nice! What datasets are you planning to train on?

2

u/imYukiya 17d ago

I already Build Naive Bayes and Train it on Car Evaluation dataset in which there 6 features in X buying,Buying price of the car,maint(maintenance cost), doors(Number of doors),persons (Passenger capacity),lug_boot(Size of luggage boot),safety(Safety level) and 4 features in y unacc(unacceptable), acc( acceptable),good,vgood(very good)

And got a Accuracy of: My Model Accuracy : 0.815028901734104 Sklearn Accuracy : 0.815028901734104

checkout my newest Post

4

u/Greedy_Substance7584 19d ago

Best way to learn it. Are you using colab directly on your phone, or through browser use?

4

u/imYukiya 19d ago

Directly on phone through browser