python - MLP分类器函数(scikit_learn)中的不同隐藏层是否可以有不同的激活函数?
问题描述
在下面的代码中:
mlp = MLPClassifier(hidden_layer_sizes=(450,200,100), activation='relu', alpha = 0.01, max_iter=200, solver='adam',random_state=1, early_stopping = True, verbose=True, shuffle = True)
激活函数relu
用于网络中的所有隐藏层。前两个隐藏层有可能,relu
最后一层有softmax吗?
解决方案
推荐阅读
- c# - 无法安装或卸载 Visual Studio 2017/2019
- python - matplotlib.pyplot.legend() 返回空
- git - 恢复您提交但未推送的本地 git 存储库
- typescript - 替换相同的内联逻辑时,打字稿排除不起作用
- spring - 每个 http 请求清除 Spring Cache
- javascript - 无法理解此代码片段(创建一个字母对象并在提供的字符串中返回其中多少个)
- php - 警告:无法修改标头信息 - 标头已发送(输出开始于 /home/aphonpyr/public_html/index.php:64
- python - 如何在 python 中优化正则表达式搜索?
- discord.js - TypeError:无法读取 Object.execute 处未定义的属性“缓存” - 需要修复
- django - 无法使用 get_context 获取博客列表以正常工作