We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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()
The text was updated successfully, but these errors were encountered:
nakuldahiwade
No branches or pull requests
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()
The text was updated successfully, but these errors were encountered: