I'm trying to design a neural network using Keras with priority on prediction performance, and I cannot get sufficiently high accuracy by further reducing the number of layers and nodes per layer. I have noticed that very large portion of my weights are effectively zero (>95%). Is there a way to prune dense layers in hope of reducing prediction time?

推荐答案

不是专门的方式:(

对于Keras,目前还没有简单(专门)的方法.

https://groups.google.com/forum/#!topic/keras-users/oEecCWayJrM点正在进行讨论.

你可能也对这篇论文感兴趣:https://arxiv.org/pdf/1608.04493v1.pdf.

Python-3.x相关问答推荐

使用Python装载. iso文件

数组列的极点成对求和

被多个\n拆分并保留

将f-字符串放置在f-字符串内

正确的本地react 方式-Django身份验证

我正在try 从 10*3 矩阵中删除随机值并将其变为 10*2 矩阵

Python VS Code 自动导入路径包含 src

在python内的powershell中转义$_

从另一个云函数调用带有仅允许内部流量标志的云函数时出现问题

转换Pandas 数据框 - 添加行

提高时间复杂度的一些建议

如何将元组列表拆分为两个单独的列表?

为什么我不能通过索引获取字典键?

Generic[T] 基类 - 如何从实例中获取 T 的类型?

numpy.ndarray 与 pandas.DataFrame

pysftp vs. Paramiko

如何在 Spyder 控制台中使用变量执行 Python 3.3 脚本?

在 ubuntu 20.04 中安装 libpq-dev 时出现问题

如何正确创建自定义文本编解码器?

同步调用协程