Open CBrauer opened 5 years ago
import warnings
with warnings.catch_warnings():
warnings.simplefilter('ignore')
exported_pipeline.fit(X_train, y_train)
Using warnings
module may help.
I'm nervous about suppressing warnings. Should I trust the results anyway? One advice I got from the Web was to normalize the data. Can I simply put “RobustScaler()” as the first line to the pipe?
I think StandardScaler()
or RobustScaler()
may avoid the warning but the pipeline may not work very well on the normalized data since the pipeline was evaluated on the raw data.
标准化未实现,遇到相同的问题,已经解决,标准化一下训练集和测试集就好了。 Standardization is not implemented, encountered the same problem has been solved, standardized training and test sets look just fine.
I encountered the same problem. I used GridSearchCV and gave a random array of possible increased number of iterations and according adjusted my array. Finally at some point it converged at a value.
When I run the following code:
I get:
ConvergenceWarning: Liblinear failed to converge, increase the number of iterations.
Any help in making this warning message go away will be greatly appreciated.
Charles