Skip to content

Commit ac3ece7

Browse files
committed
update notebooks
1 parent 85478a1 commit ac3ece7

14 files changed

Lines changed: 880 additions & 480 deletions

‎1. Generative AI .ipynb‎

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,22 +79,22 @@
7979
"\n",
8080
"Compiler : Clang 17.0.0 (clang-1700.0.13.3)\n",
8181
"OS : Darwin\n",
82-
"Release : 24.5.0\n",
82+
"Release : 24.6.0\n",
8383
"Machine : arm64\n",
8484
"Processor : arm\n",
8585
"CPU cores : 16\n",
8686
"Architecture: 64bit\n",
8787
"\n",
88-
"Git hash: 91771291efc6cdd2db5de42769839402f2db0555\n",
88+
"Git hash: 85478a1c0245250b71831e3018ef34220d7015bc\n",
8989
"\n",
9090
"watermark : 2.5.0\n",
91-
"tqdm : 4.67.1\n",
92-
"matplotlib: 3.10.3\n",
9391
"pandas : 2.3.0\n",
9492
"openai : 1.86.0\n",
93+
"numpy : 2.3.0\n",
94+
"matplotlib: 3.10.3\n",
9595
"nltk : 3.9.1\n",
9696
"tiktoken : 0.9.0\n",
97-
"numpy : 2.3.0\n",
97+
"tqdm : 4.67.1\n",
9898
"\n"
9999
]
100100
}
@@ -643,7 +643,7 @@
643643
{
644644
"data": {
645645
"application/vnd.jupyter.widget-view+json": {
646-
"model_id": "c55a8195f85048fda0e4485961d57765",
646+
"model_id": "cc814421327b4de887c32c6962cb27dd",
647647
"version_major": 2,
648648
"version_minor": 0
649649
},
@@ -756,6 +756,28 @@
756756
"model[(\"United\", \"Kingdom\")]"
757757
]
758758
},
759+
{
760+
"cell_type": "code",
761+
"execution_count": 21,
762+
"id": "72255691-2e40-48fb-979c-a067c774f416",
763+
"metadata": {},
764+
"outputs": [
765+
{
766+
"data": {
767+
"text/plain": [
768+
"defaultdict(<function __main__.<lambda>.<locals>.<lambda>()>,\n",
769+
" {'Ireland': 0.25, 'other': 0.25, 'an': 0.25, 'offshore': 0.25})"
770+
]
771+
},
772+
"execution_count": 21,
773+
"metadata": {},
774+
"output_type": "execute_result"
775+
}
776+
],
777+
"source": [
778+
"model[(\"Kingdom\", \"and\")]"
779+
]
780+
},
759781
{
760782
"cell_type": "markdown",
761783
"id": "39410a93",
@@ -766,7 +788,7 @@
766788
},
767789
{
768790
"cell_type": "code",
769-
"execution_count": 21,
791+
"execution_count": 22,
770792
"id": "8a16befc",
771793
"metadata": {},
772794
"outputs": [],
@@ -814,17 +836,17 @@
814836
},
815837
{
816838
"cell_type": "code",
817-
"execution_count": 22,
839+
"execution_count": 23,
818840
"id": "99542934",
819841
"metadata": {},
820842
"outputs": [
821843
{
822844
"data": {
823845
"text/plain": [
824-
"'United States .'"
846+
"'United States at prices ranging from 10 pct .'"
825847
]
826848
},
827-
"execution_count": 22,
849+
"execution_count": 23,
828850
"metadata": {},
829851
"output_type": "execute_result"
830852
}
@@ -835,17 +857,17 @@
835857
},
836858
{
837859
"cell_type": "code",
838-
"execution_count": 23,
860+
"execution_count": 24,
839861
"id": "581cac29",
840862
"metadata": {},
841863
"outputs": [
842864
{
843865
"data": {
844866
"text/plain": [
845-
"'today the company said the government of President Jose Sarney said .'"
867+
"'today the time being ,\" he said .'"
846868
]
847869
},
848-
"execution_count": 23,
870+
"execution_count": 24,
849871
"metadata": {},
850872
"output_type": "execute_result"
851873
}
@@ -856,17 +878,17 @@
856878
},
857879
{
858880
"cell_type": "code",
859-
"execution_count": 24,
881+
"execution_count": 25,
860882
"id": "815d341b",
861883
"metadata": {},
862884
"outputs": [
863885
{
864886
"data": {
865887
"text/plain": [
866-
"'financial markets as to the dollar had led to food riots in which the Americans , and inland wells frequently require the approval of definitive documentation .'"
888+
"'financial markets .'"
867889
]
868890
},
869-
"execution_count": 24,
891+
"execution_count": 25,
870892
"metadata": {},
871893
"output_type": "execute_result"
872894
}

0 commit comments

Comments
 (0)