Skip to content

Commit

Permalink
Merge pull request #21 from silentkiller101099/master
Browse files Browse the repository at this point in the history
updated model.py
  • Loading branch information
tanmay-sinha authored Apr 5, 2020
2 parents 6e0b61e + 5c38c96 commit 979bfd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def predict(self,x,type,indexes):
#Input format Lists of Lists [[age,gender,income,distance,workintensity](labor 1),[age,gender,...](labor2),...etc]
#========NOTE====>> All functions contain type as parameter in which you need to pass '+' or '-' depending upon the work will be age prefered positively or negatively
l2={2:[26,0,200,8,9],5:[36,1,1000,3,9],8:[25,0,1000,20,9]}
pre,index= obj.preprocess_input(l2,'-')
pre,index= obj.preprocess_input(l2,'+')
ans= obj.predict(pre,'-',index)
print(ans)

Expand Down

0 comments on commit 979bfd5

Please sign in to comment.