Python Artificial Intelligence Projects for Beginners



Download 16,12 Mb.
Pdf ko'rish
bet31/65
Sana02.01.2022
Hajmi16,12 Mb.
#311589
1   ...   27   28   29   30   31   32   33   34   ...   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)

Support Vector Machine
 (
SVM
), which is the neural
network approach, the output is 29%:
The random forest is still better.
Let's perform cross-validation to make sure that we split the training test in different ways.
The output is still 44% for the random forest, 25% for our decision tree, and 27% for SVM,
as shown in the following screenshot:


Prediction with Random Forests
Chapter 2
[ 43 ]
The best results are reflected through random forests since we had some options and
questions with random forests.
For example, how many different questions can each tree ask? How many attributes does it
look at, and how many trees are there? Well, there are a lot of parameters to look through,
so let's just make a loop and try them all:


Prediction with Random Forests
Chapter 2
[ 44 ]
These are all the accuracies, but it would be better to visualize this in a graph, as shown
here:
We can see that increasing the number of trees produces a better outcome. Also, increasing
the number of features produces better outcomes if you are able to see more features, but
ultimately, if you're at about 20 to 30 features and you have about 75 to 100 trees, that's
about as good as you're going to get an accuracy of 45%.


Prediction with Random Forests
Chapter 2

Download 16,12 Mb.

Do'stlaringiz bilan baham:
1   ...   27   28   29   30   31   32   33   34   ...   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