Skip to content

Commit 8cd004b

Browse files
committed
Update validation.ipynb
1 parent fa3b006 commit 8cd004b

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

examples/validation.ipynb

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 1,
14+
"execution_count": 21,
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
@@ -22,17 +22,19 @@
2222
"\n",
2323
"# Import tailestim\n",
2424
"import tailestim\n",
25+
"import os\n",
2526
"\n",
26-
"# Import tail-estimation\n",
27-
"# Load the module directly from the file\n",
28-
"spec = importlib.util.spec_from_file_location(\"tail_estimation\", \"tail-estimation-private/Python3/tail-estimation.py\")\n",
27+
"# Import tail-estimation.py\n",
28+
"# You need to clone it at the same level as this repository\n",
29+
"# Use: git clone https://github.com/ivanvoitalov/tail-estimation\n",
30+
"spec = importlib.util.spec_from_file_location(\"tail_estimation\", os.path.abspath(\"../tail-estimation/Python3/tail-estimation.py\"))\n",
2931
"tail_estimation = importlib.util.module_from_spec(spec)\n",
3032
"spec.loader.exec_module(tail_estimation)"
3133
]
3234
},
3335
{
3436
"cell_type": "code",
35-
"execution_count": 2,
37+
"execution_count": 22,
3638
"metadata": {},
3739
"outputs": [],
3840
"source": [
@@ -55,7 +57,7 @@
5557
},
5658
{
5759
"cell_type": "code",
58-
"execution_count": 3,
60+
"execution_count": 32,
5961
"metadata": {},
6062
"outputs": [
6163
{
@@ -130,7 +132,7 @@
130132
},
131133
{
132134
"cell_type": "code",
133-
"execution_count": 4,
135+
"execution_count": 33,
134136
"metadata": {},
135137
"outputs": [
136138
{
@@ -192,7 +194,7 @@
192194
},
193195
{
194196
"cell_type": "code",
195-
"execution_count": 5,
197+
"execution_count": 34,
196198
"metadata": {},
197199
"outputs": [
198200
{
@@ -256,7 +258,7 @@
256258
},
257259
{
258260
"cell_type": "code",
259-
"execution_count": 6,
261+
"execution_count": 35,
260262
"metadata": {},
261263
"outputs": [
262264
{
@@ -305,7 +307,7 @@
305307
},
306308
{
307309
"cell_type": "code",
308-
"execution_count": 7,
310+
"execution_count": 36,
309311
"metadata": {},
310312
"outputs": [
311313
{
@@ -359,7 +361,7 @@
359361
},
360362
{
361363
"cell_type": "code",
362-
"execution_count": 8,
364+
"execution_count": 37,
363365
"metadata": {},
364366
"outputs": [
365367
{
@@ -443,7 +445,7 @@
443445
},
444446
{
445447
"cell_type": "code",
446-
"execution_count": 9,
448+
"execution_count": 38,
447449
"metadata": {},
448450
"outputs": [
449451
{
@@ -663,7 +665,7 @@
663665
},
664666
{
665667
"cell_type": "code",
666-
"execution_count": 10,
668+
"execution_count": 39,
667669
"metadata": {},
668670
"outputs": [
669671
{

0 commit comments

Comments
 (0)