List of usage examples for weka.classifiers.functions.neural NeuralConnection OUTPUT
int OUTPUT
To view the source code for weka.classifiers.functions.neural NeuralConnection OUTPUT.
Click Source Link
From source file:CJWeka.java
License:Open Source License
/** * This will go through all the nodes and check if they are connected * to a pure output unit. If so they will be set to be linear units. * If not they will be set to be sigmoid units. *//*from w w w. j a va 2s. c o m*/ private void setEndsToLinear() { for (int noa = 0; noa < m_neuralNodes.length; noa++) { if ((m_neuralNodes[noa].getType() & NeuralConnection.OUTPUT) == NeuralConnection.OUTPUT) { ((NeuralNode) m_neuralNodes[noa]).setMethod(m_linearUnit); } else { ((NeuralNode) m_neuralNodes[noa]).setMethod(m_sigmoidUnit); } } }
From source file:com.ifmo.recommendersystem.metafeatures.classifierbased.internal.extractors.MultilayerPerceptron.java
License:Open Source License
/** * This will go through all the nodes and check if they are connected to a * pure output unit. If so they will be set to be linear units. If not they * will be set to be sigmoid units./* w w w .j av a2 s . co m*/ */ private void setEndsToLinear() { for (NeuralConnection m_neuralNode : m_neuralNodes) { if ((m_neuralNode.getType() & NeuralConnection.OUTPUT) == NeuralConnection.OUTPUT) { ((NeuralNode) m_neuralNode).setMethod(m_linearUnit); } else { ((NeuralNode) m_neuralNode).setMethod(m_sigmoidUnit); } } }