Hands-On Machine Learning with Scikit-Learn and TensorFlow



Download 26,57 Mb.
Pdf ko'rish
bet136/225
Sana16.03.2022
Hajmi26,57 Mb.
#497859
1   ...   132   133   134   135   136   137   138   139   ...   225
Bog'liq
Hands on Machine Learning with Scikit Learn Keras and TensorFlow

Computational Complexity
The 
LinearSVC
class is based on the 
liblinear
library, which implements an 
optimized
algorithm
 for linear SVMs.
1
 It does not support the kernel trick, but it scales almost
Nonlinear SVM Classification | 165


2
“Sequential Minimal Optimization (SMO),” J. Platt (1998).
linearly with the number of training instances and the number of features: its training
time complexity is roughly 
O
(
m
× 
n
).
The algorithm takes longer if you require a very high precision. This is controlled by
the tolerance hyperparameter 
ϵ
(called 
tol
in Scikit-Learn). In most classification
tasks, the default tolerance is fine.
The 
SVC
class is based on the 
libsvm
library, which implements 
an algorithm
 that sup‐
ports the kernel trick.
2
The training time complexity is usually between 
O
(
m
2
× 
n
)
and 
O
(
m
3
× 
n
). Unfortunately, this means that it gets dreadfully slow when the num‐
ber of training instances gets large (e.g., hundreds of thousands of instances). This
algorithm is perfect for complex but small or medium training sets. However, it scales
well with the number of features, especially with 
sparse features
(i.e., when each
instance has few nonzero features). In this case, the algorithm scales roughly with the
average number of nonzero features per instance. 
Table 5-1
 compares Scikit-Learn’s
SVM classification classes.
Table 5-1. Comparison of Scikit-Learn classes for SVM classification

Download 26,57 Mb.

Do'stlaringiz bilan baham:
1   ...   132   133   134   135   136   137   138   139   ...   225




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