Scikit & Pandas Flashcards

1
Q

sklearn.preprocessing.MinMaxScaler

A

Transform features by scaling each feature to a given range. This estimator scales and translates each feature individually such that it is in the given range on the training set, e.g. between zero and one.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

sklearn.preprocessing.StandardScaler

A

Standardize features by removing the mean and scaling to unit variance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

sklearn.preprocessing.normalize

A

Scale input vectors individually to unit norm (vector length).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

sklearn.preprocessing.LabelEncoder

A

Encode target labels with value between 0 and n_classes-1. This transformer should be used to encode target values, i.e. y, and not the input X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

sklearn.preprocessing.OneHotEncoder

A

Encode categorical features as a one-hot numeric array.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

sklearn.preprocessing.binarize

A

Boolean thresholding of array-like or scipy.sparse matrix.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

pandas.melt

A

Unpivot a DataFrame from wide to long format, optionally leaving identifiers set. pandas.melt(frame, id_vars=None, value_vars=None, var_name=None, value_name=’value’, col_level=None, ignore_index=True)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly