-
Notifications
You must be signed in to change notification settings - Fork 166
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
Unable to Stop AB Testing #8
Comments
Have you sent any requests for testing? It looks like an error from:
Are you able to debug this? A/B testing might be a little tricky. |
Yes, I have sent requests via the ab_test.ipnyb. I have 100 results in the http://127.0.0.1:8000/api/v1/mlrequests output. Here is a snippet of the output from there:
I had fixed the issue listed in #6 and I have 3 MLs in my registry. But, I setup the AB test to use the 2 different ones (RandomForest and ExtraTrees). When trying to re-request I also now get errors in the Notebook. After restarting the django server, I still get errors. All three of the ML registry items are still set to ""current_status": "ab_testing"". It seems like it is tying itself in knots. |
Have you stopped the A/B testing? |
As I said, attempting to stop the AB testing throws an error (see OP). I can stop the django server and restart it but that does not seem to make any difference as the testing is still stored some where. I have attempted to just take your git code and create an entirely new project and I still get the error that I cannot stop AB testing.
|
You need to stop A/B testing. Please debug the code to see why it is not stopping. You can try to set some arbitrary values for accuracy to see if it is the place that causes the error. Stopping and restarting the server will not help, all status is saved in the database. You can try to start with a fresh database. |
I had this issue as well. The issue is that the way you filter for the requests in the class StopABTestView in views.py, it doesn't grab anything due to the upper limit specified by the date_now variable. date_now is created based on your computer's timezone, so for me being in eastern time, it was always less than the model created_at time. Here is the output from debugging: date_now : 2020-10-27 16:27:09.636657 so the query below: The way to fix it is to use the same time zone as the settings.py file. Add the following imports in your views.py:
and inside the class StopABTestView make the following changes:
That should be it. |
Thank you @Ih8Coding4fun! Could you please create a PR with a fix? and maybe some tests? |
Absolutely! :) |
The tutorial states:
When I go to this URL I get:
Which makes sense as we set this up as POST request endpoint. If I leave the other fields empty/default on that page that loads and click on the "POST" button I get this error on the page:
And this error in the console where I started the server:
I am not sure what/where to make any updates to this.
The text was updated successfully, but these errors were encountered: