Skip to content

Commit

Permalink
clear stopabtest migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Vera committed Jan 29, 2023
1 parent 112e283 commit 5cb1ea7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 39 deletions.
15 changes: 14 additions & 1 deletion backend/server/apps/endpoints/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.0.6 on 2023-01-24 05:05
# Generated by Django 4.1 on 2023-01-29 20:24

from django.db import migrations, models
import django.db.models.deletion
Expand Down Expand Up @@ -57,4 +57,17 @@ class Migration(migrations.Migration):
('parent_mlalgorithm', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='status', to='endpoints.mlalgorithm')),
],
),
migrations.CreateModel(
name='ABTest',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=10000)),
('created_by', models.CharField(max_length=128)),
('created_at', models.DateTimeField(auto_now_add=True)),
('ended_at', models.DateTimeField(blank=True, null=True)),
('summary', models.CharField(blank=True, max_length=10000, null=True)),
('parent_mlalgorithm_1', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parent_mlalgorithm_1', to='endpoints.mlalgorithm')),
('parent_mlalgorithm_2', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parent_mlalgorithm_2', to='endpoints.mlalgorithm')),
],
),
]
27 changes: 0 additions & 27 deletions backend/server/apps/endpoints/migrations/0002_abtest.py

This file was deleted.

22 changes: 11 additions & 11 deletions research/ab_test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"datetime.datetime(2023, 1, 26, 5, 29, 30, 361749, tzinfo=datetime.timezone.utc)"
"datetime.datetime(2023, 1, 29, 2, 15, 47, 801258, tzinfo=datetime.timezone.utc)"
]
},
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -31,7 +31,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -190,7 +190,7 @@
"4 0 0 40 Cuba <=50K "
]
},
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -208,7 +208,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -218,11 +218,11 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"for i in range(10):\n",
"for i in range(100):\n",
" input_data = dict(X_test.iloc[i])\n",
" target = y_test.iloc[i]\n",
" r = requests.post(\"http://127.0.0.1:8000/api/v1/income_classifier/predict?status=ab_testing\", input_data)\n",
Expand All @@ -234,7 +234,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9.7 ('phantom')",
"display_name": "phantom",
"language": "python",
"name": "python3"
},
Expand All @@ -248,12 +248,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.10.9"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "bac87f9716e8c14777c73d4b601032f5cee8ca42e42b1b405e1bbbcd1b6522cd"
"hash": "c990137c290a9e9bf36e2f0705f1ecac21f769fe15931f363ae2c6f41cd9e6eb"
}
}
},
Expand Down

0 comments on commit 5cb1ea7

Please sign in to comment.