Skip to content

Commit d071c9f

Browse files
MarcusMNoackclaude
andcommitted
Refresh example notebook outputs
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent b35268d commit d071c9f

7 files changed

Lines changed: 1036 additions & 591 deletions

examples/1dSingleTaskAcqFuncTest.ipynb

Lines changed: 489 additions & 192 deletions
Large diffs are not rendered by default.

examples/GPOptimizer_Minimal.ipynb

Lines changed: 67 additions & 18 deletions
Large diffs are not rendered by default.

examples/GPOptimizer_MultiTaskTest.ipynb

Lines changed: 81 additions & 96 deletions
Large diffs are not rendered by default.

examples/GPOptimizer_NonEuclideanInputSpaces.ipynb

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
},
1414
{
1515
"cell_type": "code",
16-
"execution_count": 1,
16+
"execution_count": 2,
1717
"id": "61c3f3bd",
1818
"metadata": {},
1919
"outputs": [],
2020
"source": [
2121
"# Install the newest version of gpcam\n",
22-
"#!pip install gpcam==8.3.5"
22+
"#!pip install gpcam==8.4.0"
2323
]
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": 2,
27+
"execution_count": 3,
2828
"id": "b5399565",
2929
"metadata": {},
3030
"outputs": [],
@@ -39,25 +39,25 @@
3939
},
4040
{
4141
"cell_type": "code",
42-
"execution_count": 3,
42+
"execution_count": 4,
4343
"id": "b91e69d3",
4444
"metadata": {},
4545
"outputs": [
4646
{
4747
"name": "stderr",
4848
"output_type": "stream",
4949
"text": [
50-
"/home/marcus/VirtualEnvironments/gpcam_dev/lib/python3.11/site-packages/fvgp/gp.py:310: UserWarning: No noise function or measurement noise provided. Noise variances will be set to (0.01 * mean(|y_data|))^2.\n",
50+
"/home/marcus/Coding/fvGP/fvgp/gp.py:406: UserWarning: No noise function or measurement noise provided. Noise variances will be set to (0.01 * mean(|y_data|))^2.\n",
5151
" self.likelihood = GPlikelihood(self.data,\n"
5252
]
5353
},
5454
{
5555
"name": "stdout",
5656
"output_type": "stream",
5757
"text": [
58-
"hyperparameters: [49.31361296 26.90240104]\n",
59-
"prediction : 2.0046357760678624\n",
60-
"uncertainty: [0.97016186]\n"
58+
"hyperparameters: [38.94724232 36.39665454]\n",
59+
"prediction : 1.9934264485792332\n",
60+
"uncertainty: [0.64431805]\n"
6161
]
6262
}
6363
],
@@ -105,7 +105,7 @@
105105
},
106106
{
107107
"cell_type": "code",
108-
"execution_count": 4,
108+
"execution_count": 5,
109109
"id": "a5644ec5",
110110
"metadata": {},
111111
"outputs": [
@@ -116,11 +116,11 @@
116116
" ['who'],\n",
117117
" ['be'],\n",
118118
" ['it']], dtype='<U5'),\n",
119-
" 'f_a(x)': array([0.82710967, 0.8218738 , 0.65115158, 0.43813236]),\n",
119+
" 'f_a(x)': array([0.55032781, 0.54008504, 0.42359206, 0.29020021]),\n",
120120
" 'opt_obj': None}"
121121
]
122122
},
123-
"execution_count": 4,
123+
"execution_count": 5,
124124
"metadata": {},
125125
"output_type": "execute_result"
126126
}
@@ -140,7 +140,7 @@
140140
},
141141
{
142142
"cell_type": "code",
143-
"execution_count": 5,
143+
"execution_count": 6,
144144
"id": "f78b2e6b-68be-47f0-99db-82382eeb7944",
145145
"metadata": {},
146146
"outputs": [
@@ -166,7 +166,7 @@
166166
},
167167
{
168168
"cell_type": "code",
169-
"execution_count": 6,
169+
"execution_count": 7,
170170
"id": "401a8d86-6205-4944-b9ed-e0397172b03f",
171171
"metadata": {},
172172
"outputs": [
@@ -197,7 +197,7 @@
197197
},
198198
{
199199
"cell_type": "code",
200-
"execution_count": 7,
200+
"execution_count": 8,
201201
"id": "19bccdab-1444-4dc4-bb44-dd88340f541e",
202202
"metadata": {},
203203
"outputs": [],
@@ -235,7 +235,7 @@
235235
},
236236
{
237237
"cell_type": "code",
238-
"execution_count": 8,
238+
"execution_count": 9,
239239
"id": "a8b3c342-6829-42f7-bf9f-90cf3d9bf069",
240240
"metadata": {},
241241
"outputs": [
@@ -249,10 +249,10 @@
249249
{
250250
"data": {
251251
"text/plain": [
252-
"array([ 2.54827723, 15.05228436])"
252+
"array([0.12880405, 9.12339126])"
253253
]
254254
},
255-
"execution_count": 8,
255+
"execution_count": 9,
256256
"metadata": {},
257257
"output_type": "execute_result"
258258
}
@@ -261,7 +261,7 @@
261261
"my_gp2 = fvGPOptimizer(x_data,y_data,init_hyperparameters=np.ones((2)),\n",
262262
" kernel_function=kernel\n",
263263
" )\n",
264-
"print(\"Global Training in progress\")\n",
264+
"print(\"MCMC Training in progress\")\n",
265265
"#use the next two lines if kernel `mkernel` is used\n",
266266
"#if not a default deep kernel will be used that will set initi hyperparameters and bounds\n",
267267
"#hps_bounds = np.array([[0.001,10000.],[1.,1000.]])\n",
@@ -273,18 +273,18 @@
273273
},
274274
{
275275
"cell_type": "code",
276-
"execution_count": 9,
276+
"execution_count": 10,
277277
"id": "b94b089a-332b-4c31-9535-2adb8ecd6f7a",
278278
"metadata": {},
279279
"outputs": [
280280
{
281281
"data": {
282282
"text/plain": [
283283
"{'x': ['dwed', 'dwe'],\n",
284-
" 'm(x)': array([[0.25466475, 0.25466475, 0.25466475, 0.25466475],\n",
285-
" [0.29003775, 0.29003775, 0.29003775, 0.29003775]]),\n",
286-
" 'm(x)_flat': array([0.25466475, 0.29003775, 0.25466475, 0.29003775, 0.25466475,\n",
287-
" 0.29003775, 0.25466475, 0.29003775]),\n",
284+
" 'm(x)': array([[0.53874768, 0.53874768, 0.53874768, 0.53874768],\n",
285+
" [0.57401672, 0.57401672, 0.57401672, 0.57401672]]),\n",
286+
" 'm(x)_flat': array([0.53874768, 0.57401672, 0.53874768, 0.57401672, 0.53874768,\n",
287+
" 0.57401672, 0.53874768, 0.57401672]),\n",
288288
" 'x_pred': [['dwed', np.int64(0)],\n",
289289
" ['dwe', np.int64(0)],\n",
290290
" ['dwed', np.int64(1)],\n",
@@ -295,7 +295,7 @@
295295
" ['dwe', np.int64(3)]]}"
296296
]
297297
},
298-
"execution_count": 9,
298+
"execution_count": 10,
299299
"metadata": {},
300300
"output_type": "execute_result"
301301
}
@@ -307,7 +307,7 @@
307307
},
308308
{
309309
"cell_type": "code",
310-
"execution_count": 10,
310+
"execution_count": 11,
311311
"id": "0ca94f3f-452f-4173-a37b-22fae5ed9f19",
312312
"metadata": {},
313313
"outputs": [
@@ -318,11 +318,11 @@
318318
" ['who'],\n",
319319
" ['it'],\n",
320320
" ['be']], dtype='<U5'),\n",
321-
" 'f_a(x)': array([1.46161733, 0.72355182, 0.72355182, 0.28535747]),\n",
321+
" 'f_a(x)': array([0.17396565, 0.0962287 , 0.0962287 , 0.05897216]),\n",
322322
" 'opt_obj': None}"
323323
]
324324
},
325-
"execution_count": 10,
325+
"execution_count": 11,
326326
"metadata": {},
327327
"output_type": "execute_result"
328328
}
@@ -364,7 +364,7 @@
364364
"name": "python",
365365
"nbconvert_exporter": "python",
366366
"pygments_lexer": "ipython3",
367-
"version": "3.11.14"
367+
"version": "3.11.15"
368368
}
369369
},
370370
"nbformat": 4,

examples/GPOptimizer_Optimization.ipynb

Lines changed: 15 additions & 7 deletions
Large diffs are not rendered by default.

examples/GPOptimizer_SingleTaskTest.ipynb

Lines changed: 331 additions & 212 deletions
Large diffs are not rendered by default.

examples/GPOptimizer_gp2ScaleTest.ipynb

Lines changed: 25 additions & 38 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)