Scikit-Learn



Yüklə 1,92 Mb.
Pdf görüntüsü
səhifə49/124
tarix23.02.2023
ölçüsü1,92 Mb.
#101394
1   ...   45   46   47   48   49   50   51   52   ...   124
sklearn

PolynomialFeatures
. This module 
transforms an input data matrix into a new data matrix of given degree.
Parameters 
Followings table consist the parameters used by 
PolynomialFeatures
 
module: 
Parameter 
Description 
degree

integer, 
default = 2 
It represents the degree of the polynomial features. 
interaction_only

Boolean, default = 
false 
By default, it is false but if set as true, the features that are products of 
most degree distinct input features, are produced. Such features are 
called interaction features. 
include_bias

Boolean, default = 
true 
It includes a bias column i.e. the feature in which all polynomials powers 
are zero.
7.
 
Scikit-Learn — Extended Linear Modeling 


Scikit-Learn
55 
order

str in {‘C’, 
‘F’}, default =
 
‘C’
 
This parameter represents the order of output array in the dense case. 
‘F’ order means faster to compute but on the other hand, it may slow 
down subsequent estimators. 
Attributes 
Followings table consist the attributes used by 
PolynomialFeatures
 
module: 
Attributes 
Description 
powers_

array, 
shape 
(n_output_features, n_input_features) 
It shows powers_ [i,j] is the exponent of the jth 
input in the ith output. 
n_input_features _:
 int 
As name suggests, it gives the total number of 
input features. 

Yüklə 1,92 Mb.

Dostları ilə paylaş:
1   ...   45   46   47   48   49   50   51   52   ...   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ə