- PlayerModel.java now returns the full array of output nodes instead of just their activation states. This exposes their strengths.

This commit is contained in:
Marshall
2012-04-29 12:49:08 -04:00
parent 1eebacf963
commit a756aa242d
2 changed files with 4 additions and 14 deletions

View File

@@ -132,19 +132,9 @@ public class PlayerModel implements Serializable {
return outputNode.length;
}
public boolean[] getPrediction(boolean[] input) {
public Node[] getOutputNodes(boolean[] input) {
if (input.length == inputNode.length) {
boolean[] prediction = new boolean[outputNode.length];
for (int i = 0; i < input.length; i++) {
inputNode[i].setStimulation(input[i]);
}
for (int i = 0; i < prediction.length; i++) {
prediction[i] = outputNode[i].axon();
}
return prediction;
return outputNode;
}
return null;