Use class weights for imbalanced data (link):

Untitled

Each algorithm has a standard score which will be taken automatically. For example logistic regression takes accuracy. You can easily look that up.

With GridSearchCV you can easily find the best parameters (link). MOre about sample weight can be found in this video:

Untitled

Darstellung als Dataframe:

Untitled

Wir wollen weitere Metriken (precission & recall) ebenfalls über GridSearchCV erhalten. Außerdem wollen wir die Ergebnisse für die Test- und Training-Daten ausgegeben bekommen (link).

Untitled

Plot results for test set and train set (link). They might look very different!!!:

Untitled

Add a custom metrics to your GridSearchCV. For example a metric which balances Racell and Precession (link and link and link) —> make_scorer:

Untitled