Functions Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

confusion_matrix( )

A

Compute confusion matrix to evaluate the accuracy of a classification

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

LogisticRegression( )

A

Logistic Regression (aka logit, MaxEnt) classifier

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

get_dummies( )

A

Convert categorical variable into dummy/indicator variables

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

SimpleImputer( )

A
  • a imputation transformer for completing missing values

- 4 strategies: mean, median, most_frequent, constant

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