Skip to content

Commit

Permalink
Get JSON object before reference to result key.
Browse files Browse the repository at this point in the history
  • Loading branch information
dickensc committed Sep 30, 2023
1 parent c62ef71 commit bda59ed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public boolean isEpochComplete() {
String resultString = getResultString(response);
log.debug("Epoch end deep model results for {} : {}", this, resultString);

return response.getBoolean("is_epoch_complete");
return response.getJSONObject("result").getBoolean("is_epoch_complete");
}

public void predictDeepModel(Boolean learning) {
Expand Down Expand Up @@ -240,8 +240,8 @@ public float evalDeepModel() {

String resultString = getResultString(response);
log.debug("Eval deep model result for {} : {}", this, resultString);

return response.getFloat("loss");
return response.getJSONObject("result").getFloat("loss");
}

public void saveDeepModel() {
Expand Down

0 comments on commit bda59ed

Please sign in to comment.