📄 testtransferfunction.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -