Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
GauravWaghmare committed Jun 14, 2016
1 parent 493631a commit 23c13cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions applyLDA.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

def find_one(iterable):
for element in iterable:
if element==1:
return i
i = 0
while element!=1:
i += 1
return i

def applyLDA(X, Y):
y = map(find_one, Y)
Expand Down

0 comments on commit 23c13cd

Please sign in to comment.