def test_list_loss_acc(self):
     
     lc = LearningCurve(self.fpath)
     lc.parse()
     loss = lc.list('loss')
     acc = lc.list('accuracy')
     assert_equal(loss.shape, acc.shape)
     assert_false(np.all(loss == acc))
Example #2
0
    def test_list_loss_acc(self):

        lc = LearningCurve(self.fpath)
        lc.parse()
        loss = lc.list('loss')
        acc = lc.list('accuracy')
        assert_equal(loss.shape, acc.shape)
        assert_false(np.all(loss == acc))
 def test_list(self):
     
     lc = LearningCurve(self.fpath)
     lc.parse()
     x = lc.list('NumIters')
     assert_greater(x.size, 0)
     loss = lc.list('loss')
     assert_equal(x.shape, loss.shape)
     acc = lc.list('accuracy')
     assert_equal(x.shape, acc.shape)
Example #4
0
    def test_list(self):

        lc = LearningCurve(self.fpath)
        lc.parse()
        x = lc.list('NumIters')
        assert_greater(x.size, 0)
        loss = lc.list('loss')
        assert_equal(x.shape, loss.shape)
        acc = lc.list('accuracy')
        assert_equal(x.shape, acc.shape)
 def test_list_num_iters(self):
     
     lc = LearningCurve(self.fpath)
     lc.parse()
     x = lc.list('NumIters')
     dx = np.diff(x)
     assert_true(np.all(dx > 0))
Example #6
0
    def test_list_num_iters(self):

        lc = LearningCurve(self.fpath)
        lc.parse()
        x = lc.list('NumIters')
        dx = np.diff(x)
        assert_true(np.all(dx > 0))