Skip to content

Commit ea548c1

Browse files
committed
updated code and data
1 parent 6fbd5b2 commit ea548c1

5 files changed

+52
-53
lines changed

notebooks/Perceptron Learning in Python.ipynb

+9-9
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
},
9191
{
9292
"cell_type": "code",
93-
"execution_count": 3,
93+
"execution_count": 1,
9494
"metadata": {},
9595
"outputs": [],
9696
"source": [
@@ -109,7 +109,7 @@
109109
},
110110
{
111111
"cell_type": "code",
112-
"execution_count": 4,
112+
"execution_count": 2,
113113
"metadata": {},
114114
"outputs": [],
115115
"source": [
@@ -127,15 +127,15 @@
127127
},
128128
{
129129
"cell_type": "code",
130-
"execution_count": 5,
130+
"execution_count": 3,
131131
"metadata": {},
132132
"outputs": [
133133
{
134134
"name": "stdout",
135135
"output_type": "stream",
136136
"text": [
137-
"z: 0.8600000000000001\n",
138-
"a: 0.7026606543447316\n"
137+
"z: 0.86\n",
138+
"a: 0.7026606543447315\n"
139139
]
140140
}
141141
],
@@ -207,7 +207,7 @@
207207
},
208208
{
209209
"cell_type": "code",
210-
"execution_count": 5,
210+
"execution_count": 6,
211211
"metadata": {},
212212
"outputs": [
213213
{
@@ -243,7 +243,7 @@
243243
},
244244
{
245245
"cell_type": "code",
246-
"execution_count": 6,
246+
"execution_count": 7,
247247
"metadata": {},
248248
"outputs": [
249249
{
@@ -293,7 +293,7 @@
293293
},
294294
{
295295
"cell_type": "code",
296-
"execution_count": 7,
296+
"execution_count": 8,
297297
"metadata": {},
298298
"outputs": [],
299299
"source": [
@@ -316,7 +316,7 @@
316316
},
317317
{
318318
"cell_type": "code",
319-
"execution_count": 8,
319+
"execution_count": 9,
320320
"metadata": {},
321321
"outputs": [
322322
{

notebooks/Process_IAB_Taxonomies.ipynb

+40-40
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
{
4040
"cell_type": "code",
41-
"execution_count": 3,
41+
"execution_count": 2,
4242
"metadata": {},
4343
"outputs": [],
4444
"source": [
@@ -56,11 +56,11 @@
5656
},
5757
{
5858
"cell_type": "code",
59-
"execution_count": 6,
59+
"execution_count": 8,
6060
"metadata": {},
6161
"outputs": [],
6262
"source": [
63-
"content_taxonomy = pd.read_csv(content_taxonomy_file, sep='\\t')"
63+
"content_taxonomy = pd.read_csv(content_taxonomy_file, sep='\\t', header=0).fillna(\"\")"
6464
]
6565
},
6666
{
@@ -72,46 +72,46 @@
7272
"name": "stdout",
7373
"output_type": "stream",
7474
"text": [
75-
" Relational ID System Unnamed: 1 Unnamed: 2 \\\n",
76-
"0 Unique ID Parent Name \n",
77-
"1 150 150 Attractions \n",
78-
"2 151 150 Amusement and Theme Parks \n",
79-
"3 179 150 Bars & Restaurants \n",
80-
"4 181 150 Casinos & Gambling \n",
81-
".. ... ... ... \n",
82-
"699 687 685 Role-Playing Video Games \n",
83-
"700 688 685 Simulation Video Games \n",
84-
"701 689 685 Sports Video Games \n",
85-
"702 690 685 Strategy Video Games \n",
86-
"703 389 NaN War and Conflicts \n",
75+
" Unique ID Parent Name Tier 1 \\\n",
76+
"0 150 150 Attractions Attractions \n",
77+
"1 151 150 Amusement and Theme Parks Attractions \n",
78+
"2 179 150 Bars & Restaurants Attractions \n",
79+
"3 181 150 Casinos & Gambling Attractions \n",
80+
"4 153 150 Historic Site and Landmark Tours Attractions \n",
81+
".. ... ... ... ... \n",
82+
"698 687 685 Role-Playing Video Games Video Gaming \n",
83+
"699 688 685 Simulation Video Games Video Gaming \n",
84+
"700 689 685 Sports Video Games Video Gaming \n",
85+
"701 690 685 Strategy Video Games Video Gaming \n",
86+
"702 389 War and Conflicts War and Conflicts \n",
8787
"\n",
88-
" Content Taxonomy v3.0 Tiered Categories Unnamed: 4 \\\n",
89-
"0 Tier 1 Tier 2 \n",
90-
"1 Attractions NaN \n",
91-
"2 Attractions Amusement and Theme Parks \n",
92-
"3 Attractions Bars & Restaurants \n",
93-
"4 Attractions Casinos & Gambling \n",
94-
".. ... ... \n",
95-
"699 Video Gaming Video Game Genres \n",
96-
"700 Video Gaming Video Game Genres \n",
97-
"701 Video Gaming Video Game Genres \n",
98-
"702 Video Gaming Video Game Genres \n",
99-
"703 War and Conflicts NaN \n",
88+
" Tier 2 Tier 3 Tier 4 \\\n",
89+
"0 \n",
90+
"1 Amusement and Theme Parks \n",
91+
"2 Bars & Restaurants \n",
92+
"3 Casinos & Gambling \n",
93+
"4 Historic Site and Landmark Tours \n",
94+
".. ... ... ... \n",
95+
"698 Video Game Genres Role-Playing Video Games \n",
96+
"699 Video Game Genres Simulation Video Games \n",
97+
"700 Video Game Genres Sports Video Games \n",
98+
"701 Video Game Genres Strategy Video Games \n",
99+
"702 \n",
100100
"\n",
101-
" Unnamed: 5 Unnamed: 6 Extension \n",
102-
"0 Tier 3 Tier 4 NaN \n",
103-
"1 NaN NaN NaN \n",
104-
"2 NaN NaN NaN \n",
105-
"3 NaN NaN NaN \n",
106-
"4 NaN NaN NaN \n",
107-
".. ... ... ... \n",
108-
"699 Role-Playing Video Games NaN NaN \n",
109-
"700 Simulation Video Games NaN NaN \n",
110-
"701 Sports Video Games NaN NaN \n",
111-
"702 Strategy Video Games NaN NaN \n",
112-
"703 NaN NaN NaN \n",
101+
" Extension \n",
102+
"0 \n",
103+
"1 \n",
104+
"2 \n",
105+
"3 \n",
106+
"4 \n",
107+
".. ... \n",
108+
"698 \n",
109+
"699 \n",
110+
"700 \n",
111+
"701 \n",
112+
"702 \n",
113113
"\n",
114-
"[704 rows x 8 columns]\n"
114+
"[703 rows x 8 columns]\n"
115115
]
116116
}
117117
],

notebooks/anthropic_vectors.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"name": "python",
186186
"nbconvert_exporter": "python",
187187
"pygments_lexer": "ipython3",
188-
"version": "3.12.3"
188+
"version": "3.12.7"
189189
}
190190
},
191191
"nbformat": 4,

notebooks/data/IAB/Content Taxonomy 3.0.tsv

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Relational ID System Content Taxonomy v3.0 Tiered Categories Extension
2-
Unique ID Parent Name Tier 1 Tier 2 Tier 3 Tier 4
1+
Unique ID Parent Name Tier 1 Tier 2 Tier 3 Tier 4 Extension
32
150 150 Attractions Attractions
43
151 150 Amusement and Theme Parks Attractions Amusement and Theme Parks
54
179 150 Bars & Restaurants Attractions Bars & Restaurants

notebooks/openai_vectors.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
"name": "python",
181181
"nbconvert_exporter": "python",
182182
"pygments_lexer": "ipython3",
183-
"version": "3.12.3"
183+
"version": "3.12.7"
184184
}
185185
},
186186
"nbformat": 4,

0 commit comments

Comments
 (0)