Skip to content

Commit

Permalink
Added new plotter test
Browse files Browse the repository at this point in the history
  • Loading branch information
mghosh00 committed Apr 14, 2024
1 parent f3c358d commit a6a8059
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,14 @@ void plotLossNoMocks() throws IOException {
assertNull(Plotter.getChart());
assertNull(Plotter.getWrappedChart());
}

@Test
void plotLossNewDir() throws IOException {
Plotter.setDirName(dirName + "losses/");
Plotter.plotLoss(lossDf, "");
assertNull(Plotter.getChart());
assertNull(Plotter.getWrappedChart());
Files.deleteIfExists(Path.of(dirName + "losses/losses.png"));
Files.deleteIfExists(Path.of(dirName + "losses"));
}
}
Binary file modified javaNeuralNetwork/src/test/resources/util/plots/losses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a6a8059

Please sign in to comment.