Skip to content

Commit 3da01b5

Browse files
committed
updated notebooks
1 parent 00e2706 commit 3da01b5

10 files changed

+465
-288
lines changed

Diff for: 1. Generative AI .ipynb

+40-29
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,19 @@
1717
},
1818
{
1919
"cell_type": "code",
20-
"execution_count": 1,
20+
"execution_count": 3,
2121
"id": "377bf3fa",
2222
"metadata": {},
23-
"outputs": [],
23+
"outputs": [
24+
{
25+
"name": "stdout",
26+
"output_type": "stream",
27+
"text": [
28+
"The watermark extension is already loaded. To reload it, use:\n",
29+
" %reload_ext watermark\n"
30+
]
31+
}
32+
],
2433
"source": [
2534
"from collections import Counter, defaultdict\n",
2635
"from pprint import pprint\n",
@@ -32,6 +41,7 @@
3241
"import matplotlib\n",
3342
"import matplotlib.pyplot as plt \n",
3443
"\n",
44+
"import openai\n",
3545
"from openai import OpenAI\n",
3646
"\n",
3747
"import tiktoken\n",
@@ -63,7 +73,7 @@
6373
},
6474
{
6575
"cell_type": "code",
66-
"execution_count": 2,
76+
"execution_count": 4,
6777
"id": "4acf22b4",
6878
"metadata": {},
6979
"outputs": [
@@ -83,15 +93,16 @@
8393
"CPU cores : 16\n",
8494
"Architecture: 64bit\n",
8595
"\n",
86-
"Git hash: 5217868ae783ab0315a9d79f2e1ac0fb25095003\n",
96+
"Git hash: 00e27069c4e567040e2ae5b1b5259eb0a02807ab\n",
8797
"\n",
88-
"matplotlib: 3.8.0\n",
8998
"numpy : 1.26.4\n",
90-
"nltk : 3.8.1\n",
91-
"pandas : 2.1.4\n",
9299
"tiktoken : 0.6.0\n",
93-
"tqdm : 4.66.2\n",
94100
"watermark : 2.4.3\n",
101+
"pandas : 2.1.4\n",
102+
"openai : 1.20.0\n",
103+
"matplotlib: 3.8.0\n",
104+
"tqdm : 4.66.2\n",
105+
"nltk : 3.8.1\n",
95106
"\n"
96107
]
97108
}
@@ -110,7 +121,7 @@
110121
},
111122
{
112123
"cell_type": "code",
113-
"execution_count": 3,
124+
"execution_count": 5,
114125
"id": "a1df2404",
115126
"metadata": {},
116127
"outputs": [],
@@ -166,7 +177,7 @@
166177
},
167178
{
168179
"cell_type": "code",
169-
"execution_count": 5,
180+
"execution_count": 6,
170181
"id": "db3c21c0",
171182
"metadata": {},
172183
"outputs": [
@@ -176,7 +187,7 @@
176187
"<Encoding 'cl100k_base'>"
177188
]
178189
},
179-
"execution_count": 5,
190+
"execution_count": 6,
180191
"metadata": {},
181192
"output_type": "execute_result"
182193
}
@@ -196,7 +207,7 @@
196207
},
197208
{
198209
"cell_type": "code",
199-
"execution_count": 6,
210+
"execution_count": 7,
200211
"id": "0637c28c",
201212
"metadata": {},
202213
"outputs": [
@@ -206,7 +217,7 @@
206217
"<Encoding 'cl100k_base'>"
207218
]
208219
},
209-
"execution_count": 6,
220+
"execution_count": 7,
210221
"metadata": {},
211222
"output_type": "execute_result"
212223
}
@@ -226,7 +237,7 @@
226237
},
227238
{
228239
"cell_type": "code",
229-
"execution_count": 7,
240+
"execution_count": 8,
230241
"id": "b2b13b25",
231242
"metadata": {},
232243
"outputs": [
@@ -253,7 +264,7 @@
253264
},
254265
{
255266
"cell_type": "code",
256-
"execution_count": 8,
267+
"execution_count": 9,
257268
"id": "16cdd08d",
258269
"metadata": {},
259270
"outputs": [
@@ -263,7 +274,7 @@
263274
"'tiktoken is great!'"
264275
]
265276
},
266-
"execution_count": 8,
277+
"execution_count": 9,
267278
"metadata": {},
268279
"output_type": "execute_result"
269280
}
@@ -282,7 +293,7 @@
282293
},
283294
{
284295
"cell_type": "code",
285-
"execution_count": 9,
296+
"execution_count": 10,
286297
"id": "56187080",
287298
"metadata": {},
288299
"outputs": [
@@ -314,7 +325,7 @@
314325
},
315326
{
316327
"cell_type": "code",
317-
"execution_count": 10,
328+
"execution_count": 12,
318329
"id": "5882d126",
319330
"metadata": {},
320331
"outputs": [
@@ -369,7 +380,7 @@
369380
},
370381
{
371382
"cell_type": "code",
372-
"execution_count": 11,
383+
"execution_count": 13,
373384
"id": "266d226e",
374385
"metadata": {},
375386
"outputs": [
@@ -452,7 +463,7 @@
452463
},
453464
{
454465
"cell_type": "code",
455-
"execution_count": 13,
466+
"execution_count": 14,
456467
"id": "8f391797",
457468
"metadata": {},
458469
"outputs": [],
@@ -509,7 +520,7 @@
509520
},
510521
{
511522
"cell_type": "code",
512-
"execution_count": 14,
523+
"execution_count": 15,
513524
"id": "beb9e74e-1c2c-4be5-b57c-f69e8078f0fa",
514525
"metadata": {},
515526
"outputs": [],
@@ -519,7 +530,7 @@
519530
},
520531
{
521532
"cell_type": "code",
522-
"execution_count": 15,
533+
"execution_count": 16,
523534
"id": "c75f4844",
524535
"metadata": {},
525536
"outputs": [
@@ -615,7 +626,7 @@
615626
},
616627
{
617628
"cell_type": "code",
618-
"execution_count": 16,
629+
"execution_count": 17,
619630
"id": "85acd120",
620631
"metadata": {},
621632
"outputs": [],
@@ -633,14 +644,14 @@
633644
},
634645
{
635646
"cell_type": "code",
636-
"execution_count": 17,
647+
"execution_count": 18,
637648
"id": "b925cf88",
638649
"metadata": {},
639650
"outputs": [
640651
{
641652
"data": {
642653
"application/vnd.jupyter.widget-view+json": {
643-
"model_id": "66b4b71727ca4abc8016a22eba4f129d",
654+
"model_id": "77d1ff7008bd420c95e006712f4687c5",
644655
"version_major": 2,
645656
"version_minor": 0
646657
},
@@ -669,7 +680,7 @@
669680
},
670681
{
671682
"cell_type": "code",
672-
"execution_count": 18,
683+
"execution_count": 19,
673684
"id": "3058681d",
674685
"metadata": {},
675686
"outputs": [],
@@ -819,7 +830,7 @@
819830
{
820831
"data": {
821832
"text/plain": [
822-
"\"United States 80 , 000 Revs 143 , 000 to 40 pct by one pct in February declined 9 . 6 pct , it was a remarkable year in an opening speech to the debt crisis , Chancellor Helmut Kohl ' s total assistance of around 5 . 16 dlrs a barrel , bringing the allocation rate on deposits with statutory withdrawal notice , rose a real messy business for undisclosed terms .\""
833+
"'United States appears to pose little risk for loans to 60 pct of its current open market .'"
823834
]
824835
},
825836
"execution_count": 22,
@@ -840,7 +851,7 @@
840851
{
841852
"data": {
842853
"text/plain": [
843-
"'today the newspaper .'"
854+
"'today the public .'"
844855
]
845856
},
846857
"execution_count": 23,
@@ -861,7 +872,7 @@
861872
{
862873
"data": {
863874
"text/plain": [
864-
"'financial markets .'"
875+
"'financial markets can attempt to to buy up overseas companies have totalled 24 . 9 pct in February rose to 37 - 1 / 4 cts prior Pay May 21 . 73 mln dlrs in assets .'"
865876
]
866877
},
867878
"execution_count": 24,

0 commit comments

Comments
 (0)