Alfred
unread,Oct 30, 2011, 8:11:24 PM10/30/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FannJ
Hello, I've noticed in the run() method of the Fann.java class the
output is a Float array of size 1, which restricts the output to a
single value. The problem I am having is if I wanted to implement and
Auto-encoder ANN the run method only returns a single valued array.
/**
* Run the ANN on a set of inputs.
*
* @param input
* length == numInputNeurons
* @return the output of the ANN. (length = numOutputNeurons)
*/
public float[] run(float[] input) {
Pointer result = fann_run(ann, input);
/*****************************************************************/
float[] output = result.getFloatArray(0, 1);
/*****************************************************************/
return output;
}
Would it be possible to change this to...
/**
* Run the ANN on a set of inputs.
*
* @param input
* length == numInputNeurons
* @return the output of the ANN. (length = numOutputNeurons)
*/
public float[] run(float[] input) {
Pointer result = fann_run(ann, input);
/
***************************************************************************/
float[] output = result.getFloatArray(0, getNumOutputNeurons());
/
***************************************************************************/
return output;
}