Python Artificial Intelligence Projects for Beginners


[ 47 ] Text classification



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

[ 47 ]
Text classification
To find the answer to our question, we will consider the famous iris flower dataset as an
example dataset. The following image is of iris versicolor species. To identify the species,
we need some more information other than just an image of the species, such as
the flower's 
Petal length

Petal width

Sepal length
, and 
Sepal width 
would help us
identify the image better:
The dataset not only contains examples of versicolor but also contains examples of setosa
and virginica as well. Every example in the dataset contains these four measurements. The
dataset contains around 150 examples, with 50 examples of each species. We can use a
decision tree or any other model to predict the species of a new flower, if provided with the
same four measurements. As we know same species will have almost similar
measurements. Since similarity has different definition all together but here we consider
similarity as the closeness on a graph, if we consider each point is a flower. The following
graph is a comparison between sepal width versus petal width:


Applications for Comment Classification
Chapter 3
[ 48 ]
If we had no way of measuring similarity, if, say, every flower had different measurements,
then there'd be no way to use machine learning to build a classifier.
As we are aware of the fact that flowers of same species have same measurement and that
helps us to distinguish different species. Consider what if every flower had different
measurement, it would of no use to build classifier using machine learning to identify
images of species.

Download 16,12 Mb.

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