**雿�� Aisha Javed**��
1. 靚瑟�蝵�摰霂髡 - 敹恍���亦�蝏��刻�銝�瘨胯��
2. 靚瑟��唳��銝�霂髡 - ��雿��唳������
3. 靚瑟�IT�舀�銝�霂髡 - �舀�雿�蝏��T
��隞亙�����恥��隞撘�憪�撘��渡�韐��! 蝚�1�典�????銝哨����曇圾�蝝��嗆嚗B嚗�典郎銋�瘜�撌乩���嚗��摰�蝞�瘣�嚗�銋�摰��餈葵蝞��詨�蝞���餈��恥銝哨��賑撠祕蝏挈閫�摰��郊Python摰嚗�雿輻�箇�Python嚗�撟嗡�隡�撣豢���隞撘�憪��B��銋���嚗��NB�典�蝐颱�撟嗡����憭拍�嚗�
�曹����湔銝箇�撖孵�摮西�圾霂餅�典郎銋����犖霂游���銝閫��皜�嚗雿�賣瓷�迤�圾摰���隞亥�蝭�摰V��孵�笆撖餅瘛勗雿瓷�鈭��撣��啣郎�砍���典郎銋�摮西��嚗��霂湛�����犖�摮血笆�霂港�瘝∩�銋�銋�嚗�
憒������摰�蝝��嗆Python摰霈脰圾
銝��虫��粉摰�蝭�摰X�蝡�雿�摰�90%�蝝��嗆�圾���堆��拐���10%�隞��刻�摨行��∪�嚗�
�箏摮虫�撠�隞�啗��嚗�
��蝣� # 1:��唳憸����
��蝣� # 2嚗�摰 NaiveBayes 蝐領���銋悌蝏�瘚��賣
��蝣� # 3嚗��刻悌蝏�桅�銝悌蝏� NB 璅∪�
��蝣� # 4嚗�雿輻霈剔�憟賜� NB 璅∪�餈�瘚�
��蝣� # 5嚗�霂� NaiveBayes 蝐餌�隞��蝏笆�嚗�
�冽�隞砍�憪��� Naive Bayes �� Python 隞��銋�嚗��挽雿歇蝏���
-
Python �”
-
Numpy 隞亙�銝��孵���隞��
-
摮
-
甇��銵刻噢撘�
霈拇�隞砍�憪� Pythonic ���啣嚗�
霈拇�隞砌��葵�典��� Naive Bayes �園�閬�撖澆撘�憪�
��蝣� # 1 颲暹� �予
���典�嚗�隞砍�銝� NB �掩�函���銝芸��券��誨���捏霈剔��唳�葉��撠掩嚗誑��摰�銋��祆�桅����隞�賢�霈剔�銝�銝芸��冽���璅∪� �� �� ��
NaiveBayes �誨��� 蝔凝憭�����賑�芷�閬韐寞�憭� 10-15 ��撠梯�摰�銋�嚗�蝏笆�臭誑�芰妍銝算�B 憭批��� ��
NaiveBayes 蝐颱葉�餃摰�鈭�銝芸�堆�
1\. def addToBow(self,example,dict_index)
2\. def train(self,dataset,labels)
3\. def getExampleProb(self,test_example)
4\. def test(self,test_set)
隞��鋡怠�銝箔舅銝芯蜓閬�堆��唾悌蝏�瘚��賣���虫��圾鈭�銝支葵�賣�摰��祗�伐�雿�蝖桀�鈭圾隞�������其誑�隞舅銝芸�啁�靚憿箏���
1\. Training function that trains NB Model :
def train(self,dataset,labels)
2\. Testing function that is used to predict class labels
for the given test examples :
def test(self,test_set)
�血�銝支葵�賣�臭蛹鈭‘��銝支葵銝餉��賣��銋�
1\. BoW function that supplements training function
It is called by the train function.
It simply splits the given example using space as a tokenizer
and adds every tokenized word to its corresponding BoW :
def addToBow(self,example,dict_index)
2\. Probability function that supplements test function.
It is called by the test function.
It estimates probability of the given test example so that
it can be classified for a class label :
def getExampleProb(self,test_example)
雿��臭誑�刻�銝� Jupyter Notebook 銝剜��餈唬誨��
憒��賑摰�銝�銝� NB 蝐鳴����臭蝙�其�蝏�蝏���蝔瘜�蝏����其誨��摰寞�敺���撠望摰�銝�銝� NB 蝐餃��嗥�喳�啁�����
�賑銝�隞蝻�隞��嚗撣�蝻�蝢��瘣���其��舫��函�隞���瓷���賑撣��交�銝�銝芯�蝘��唳蝘郎摰嗅�賢憭����韐剁�
雿��嚗�敶�隞砍���銝芣��砍�蝐駁憸僎��雿輻NB閫��塚��賑�芷�摰��撖寡情嚗���詨���蝔���撠勗隞亥悌蝏�銝杰B�掩�具���嚗�桅�笆鞊∠�蝔�銝��砍����賑�芸蝐餃��典�銋�霂亦掩�詨��堆��迨����NB蝐餅��喟��賣撠�鋡怠��砍�銋��
��蝣� # 2 颲暹� �� ��
-
[KDnuggets�圈嚗�4��13�伐��唳蝘郎摰嗅�霂亙瘜函�Python摨�因(https://www.kdnuggets.com/2022/n15.html)
-
[�渡�韐�舐�瘜�雿�閬��銝��(https://www.kdnuggets.com/2020/06/naive-bayes-algorithm-everything.html)
-
[�圾韐�臬���3蝘撘���雿��唳蝘郎���稽(https://www.kdnuggets.com/2022/06/3-ways-understanding-bayes-theorem-improve-data-science.html)
-
[�亥��箏摮虫�餈����跑(https://www.kdnuggets.com/2018/05/general-approaches-machine-learning-process.html)
-
Chip Huyen �澈摰ML蝟餌����嗅�獢��弦 澈鈭��� ML 蝟餌����嗅�獢��弦](https://www.kdnuggets.com/2023/02/sphere-chip-huyen-shares-frameworks-case-studies-implementing-ml-systems.html)