How do I solve the future warning -> % (min_groups, self.n_splits)), Warning) in python?

后端 未结 2 435
野趣味
野趣味 2021-01-04 18:29

When I run mean_acc() method in my program, there are % (min_groups, self.n_splits)), Warning) errors...

def mean_acc():
    models = [
        RandomForestC         


        
2条回答
  •  难免孤独
    2021-01-04 18:59

    If you are using Logistic Regression Model having penalty='l1' as hyper-parameter you can use solver='liblinear'

    My Code sample::

    logistic_regression_model=LogisticRegression(penalty='l1',dual=False,max_iter=110, solver='liblinear')
    

提交回复
热议问题