Projects Flashcards

1
Q

What does make_scorer do in sklearn?

P 342

A

To use our custom performance metric, we can
use the make scorer() scikit-learn function that takes the name of our custom function and creates a metric that we can use to evaluate models with the scikit-learn API.

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

SMOTE and ENN both work better when the input data is scaled beforehand. True/False why?

P 374

A

True, This is because both techniques involve using the nearest neighbor algorithm internally and this algorithm is sensitive to input variables with different scales.

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

Kde plots are somewhat like smoothed histograms, what does the difference between the shapes of kde plots of a variable for two classes mean?

P 433

A

Yes. We can see that the distributions for many variables do differ for the two class labels, suggesting that some reasonable discrimination between the classes will be feasible

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