Skip to content

Commit

Permalink
Merge pull request #29 from sparks-baird/ramseys_branch
Browse files Browse the repository at this point in the history
running with dummy=False
  • Loading branch information
sgbaird authored Mar 3, 2023
2 parents 0899a60 + 50c3b0a commit 728f411
Show file tree
Hide file tree
Showing 2 changed files with 321 additions and 36 deletions.
72 changes: 36 additions & 36 deletions notebooks/particle_packing/1.2-ri-surrogate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -36,7 +36,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -67,7 +67,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -92,7 +92,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -137,7 +137,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -174,7 +174,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -188,14 +188,14 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 16,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"MAE for spf_fba_isna_prob: 0.1015 +/- 0.0169\n"
"MAE for spf_fba_isna_prob: 0.0430 +/- 0.0003\n"
]
}
],
Expand Down Expand Up @@ -228,18 +228,18 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 17,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0: [0.05908556 0.36824183 0.06840663 0.12804622 0.3107619 ]\n",
"1: [0.0494958 0.39304696 0.03669553 0.02937675 0.2591664 ]\n",
"2: [0.07344444 0.38519824 0.05323016 0.05344444 0.3379304 ]\n",
"3: [0.01448739 0.12500866 0.02310823 0.01679552 0.30702381]\n",
"4: [0.08705602 0.37276912 0.1100177 0.08304945 0.38245743]\n"
"0: [0.00382576 0.3872015 0.02611088 0.07780826 0.33870147]\n",
"1: [0.00738889 0.38749496 0.02029697 0.04099549 0.28201631]\n",
"2: [0.00282479 0.38871916 0.02881385 0.18538185 0.36331197]\n",
"3: [0.03226923 0.40016508 0.07084854 0.08603914 0.38663271]\n",
"4: [0.0085 0.30199426 0.0488271 0.06037933 0.39302256]\n"
]
}
],
Expand All @@ -260,14 +260,14 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 18,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"MAE for spf_ls_isna_prob: 0.1751 +/- 0.0283\n"
"MAE for spf_ls_isna_prob: 0.0833 +/- 0.0008\n"
]
}
],
Expand Down Expand Up @@ -295,14 +295,14 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 19,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"MAE for sobol_reg_fba: 0.0102 +/- 0.0023\n"
"MAE for sobol_reg_fba: 0.0042 +/- 0.0000\n"
]
}
],
Expand Down Expand Up @@ -336,14 +336,14 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 20,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"MAE for sobol_reg_ls: 0.0236 +/- 0.0037\n"
"MAE for sobol_reg_ls: 0.0081 +/- 0.0001\n"
]
}
],
Expand Down Expand Up @@ -376,14 +376,14 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 21,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"MAE for sobol_reg_fba_time_s: 0.0338 +/- 0.0126\n"
"MAE for sobol_reg_fba_time_s: 0.0366 +/- 0.0006\n"
]
}
],
Expand Down Expand Up @@ -422,14 +422,14 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 22,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"MAE for sobol_reg_ls_time_s: 2.9251 +/- 1.1571\n"
"MAE for sobol_reg_ls_time_s: 44.0490 +/- 2.2337\n"
]
}
],
Expand Down Expand Up @@ -462,7 +462,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -481,7 +481,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 24,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -515,7 +515,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 25,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -546,28 +546,28 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 26,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"X1 spf shape: (100, 11), Y1 spf shape: (100,)\n",
"X1 spf shape: (100, 11), Y1 spf shape: (100,)\n",
"X2 sr shape: (78, 12), Y2 sr shape: (78,)\n",
"X2 sr shape: (68, 12), Y2 sr shape: (68,)\n",
"X2 sr shape: (100, 12), Y2 sr shape: (100,)\n",
"X2 sr shape: (100, 12), Y2 sr shape: (100,)\n"
"X1 spf shape: (54784, 11), Y1 spf shape: (54784,)\n",
"X1 spf shape: (54784, 11), Y1 spf shape: (54784,)\n",
"X2 sr shape: (472857, 12), Y2 sr shape: (472857,)\n",
"X2 sr shape: (425513, 12), Y2 sr shape: (425513,)\n",
"X2 sr shape: (494498, 12), Y2 sr shape: (494498,)\n",
"X2 sr shape: (494498, 12), Y2 sr shape: (494498,)\n"
]
},
{
"data": {
"text/plain": [
"['..\\\\..\\\\models\\\\particle_packing\\\\dummy\\\\surrogate_models.pkl']"
"['..\\\\..\\\\models\\\\particle_packing\\\\surrogate_models.pkl']"
]
},
"execution_count": 18,
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
Loading

0 comments on commit 728f411

Please sign in to comment.