Beispiel #1
0
    def test_cat5(self):
        tm = asarray([[-15]])

        tmgr = asarray([[-1]])

        tmcat = model(tm, tmgr)
        self.assertEqual(
            tmcat[0][0], 5,
            'Category should be 5. Got %f instead' % (tmcat[0][0]))
Beispiel #2
0
    def test_cat3(self):
        tm = asarray([[-8]])

        tmgr = asarray([[6]])

        tmcat = model(tm, tmgr)
        self.assertEqual(
            tmcat[0][0], 3,
            'Category should be 3. Got %f instead' % (tmcat[0][0]))
 def test_cat5(self):
     tm = asarray(
                  [[-15]]
                  )
     
     tmgr = asarray(
                    [[-1]]
                    )
     
     tmcat = model(tm, tmgr)
     self.assertEqual(tmcat[0][0], 5, 'Category should be 5. Got %f instead' % (tmcat[0][0]))
 def test_cat3(self):
     tm = asarray(
                  [[-8]]
                  )
     
     tmgr = asarray(
                    [[6]]
                    )
     
     tmcat = model(tm, tmgr)
     self.assertEqual(tmcat[0][0], 3, 'Category should be 3. Got %f instead' % (tmcat[0][0]))