Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-v authored Jun 12, 2022
1 parent 05ac049 commit 92d9a94
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions BLOCK/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@

class get_():
def pridict(self, symptm):
sym = symptm.split(',')
xt = [sym]
prd = gnd.predict(xt)
return enco.inverse_transform(prd)

try:
sym = symptm.split(',')
xt = [sym]
prd = gnd.predict(xt)
return enco.inverse_transform(prd)

except: return None


#print(get_().pridict('1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0'))

0 comments on commit 92d9a94

Please sign in to comment.