diff --git a/src/main/java/org/dromara/easyai/rnnJumpNerveEntity/SensoryNerve.java b/src/main/java/org/dromara/easyai/rnnJumpNerveEntity/SensoryNerve.java new file mode 100644 index 0000000..55578ca --- /dev/null +++ b/src/main/java/org/dromara/easyai/rnnJumpNerveEntity/SensoryNerve.java @@ -0,0 +1,41 @@ +package org.dromara.easyai.rnnJumpNerveEntity; + + +import org.dromara.easyai.matrixTools.Matrix; +import org.dromara.easyai.i.OutBack; + +import java.util.List; +import java.util.Map; + +/** + * 感知神经元输入层 + * + * @author lidapeng + * @date 9:29 上午 2019/12/21 + */ +public class SensoryNerve extends Nerve { + + public SensoryNerve(int id, int allDepth) throws Exception { + super(id, "SensoryNerve", 0, false, null, 0, 0, + 0, 0, 0, allDepth, false, 0); + depth = 0; + } + + /** + * @param eventId 唯一的事件id + * @param parameter 输入点的数据 + * @param isStudy 是否是学习 (学习状态没有输出) + * @param E 标注 + * @param outBack 回调结果 + */ + public void postMessage(long eventId, float parameter, boolean isStudy, Map E + , OutBack outBack, Matrix rnnMatrix, int[] storeys, int questionLength) throws Exception {//感知神经元输出 + sendMessage(eventId, parameter, isStudy, E, outBack, rnnMatrix, storeys, 0, questionLength); + } + + + @Override + public void connect(int depth, List nerveList) {//连接第一层隐层神经元 + super.connect(depth, nerveList); + } +}