1. 分类器
1.1 逻辑回归(Increase the number of iterations (max_iter) or scale the data as shown in)
Logistic regression在sklearn中有不同的实现方式,即solver{‘newton-cg’, ‘lbfgs’, ‘liblinear’, ‘sag’, ‘saga’}, default=’lbfgs’,其中当solver为‘sag’或者‘liblinear’时,需要指定随机种子(The seed of the pseudo random number generator to use when shuffling the data)。
Changed in version 0.22: The default solver changed from ‘liblinear’ to ‘lbfgs’ in 0.22.
所以如果scikit-learn版本低于0.22,使用默认参数,则就需要指定随机种子。
但如果使用逻辑回归,出现下列警告Increase the number of iterations (max_iter) or scale the data as shown in