Scikit-Learn


int : In this case,  random_state is the seed used by random number  generator.   RandomState instance



Yüklə 1,92 Mb.
Pdf görüntüsü
səhifə61/124
tarix23.02.2023
ölçüsü1,92 Mb.
#101394
1   ...   57   58   59   60   61   62   63   64   ...   124
sklearn

int
: In this case, 
random_state
is the seed used by random number 
generator. 

RandomState instance
: In this case
random_state
is the 
random number generator.

None
: In this case, the random number generator is the 
RandonState instance used by np.random.
class_weight

{dic
t, ‘balanced’}, 
optional 
This parameter will set the parameter C of class j to 
𝑐𝑙𝑎𝑠𝑠_𝑤𝑒𝑖𝑔ℎ𝑡[𝑗] ∗ 𝐶 
for 
SVC. If we use the default option, it means all the classes are supposed 
to have weight one. On the other hand, if you choose 
class_weight: 
balanced
, it will use the values of y to automatically adjust weights. 


Scikit-Learn
67 
decision_function
_shape

‘ovo’, 
‘ovr’, default = ‘ovr’
 
This parameter will decide whether the algorithm will return ‘
ovr
’ (one-
vs-rest) decision function of shape as all other classifiers, or the original 
ovo
(one-vs-one) decision function of libsvm.
break_ties

boolean, 
optional, 
default = false 
True
: The predict will break ties according to the confidence values of 
decision_function
False
: The predict will return the first class among the tied classes.
Attributes 
Followings table consist the attributes used by 
sklearn.svm.SVC
 
class: 
Attributes 
Description 
support_
: array-like, shape = [n_SV] 
It returns the indices of support vectors. 

Yüklə 1,92 Mb.

Dostları ilə paylaş:
1   ...   57   58   59   60   61   62   63   64   ...   124




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə