scikit-learn中的神经网络 (Neural Networks in scikit-learn)
scikit-learn is my first choice when it comes to classical Machine Learning in Python. It has a good set of algorithms, supports sparse datasets, it is fast and has many utility functions, like cross-validation, grid search, etc.
scikit-learn是我在使用Python进行经典机器学习时的首选。 它具有一套很好的算法,支持稀疏数据集,它速度快并且具有许多实用功能,例如交叉验证,网格搜索等。
When it comes to advanced modeling, scikit-learn many times falls shorts. If you need Boosting, Neural Networks or t-SNE, it is better to avoid scikit-learn.
当涉及到高级建模时,scikit-learn很多时候都不够用。 如果您需要Boosting,神经网络或t-SNE, 最好避免使用scikit-learn。
scikit-learn has two basic implementations for Neural Nets. There is MLPClassifier for classification and MLPRegressor for regression. While both have a rich set of arguments, there isn’t an option to customize layers of a Neural Network (beyond setting the number of hidden units for each layer). There is also no GPU support.
scikit-learn有两个神经网络的基本实现。 有用于分类的MLPClassifier和用于回归的MLPRegressor。 尽管两者都具有丰富的参数集,但是无法选择自定义神经网络的层(除了为每个层设置隐藏单元的数量之外)。 也没有GPU支持。