Skip to content

Commit 0828085

Browse files
Add files via upload
Better introduce NumPy
1 parent 58856d3 commit 0828085

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

01_materials/notebooks/Classification-2.ipynb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,18 @@
117117
"For reproducibility, we will set a random seed using numpy's `random.seed` function"
118118
]
119119
},
120+
{
121+
"cell_type": "markdown",
122+
"metadata": {},
123+
"source": [
124+
"#### What is NumPy?\n",
125+
"\n",
126+
"\"But wait, what is that `np.random.seed()` thing?\". It comes from **NumPy**, a popular Python library that helps us work with numbers and do math really fast, especially when dealing with large amounts of data. It's great for things like handling lists of numbers, performing calculations, and generating random numbers.\n",
127+
"\n",
128+
"The `np.random.seed()` function is used to control the randomness in your code. Normally, when we generate random numbers, they change every time we run the code. By setting a \"seed\" with `np.random.seed()`, we make sure the random numbers stay the same each time we run it. This is useful when we want consistent results for testing or comparisons.\n",
129+
"NumPy arrays are fast and powerful, allowing us to do all sorts of math and number operations easily!"
130+
]
131+
},
120132
{
121133
"cell_type": "code",
122134
"execution_count": null,

0 commit comments

Comments
 (0)