Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when quering for program=stat #7

Open
ediardo opened this issue Jun 22, 2018 · 0 comments
Open

Error when quering for program=stat #7

ediardo opened this issue Jun 22, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ediardo
Copy link
Member

ediardo commented Jun 22, 2018

See the output below:
kommandr-recommendr | 172.18.0.1 - - [22/Jun/2018 18:49:13] "GET /recommendations?program=stat&platformid=4&k=6 HTTP/1.1" 500 -
kommandr-recommendr | Traceback (most recent call last):
kommandr-recommendr | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2309, in call
kommandr-recommendr | return self.wsgi_app(environ, start_response)
kommandr-recommendr | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2295, in wsgi_app
kommandr-recommendr | response = self.handle_exception(e)
kommandr-recommendr | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1741, in handle_exception
kommandr-recommendr | reraise(exc_type, exc_value, tb)
kommandr-recommendr | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2292, in wsgi_app
kommandr-recommendr | response = self.full_dispatch_request()
kommandr-recommendr | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1815, in full_dispatch_request
kommandr-recommendr | rv = self.handle_user_exception(e)
kommandr-recommendr | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1718, in handle_user_exception
kommandr-recommendr | reraise(exc_type, exc_value, tb)
kommandr-recommendr | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1813, in full_dispatch_request
kommandr-recommendr | rv = self.dispatch_request()
kommandr-recommendr | File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1799, in dispatch_request
kommandr-recommendr | return self.view_functionsrule.endpoint
kommandr-recommendr | File "/ml_kmdr/ml_api.py", line 26, in recommend
kommandr-recommendr | program, platformid, recommender.cosine_sim, k)
kommandr-recommendr | File "/ml_kmdr/recommender.py", line 41, in get_recommendations
kommandr-recommendr | sim_scores = sorted(sim_scores, key=lambda x: x[1], reverse=True)
kommandr-recommendr | ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

stat same as above but verbose more similar to linux s stat kommandr com

@ediardo ediardo added the bug Something isn't working label Jun 22, 2018
@ediardo ediardo changed the title Error when query program=stat&plafform=4 Error when quering for program=stat Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants