-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
28 lines (21 loc) · 835 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import unittest
class TestModels(unittest.TestCase):
def test_testmodel(self):
print("Running TestModel Loading and Prediction")
from score.testmodel import IrisSVCModel
mymodel = IrisSVCModel()
data=dict(sepal_length=1.0,sepal_width=2.0,petal_length=3.0,petal_width=4.0)
classification=mymodel.predict(data)
def test_dummymodel(self):
from score.dummy import DummyModel
print("Dummy")
mymodel = DummyModel()
print(mymodel.predict('asljks'))
def test_modifiedtopicmodel(self):
print("Running empty Modified Topic Model - Sure pass")
pass #Wei Deng to insert
def test_bertmodel(self):
print("Running empty Bert Model - Sure pass")
pass #Kah Siong to insert
if __name__ == '__main__':
unittest.main()