Warning
ConvergenceWarning:
- The max_iter was reached which means the coef_ did not converge
“the coef_ did not converge”, ConvergenceWarning)
迭代次数不够,参数未收敛,设置合理的max_iter使其收敛
FutureWarning:
- The default value of gamma will change from ‘auto’ to ‘scale’ in version 0.22 to account better for unscaled features. Set gamma explicitly to ‘auto’ or ‘scale’ to avoid this warning.
设置gamma即该参数为核函数系数为’auto’
UndefinedMetricWarning:
- F-score is ill-defined and being set to 0.0 in labels with no true samples.
需要显式的指定labels. 参考:F-score is ill-defined and being set to 0.0 in labels with no true samples.
本文讨论了算法训练过程中出现的警告信息,包括收敛警告、未来警告及未定义指标警告,解释了这些警告的原因并提供了相应的解决策略,如调整迭代次数和参数设置。
1万+





