Skip to content

Commit

Permalink
metadat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrovella committed Dec 5, 2021
1 parent 87620aa commit cbcda7a
Show file tree
Hide file tree
Showing 21 changed files with 93 additions and 152 deletions.
87 changes: 4 additions & 83 deletions 01-Intro-to-Python.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3081,86 +3081,6 @@
"list(even)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"### Reduce"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"source": [
"The last functional operator is **`reduce()`**.\n",
"\n",
"The job of `reduce(function,list)` is to return a single value that combines all the elements of the list.\n",
"\n",
"`reduce(function, list)` sequentially applies `function()` to its previously returned value, and the next element of `list`. \n",
"\n",
"For example if `list = [a1,a2,a3,...,a10],` then the first step of \n",
"`reduce(function, list)` will compute `[function(a1,a2),a3,...,a10]`, and so on.\n",
"\n",
"The function supplied to reduce is typically commutative."
]
},
{
"cell_type": "code",
"execution_count": 129,
"metadata": {
"slideshow": {
"slide_type": "-"
}
},
"outputs": [
{
"data": {
"text/plain": [
"45"
]
},
"execution_count": 129,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from functools import reduce\n",
"reduce(lambda x,y: x+y, [x for x in range(10)])"
]
},
{
"cell_type": "code",
"execution_count": 130,
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [
{
"data": {
"text/plain": [
"26"
]
},
"execution_count": 130,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"reduce (lambda x,y: x if x>y else y, [1, 15, 26, -27])"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -3325,7 +3245,7 @@
"anaconda-cloud": {},
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -3339,11 +3259,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.7.10"
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions 02A-Git-Jupyter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@
"anaconda-cloud": {},
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1560,7 +1560,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.7.10"
},
"nbpresent": {
"slides": {
Expand Down Expand Up @@ -1607,7 +1607,8 @@
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions 02B-Pandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3873,7 +3873,7 @@
"anaconda-cloud": {},
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -3887,11 +3887,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.7.10"
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions 03-Probability-and-Statistics-Refresher.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3892,7 +3892,7 @@
"anaconda-cloud": {},
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -3906,11 +3906,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.7.10"
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions 04-Linear-Algebra-Refresher.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@
"anaconda-cloud": {},
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1951,11 +1951,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.7.10"
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions 05-Distances-Timeseries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@
"anaconda-cloud": {},
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1505,11 +1505,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.7.10"
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions 06-Clustering-I-kmeans.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@
"anaconda-cloud": {},
"celltoolbar": "Tags",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1286,11 +1286,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.7.10"
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
3 changes: 2 additions & 1 deletion 07-Clustering-II-in-practice.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,8 @@
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions 08-Clustering-III-hierarchical.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@
"anaconda-cloud": {},
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1864,11 +1864,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.7.10"
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions 09-Clustering-IV-GMM-EM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,7 @@
"anaconda-cloud": {},
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1940,11 +1940,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.7.10"
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions 10-Low-Rank-and-SVD.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2008,7 +2008,7 @@
"anaconda-cloud": {},
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -2022,11 +2022,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.7.10"
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
7 changes: 4 additions & 3 deletions 11-Dimensionality-Reduction-SVD-II.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,7 @@
"anaconda-cloud": {},
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -2234,11 +2234,12 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.7.10"
},
"rise": {
"scroll": true,
"theme": "beige"
"theme": "beige",
"transition": "fade"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit cbcda7a

Please sign in to comment.