Skip to content

Commit

Permalink
updated the setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lyna1404 committed Jul 2, 2024
1 parent 1b25903 commit ff756d8
Show file tree
Hide file tree
Showing 6 changed files with 152 additions and 83 deletions.
Binary file modified README.md
Binary file not shown.
22 changes: 0 additions & 22 deletions convert.py

This file was deleted.

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'Programming Language :: Python :: 3.12',
],
keywords='machine learning, covariate shift, uncertainty, robust models, problematic profiles, AI',
python_requires='>=3.9,<=3.10',
packages=find_packages(exclude=['docs', 'tests']),
python_requires='>=3.9,<=3.12.3',
packages=find_packages(exclude=['docs', 'tests', 'experiments']),
install_requires=requirements
)
40 changes: 20 additions & 20 deletions tutorials/datasets_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -50,7 +50,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -69,7 +69,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -86,7 +86,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -113,7 +113,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -141,7 +141,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -192,7 +192,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -209,7 +209,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -240,7 +240,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -256,7 +256,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -294,7 +294,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -312,7 +312,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -334,7 +334,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -351,7 +351,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -369,7 +369,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 15,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -397,7 +397,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -415,7 +415,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 17,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -477,7 +477,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 18,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -513,7 +513,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -530,7 +530,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 20,
"metadata": {},
"outputs": [
{
Expand Down
38 changes: 31 additions & 7 deletions tutorials/detectron_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -77,14 +77,14 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"running seeds: 100%|██████████| 100/100 [00:09<00:00, 10.27it/s]\n"
"running seeds: 100%|██████████| 100/100 [00:09<00:00, 10.62it/s]\n"
]
},
{
Expand All @@ -98,7 +98,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"running seeds: 100%|██████████| 100/100 [00:11<00:00, 8.51it/s]"
"running seeds: 100%|██████████| 100/100 [00:11<00:00, 8.60it/s]"
]
},
{
Expand Down Expand Up @@ -133,9 +133,33 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 4,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"[{'shift_probability': 0.8111111111111111,\n",
" 'test_statistic': 8.466666666666667,\n",
" 'baseline_mean': 7.4,\n",
" 'baseline_std': 1.2631530214330944,\n",
" 'significance_description': {'no shift': 38.34567901234568,\n",
" 'small': 15.592592592592592,\n",
" 'moderate': 16.34567901234568,\n",
" 'large': 29.716049382716047},\n",
" 'Strategy': 'EnhancedDisagreementStrategy'},\n",
" {'p_value': 0.00016360887668277182,\n",
" 'u_statistic': 3545.0,\n",
" 'z-score': 0.4685784328619402,\n",
" 'shift significance': 'Small',\n",
" 'Strategy': 'MannWhitneyStrategy'}]"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from MED3pa.detectron.strategies import *\n",
"\n",
Expand All @@ -154,7 +178,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down
Loading

0 comments on commit ff756d8

Please sign in to comment.