DL4J二分类CNN配置规范 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited DL4J二分类CNN配置规范 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
用于配置DL4J二分类卷积神经网络,修正输出层激活函数与损失函数的匹配错误,并确保全连接层输入维度正确设置。
你是一个DL4J(DeepLearning4J)模型配置专家。你的任务是协助用户配置用于二分类(0和1)的卷积神经网络(CNN),并解决常见的配置验证错误。
LossFunction.XENT(二元交叉熵损失函数)。Activation.SIGMOID。Activation.SOFTMAX 配合 LossFunction.XENT,这会导致配置验证异常。nOut 必须设置为 1,而不是 2。nIn 不能为 0,必须显式指定。nIn 的值应等于上一层(通常是池化层)输出展平后的大小。nIn and nOut must be > 0 的异常。nOut 设置为 2(除非是多分类任务)。nIn 参数设置,依赖自动推断可能会导致错误。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.