Skip to content

Commit 687aefc

Browse files
committed
after thursday
1 parent 7f48a65 commit 687aefc

File tree

5 files changed

+50
-42
lines changed

5 files changed

+50
-42
lines changed

week13-Interactive_Data_Analysis_And_Speedups/Performance_Optimization.ipynb

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@
8383
},
8484
{
8585
"cell_type": "code",
86-
"execution_count": 1,
86+
"execution_count": 92,
8787
"metadata": {},
8888
"outputs": [
8989
{
9090
"name": "stdout",
9191
"output_type": "stream",
9292
"text": [
93-
"7.578306792995136 seconds\n"
93+
"7.389281970004959 seconds\n"
9494
]
9595
}
9696
],
@@ -113,14 +113,14 @@
113113
},
114114
{
115115
"cell_type": "code",
116-
"execution_count": 2,
116+
"execution_count": 97,
117117
"metadata": {},
118118
"outputs": [
119119
{
120120
"name": "stdout",
121121
"output_type": "stream",
122122
"text": [
123-
"1.6924289310045424 seconds\n"
123+
"1.6421769209991908 seconds\n"
124124
]
125125
}
126126
],
@@ -168,7 +168,7 @@
168168
},
169169
{
170170
"cell_type": "code",
171-
"execution_count": 3,
171+
"execution_count": 98,
172172
"metadata": {},
173173
"outputs": [],
174174
"source": [
@@ -218,14 +218,14 @@
218218
},
219219
{
220220
"cell_type": "code",
221-
"execution_count": 4,
221+
"execution_count": 99,
222222
"metadata": {},
223223
"outputs": [
224224
{
225225
"name": "stdout",
226226
"output_type": "stream",
227227
"text": [
228-
"Took 36.493831396102905s\n"
228+
"Took 75.16112017631531s\n"
229229
]
230230
}
231231
],
@@ -242,14 +242,14 @@
242242
},
243243
{
244244
"cell_type": "code",
245-
"execution_count": 5,
245+
"execution_count": 102,
246246
"metadata": {},
247247
"outputs": [
248248
{
249249
"name": "stdout",
250250
"output_type": "stream",
251251
"text": [
252-
"Took 22.691282033920288\n"
252+
"Took 28.135594606399536s\n"
253253
]
254254
}
255255
],
@@ -314,14 +314,14 @@
314314
},
315315
{
316316
"cell_type": "code",
317-
"execution_count": 6,
317+
"execution_count": 103,
318318
"metadata": {},
319319
"outputs": [
320320
{
321321
"name": "stdout",
322322
"output_type": "stream",
323323
"text": [
324-
"Took 20.5360369682312s\n"
324+
"Took 28.848686695098877s\n"
325325
]
326326
}
327327
],
@@ -366,7 +366,7 @@
366366
},
367367
{
368368
"cell_type": "code",
369-
"execution_count": 88,
369+
"execution_count": 105,
370370
"metadata": {},
371371
"outputs": [
372372
{
@@ -414,7 +414,7 @@
414414
},
415415
{
416416
"cell_type": "code",
417-
"execution_count": 89,
417+
"execution_count": 107,
418418
"metadata": {},
419419
"outputs": [
420420
{
@@ -453,7 +453,7 @@
453453
},
454454
{
455455
"cell_type": "code",
456-
"execution_count": 90,
456+
"execution_count": 108,
457457
"metadata": {},
458458
"outputs": [
459459
{
@@ -589,7 +589,7 @@
589589
},
590590
{
591591
"cell_type": "code",
592-
"execution_count": 21,
592+
"execution_count": 109,
593593
"metadata": {},
594594
"outputs": [],
595595
"source": [
@@ -607,7 +607,7 @@
607607
},
608608
{
609609
"cell_type": "code",
610-
"execution_count": 10,
610+
"execution_count": 110,
611611
"metadata": {
612612
"collapsed": false,
613613
"pycharm": {
@@ -621,7 +621,7 @@
621621
},
622622
{
623623
"cell_type": "code",
624-
"execution_count": 18,
624+
"execution_count": 117,
625625
"metadata": {
626626
"collapsed": false,
627627
"pycharm": {
@@ -633,8 +633,8 @@
633633
"name": "stdout",
634634
"output_type": "stream",
635635
"text": [
636-
"CPU times: user 942 µs, sys: 0 ns, total: 942 µs\n",
637-
"Wall time: 811 µs\n"
636+
"CPU times: user 556 µs, sys: 262 µs, total: 818 µs\n",
637+
"Wall time: 706 µs\n"
638638
]
639639
},
640640
{
@@ -649,7 +649,7 @@
649649
" [ 9999., 10000., 10001., ..., 10096., 10097., 10098.]])"
650650
]
651651
},
652-
"execution_count": 18,
652+
"execution_count": 117,
653653
"metadata": {},
654654
"output_type": "execute_result"
655655
}
@@ -661,7 +661,7 @@
661661
},
662662
{
663663
"cell_type": "code",
664-
"execution_count": 20,
664+
"execution_count": 118,
665665
"metadata": {
666666
"collapsed": false,
667667
"pycharm": {
@@ -673,8 +673,8 @@
673673
"name": "stdout",
674674
"output_type": "stream",
675675
"text": [
676-
"CPU times: user 71 µs, sys: 4 µs, total: 75 µs\n",
677-
"Wall time: 77.7 µs\n"
676+
"CPU times: user 163 µs, sys: 77 µs, total: 240 µs\n",
677+
"Wall time: 260 µs\n"
678678
]
679679
},
680680
{
@@ -689,7 +689,7 @@
689689
" [ 9999., 10000., 10001., ..., 10096., 10097., 10098.]])"
690690
]
691691
},
692-
"execution_count": 20,
692+
"execution_count": 118,
693693
"metadata": {},
694694
"output_type": "execute_result"
695695
}
@@ -770,7 +770,7 @@
770770
},
771771
{
772772
"cell_type": "code",
773-
"execution_count": 33,
773+
"execution_count": 119,
774774
"metadata": {},
775775
"outputs": [],
776776
"source": [
@@ -786,16 +786,16 @@
786786
},
787787
{
788788
"cell_type": "code",
789-
"execution_count": 79,
789+
"execution_count": 120,
790790
"metadata": {},
791791
"outputs": [
792792
{
793793
"name": "stdout",
794794
"output_type": "stream",
795795
"text": [
796796
"1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 102334155 165580141 267914296 433494437 701408733 1134903170 1836311903 2971215073 4807526976 7778742049 \n",
797-
"CPU times: user 15 ms, sys: 4.2 ms, total: 19.2 ms\n",
798-
"Wall time: 14.5 ms\n"
797+
"CPU times: user 6.67 ms, sys: 5.61 ms, total: 12.3 ms\n",
798+
"Wall time: 7.16 ms\n"
799799
]
800800
}
801801
],
@@ -806,7 +806,7 @@
806806
},
807807
{
808808
"cell_type": "code",
809-
"execution_count": 80,
809+
"execution_count": 121,
810810
"metadata": {},
811811
"outputs": [],
812812
"source": [
@@ -817,16 +817,16 @@
817817
},
818818
{
819819
"cell_type": "code",
820-
"execution_count": 81,
820+
"execution_count": 123,
821821
"metadata": {},
822822
"outputs": [
823823
{
824824
"name": "stdout",
825825
"output_type": "stream",
826826
"text": [
827827
"1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 832040 1346269 2178309 3524578 5702887 9227465 14930352 24157817 39088169 63245986 102334155 165580141 267914296 433494437 701408733 1134903170 1836311903 2971215073 4807526976 7778742049 \n",
828-
"CPU times: user 2.89 ms, sys: 162 µs, total: 3.05 ms\n",
829-
"Wall time: 2.05 ms\n"
828+
"CPU times: user 5.26 ms, sys: 0 ns, total: 5.26 ms\n",
829+
"Wall time: 3.03 ms\n"
830830
]
831831
}
832832
],

week13-Interactive_Data_Analysis_And_Speedups/lecture.ipynb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125043,7 +125043,7 @@
125043125043
},
125044125044
{
125045125045
"cell_type": "code",
125046-
"execution_count": 102,
125046+
"execution_count": 104,
125047125047
"metadata": {},
125048125048
"outputs": [
125049125049
{
@@ -125159,7 +125159,7 @@
125159125159
"4 ford torino USA 3449 1970-01-01 "
125160125160
]
125161125161
},
125162-
"execution_count": 102,
125162+
"execution_count": 104,
125163125163
"metadata": {},
125164125164
"output_type": "execute_result"
125165125165
}
@@ -125189,6 +125189,14 @@
125189125189
"![Voyager 2](voyager2.png)"
125190125190
]
125191125191
},
125192+
{
125193+
"cell_type": "markdown",
125194+
"metadata": {},
125195+
"source": [
125196+
"You can get the Jupyterlab-Extension for Voyager [here](https://github.com/altair-viz/jupyterlab_voyager). This extension can automatically generate Altair-Code from the plots you make there, however unfortunately the export-function of the extension is currently broken (as of June 2019). \n",
125197+
"To use the extension, right-click a `json` or `csv`-file in the view on the left and open it with Voyager."
125198+
]
125199+
},
125192125200
{
125193125201
"cell_type": "code",
125194125202
"execution_count": 5,

week13-Interactive_Data_Analysis_And_Speedups/numba/basics.ipynb

Lines changed: 7 additions & 7 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": 14,
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"cell_type": "code",
32-
"execution_count": 2,
32+
"execution_count": 15,
3333
"metadata": {},
3434
"outputs": [
3535
{
@@ -55,7 +55,7 @@
5555
},
5656
{
5757
"cell_type": "code",
58-
"execution_count": 3,
58+
"execution_count": 16,
5959
"metadata": {},
6060
"outputs": [],
6161
"source": [
@@ -79,7 +79,7 @@
7979
},
8080
{
8181
"cell_type": "code",
82-
"execution_count": 4,
82+
"execution_count": 17,
8383
"metadata": {},
8484
"outputs": [
8585
{
@@ -97,7 +97,7 @@
9797
" [ 99., 100., 101., 102., 103., 104., 105., 106., 107., 108.]])"
9898
]
9999
},
100-
"execution_count": 4,
100+
"execution_count": 17,
101101
"metadata": {},
102102
"output_type": "execute_result"
103103
}
@@ -116,7 +116,7 @@
116116
},
117117
{
118118
"cell_type": "code",
119-
"execution_count": 5,
119+
"execution_count": 18,
120120
"metadata": {},
121121
"outputs": [
122122
{
@@ -134,7 +134,7 @@
134134
" [189., 191., 193., 195., 197., 199., 201., 203., 205., 207.]])"
135135
]
136136
},
137-
"execution_count": 5,
137+
"execution_count": 18,
138138
"metadata": {},
139139
"output_type": "execute_result"
140140
}

week13-Interactive_Data_Analysis_And_Speedups/voyager2_todo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
---
77
-upon selection of a dataset, focus view is empty, related view shows univariate summaries for all fields
8-
---
8+
---
99
usage scenario:
1010
-loading dataset -> familiarize with dataset -> univariate summaries (most cars have even number of cylinders, multiple times the same model name, most of USA, all between 1970-1982, acceleration normally distributed, ..)
1111
-then go to potential associations. -> Drag two quantitative field wildcards to "any" shelves --> each pair of quanitative fields to x and y axes to make gallery of scatterplots. We see a roughly quadratic relationship between horsepower and miles per gallon, we're interested in that, let's bookmark it with a note, then specify button to make it focus

0 commit comments

Comments
 (0)