Skip to content

Commit

Permalink
WIP: updated the app.py with fmlearn class test call
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshmk committed Jun 17, 2020
1 parent 446d426 commit fe73f9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 6 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ def apidescription():
# Run Server
if __name__ == '__main__':
# app.run()

# NOTE: temp work around so that the server doesn't have to started to test
# the FMLearn algo. Need to remove once done with it.
from src.fmlearn import *
print(kmc())
from src.fmlearn import fmlearn

fml = fmlearn()
fml._test()

5 changes: 1 addition & 4 deletions src/fmlearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ def _test(self, print_details=False):
# kneighbors()[0] contains distances to points
# kneighbors()[1] contains indcies of nearest points
print(model.kneighbors(X_test)[1])

print(y_test.to_string(header=False))
print(pd.DataFrame(y_pred).to_string(header=False))

if __name__ == "__main__":
kmc()

0 comments on commit fe73f9d

Please sign in to comment.