neuralelement.java
来自「一个纯java写的神经网络源代码」· Java 代码 · 共 46 行
JAVA
46 行
package org.joone.engine;import java.util.TreeSet;/** This interface represents a generic element of a neural network * @author: Paolo Marrone */public interface NeuralElement { public boolean isEnabled(); public void setEnabled(boolean enabled); /** Sets the Monitor object of the output synapse * @param newMonitor org.joone.engine.Monitor */ public void setMonitor(Monitor newMonitor); /** Returns the monitor * @return org.joone.engine.Monitor */ public Monitor getMonitor(); /** Returns the name of the output synapse * @return String */ public String getName(); /** Sets the name of the output synapse * @param name String */ public void setName(java.lang.String name); public void init(); /** * Validation checks for invalid parameter values, misconfiguration, etc. * All network components should include a check method that firstly calls its ancestor check method and * adds these to any check messages it produces. This allows check messages to be collected from all levels * of a component to be returned to the caller's check method. Using a TreeSet ensures that * duplicate messages are removed. Check messages should be produced using the generateValidationErrorMessage * method of the NetChecker class. * * @return validation errors. */ public TreeSet check();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?