From fa0443deb27f2a8c2d196155f05155c04d5089bb Mon Sep 17 00:00:00 2001 From: inter Date: Thu, 4 Sep 2025 14:09:26 +0800 Subject: [PATCH] Add File --- .../java/org/dromara/easyai/i/OutBack.java | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/main/java/org/dromara/easyai/i/OutBack.java diff --git a/src/main/java/org/dromara/easyai/i/OutBack.java b/src/main/java/org/dromara/easyai/i/OutBack.java new file mode 100644 index 0000000..3b02bf3 --- /dev/null +++ b/src/main/java/org/dromara/easyai/i/OutBack.java @@ -0,0 +1,64 @@ +package org.dromara.easyai.i; + + +import org.dromara.easyai.entity.ThreeChannelMatrix; +import org.dromara.easyai.matrixTools.Matrix; + +import java.util.List; + +/** + * 将神经元的输出回调 + * + * @author lidapeng + * @date 1:07 下午 2019/12/24 + */ +public interface OutBack { + /** + * 回调 + * + * @param out 输出数值 + * @param id 输出神经元ID + * @param eventId 事件ID + */ + void getBack(float out, int id, long eventId); + + /** + * 多分类回调 + * + * @param eventId 事件ID + * @param softMax 概率集合 + */ + void getSoftMaxBack(long eventId, List softMax); + + /** + * 回调 + * + * @param word 输出语句 + * @param eventId 事件ID + */ + void backWord(String word, long eventId); + + /** + * 特征矩阵回调 + * + * @param matrix 输出矩阵 + * @param eventId 事件ID + * @param id 通道id + */ + void getBackMatrix(Matrix matrix, int id, long eventId); + + /** + * 回调词向量 + * + * @param id 当前词向量id + */ + void getWordVector(int id, float w); + + /** + * 特征图像回调 + * + * @param picture 输出的图像 + */ + void getBackThreeChannelMatrix(ThreeChannelMatrix picture); + +}