I perform the fitting operation using RandomForestClassifier from sklearn:
clf.fit(X_train,y_train,sample_weight=weight)
I don't know how to change the evaluation metric, which I assume it's simply accuracy here.
I'm asking this because I've seen that with the XGBOOST package you can precisely specify this metric. Example:
clf.fit(X_train, y_train, eval_metric="auc", eval_set=[(X_eval, y_eval)])
So, my question is: could I do the same with RandomForestClassifier from sklearn. I need to base my performance on AUC metric.