|
31 | 31 | " - an approximation method to extrapolate the parametric solution for new parameters, in this tutorial we will use a radial basis function (RBF) interpolation." |
32 | 32 | ] |
33 | 33 | }, |
| 34 | + { |
| 35 | + "cell_type": "code", |
| 36 | + "execution_count": null, |
| 37 | + "metadata": {}, |
| 38 | + "outputs": [], |
| 39 | + "source": [ |
| 40 | + "!pip install git+https://github.com/mathLab/EZyRB.git\n", |
| 41 | + "!pip install -U datasets huggingface_hub fsspec" |
| 42 | + ] |
| 43 | + }, |
34 | 44 | { |
35 | 45 | "cell_type": "code", |
36 | 46 | "execution_count": null, |
|
40 | 50 | "import numpy as np\n", |
41 | 51 | "import matplotlib.tri as mtri\n", |
42 | 52 | "import matplotlib.pyplot as plt\n", |
43 | | - "!pip install -U datasets huggingface_hub fsspec\n", |
44 | 53 | "from ezyrb import POD, RBF, Database\n", |
45 | 54 | "from ezyrb import ReducedOrderModel as ROM\n", |
46 | 55 | "%matplotlib inline" |
|
69 | 78 | } |
70 | 79 | ], |
71 | 80 | "source": [ |
| 81 | + "from datasets import load_dataset\n", |
72 | 82 | "data_path = \"kshitij-pandey/termal_dataset\"\n", |
73 | 83 | "snapshots_hf = load_dataset(data_path, \"snapshots\", split=\"train\")\n", |
74 | 84 | "param_hf = load_dataset(data_path, \"params\", split=\"train\")\n", |
|
317 | 327 | }, |
318 | 328 | { |
319 | 329 | "cell_type": "code", |
320 | | - "execution_count": 15, |
| 330 | + "execution_count": null, |
321 | 331 | "metadata": { |
322 | 332 | "scrolled": true |
323 | 333 | }, |
|
338 | 348 | } |
339 | 349 | ], |
340 | 350 | "source": [ |
341 | | - "for pt, error in zip(rom.database.parameters, rom.loo_error()):\n", |
| 351 | + "for pt, error in zip(rom.database.parameters_matrix, rom.loo_error()):\n", |
342 | 352 | " print(pt, error)" |
343 | 353 | ] |
344 | 354 | }, |
|
0 commit comments