testtransferfunction.java
来自「神经网络源代码,实现了一个BP神经网络,可以完成基于BP的神经网络算法.」· Java 代码 · 共 18 行
JAVA
18 行
package net.openai.ai.nn.transfer;import net.openai.ai.nn.network.*;public class TestTransferFunction extends TransferFunction { // this method will get the input for this neuron and // normalize or otherwise transfer that input. public final void transfer(Neuron neuron) { double input = neuron.getInput(); double transferredInput = 1/(1 + Math.exp(-1.0 * input)); //db("input: " + input); //db("transferred: " + transferredInput); neuron.setOutput(transferredInput); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?