Python Artificial Intelligence Projects for Beginners



Download 16,12 Mb.
Pdf ko'rish
bet19/65
Sana02.01.2022
Hajmi16,12 Mb.
#311589
1   ...   15   16   17   18   19   20   21   22   ...   65
Bog'liq
Python Artificial Intelligence Projects for Beginners - Get up and running with 8 smart and exciting AI applications by Joshua Eckroth (z-lib.org)

male
 or
female
, we will know whether he or she survived, hence the information gain is highest for
the sex column. We do not consider age column best for our first split since we do not know
much about the passengers ages, and is not the best first split because we will know less
about the outcome if all we know is a passenger's age.
After splitting on the 
sex
 column according to the information gain, what we have now
is 
female
 and 
male
 subsets, as seen in the following screenshot:


Building Your Own Prediction Models
Chapter 1
[ 13 ]
After the split, we have one internode and one question node, as seen in the previous
screenshot, and two paths that can be taken depending on the answer to the question. Now
we need to find the best attribute again in both of the subsets. The left subset, in which all
passengers are female, does not have a good attribute to split on because many passengers
survived. Hence, the left subset just turns into a leaf node that predicts survival. On the
right-hand side, the 
BHF
 attribute is chosen as the best split, considering the value 
9.5
 years
of age as the split. We gain two more subsets: age greater than 

Download 16,12 Mb.

Do'stlaringiz bilan baham:
1   ...   15   16   17   18   19   20   21   22   ...   65




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish