Skip to content

Commit

Permalink
Add getForData and getOutputBoolean methods in LearningData
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed Feb 21, 2016
1 parent 5510b43 commit f3bf9ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/net/zomis/machlearn/neural/LearningData.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,13 @@ public double[] getOutputs() {
public double[] getInputs() {
return inputs;
}

public Object getForData() {
return forData;
}

public boolean getOutputBoolean() {
return outputs[0] >= 0.5;
}

}

0 comments on commit f3bf9ec

Please sign in to comment.