Skip to content

Commit 44eba0a

Browse files
committed
remove partition from lesson1 Activity03
1 parent b607fa9 commit 44eba0a

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

lesson01/Activity03/activity03-solution.ipynb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@
131131
"- the matrix of indices indicating the position in a sorted list of each value \n",
132132
"```\n",
133133
"[3, 1, 2, 5, 4] => [1, 2, 0, 4, 3]\n",
134-
"```\n",
135-
"- the 3 smallest values for each row without doing a full sorting in larger datasets"
134+
"```"
136135
]
137136
},
138137
{
@@ -173,16 +172,6 @@
173172
"index_sorted = np.argsort(dataset)"
174173
]
175174
},
176-
{
177-
"cell_type": "code",
178-
"execution_count": 88,
179-
"metadata": {},
180-
"outputs": [],
181-
"source": [
182-
"# 3 smallest values for each row (the remaining values are not sorted)\n",
183-
"smallest_3_per_row = np.partition(dataset, 3)"
184-
]
185-
},
186175
{
187176
"cell_type": "markdown",
188177
"metadata": {},

lesson01/Activity03/activity03.ipynb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@
127127
"- the matrix of indices indicating the position in a sorted list of each value \n",
128128
"```\n",
129129
"[3, 1, 2, 5, 4] => [1, 2, 0, 4, 3]\n",
130-
"```\n",
131-
"- the 3 smallest values for each row without doing a full sorting in larger datasets"
130+
"```"
132131
]
133132
},
134133
{
@@ -166,15 +165,6 @@
166165
"# indices of positions for each row\n"
167166
]
168167
},
169-
{
170-
"cell_type": "code",
171-
"execution_count": 88,
172-
"metadata": {},
173-
"outputs": [],
174-
"source": [
175-
"# 3 smallest values for each row (the remaining values are not sorted)\n"
176-
]
177-
},
178168
{
179169
"cell_type": "markdown",
180170
"metadata": {},

0 commit comments

Comments
 (0)