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

prediction of an algorithm when no model/dataset exists (cold start problem) #18

Closed
mukeshmk opened this issue Jul 20, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mukeshmk
Copy link
Owner

prediction of an algorithm when no model/dataset exists or the cold start problem is a huge feature/issue on its own, for now, to prevent this from causing the below run time issue:

Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/app/.heroku/python/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/app/.heroku/python/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/app/src/api.py", line 102, in predict_fmlearn
tt_encoder = fml.get_encoders()[utils.TARGET_TYPE]
KeyError: 'Target Type'

Temporary Fix:
add a fail-safe to check for empty database and return a JSON object indicating no "Model has been Trained!"?

Proper Fix:
TODO: think of a way to solve the cold start problem?

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

1 participant