In the task of classifying two classes, is there any method for choosing the number of positive and negative training instances that will be selected when using the standard package classifier in Python?
logreg = BaggingClassifier(linear_model.LogisticRegression(C=1e3),max_samples=1, max_features=1);
Sometimes the Bagging algorithm selects only positive samples, and the code gives a runtime error.
source
share