擅长:python、mysql、java
<p>在多项式朴素Bayes中,<code>alpha</code>参数被称为<a href="https://en.wikipedia.org/wiki/Hyperparameter_optimization" rel="noreferrer"><em>hyperparameter</em></a>;即控制模型本身形式的参数。在大多数情况下,确定超参数最佳值的最佳方法是通过对可能的参数值进行<a href="http://scikit-learn.org/stable/modules/grid_search.html" rel="noreferrer">grid search</a>运算,使用<a href="http://scikit-learn.org/stable/modules/cross_validation.html" rel="noreferrer">cross validation</a>来评估模型在每个值上对数据的性能。阅读以上链接了解如何使用scikit learn进行此操作的详细信息。</p>