Skip to content

Commit b329379

Browse files
committed
add perceptron tut
1 parent 9bd8281 commit b329379

File tree

50 files changed

+29091
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+29091
-11
lines changed

.DS_Store

2 KB
Binary file not shown.

Tutorial1_python_basics/python_basics_with_numpy.ipynb renamed to Tutorial1_python_basics/tut1_python_basics_with_numpy.ipynb

+11-11
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
"source": [
77
"# Python Basics with Numpy\n",
88
"\n",
9-
"Welcome to your first assignment. This exercise gives you a brief introduction to Python. Even if you've used Python before, this will help familiarize you with functions we'll need. \n",
9+
"This exercise gives you a brief introduction to Python. Even if you've used Python before, this will help familiarize you with functions we'll need. \n",
1010
"\n",
1111
"**Instructions:**\n",
1212
"- You will be using Python 3.\n",
1313
"- Avoid using for-loops and while-loops, unless you are explicitly told to do so.\n",
14-
"- Do not modify the (# GRADED FUNCTION [function name]) comment in some cells. Your work would not be graded if you change this. Each cell containing that comment should only contain one function.\n",
15-
"- After coding your function, run the cell right below it to check if your result is correct.\n",
14+
"- Fill in `python_basics_with_numpy.ipynb`. After coding your function, run the cell right below it to check if your result is correct.\n",
15+
"- You can follow `python_basics_with_numpy_guide.html` or `python_basics_with_numpy_answer.ipynb` for correct answer\n",
1616
"\n",
1717
"**After this assignment you will:**\n",
1818
"- Be able to use iPython Notebooks\n",
1919
"- Be able to use numpy functions and numpy matrix/vector operations\n",
20-
"- Understand the concept of \"broadcasting\"\n",
2120
"- Be able to vectorize code\n",
21+
"- Be able to read and write image and csv file\n",
2222
"\n",
2323
"Let's get started!"
2424
]
@@ -377,7 +377,7 @@
377377
"collapsed": true
378378
},
379379
"source": [
380-
"## 2) Vectorization"
380+
"## 2 - Vectorization"
381381
]
382382
},
383383
{
@@ -482,7 +482,7 @@
482482
"cell_type": "markdown",
483483
"metadata": {},
484484
"source": [
485-
"### 2.1 Implement the L1 and L2 loss functions\n",
485+
"### 2.1 - Implement the L1 and L2 loss functions\n",
486486
"\n",
487487
"**Exercise**: Implement the numpy vectorized version of the L1 loss. You may find the function `abs(x)` (absolute value of x) and `np.sum(x)` (summation of array elements) useful.\n",
488488
"\n",
@@ -611,7 +611,7 @@
611611
"cell_type": "markdown",
612612
"metadata": {},
613613
"source": [
614-
"## 3) I/O Reading"
614+
"## 3 - I/O Reading"
615615
]
616616
},
617617
{
@@ -625,7 +625,7 @@
625625
"cell_type": "markdown",
626626
"metadata": {},
627627
"source": [
628-
"### 3.1 Reading Images by spliting color channels\n",
628+
"### 3.1 - Reading Images by spliting color channels\n",
629629
"**Exercise**: Read a colored image and output it to a grayscale image. \n",
630630
"Method 1: We can manipulate [this formula](https://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale) to change an image from RGB channel to a single greyscale channel.\n",
631631
"\n",
@@ -668,7 +668,7 @@
668668
"cell_type": "markdown",
669669
"metadata": {},
670670
"source": [
671-
"### 3.2 Reading Images with library\n",
671+
"### 3.2 - Reading Images with library\n",
672672
"**Exercise**: Read a colored image and output it to a grayscale image. \n",
673673
"Method 2: We can make use of the built-in function in \"Pillow\" library to directly convert a colored image to greyscale using `Image.convert('L')`\n",
674674
"\n",
@@ -710,7 +710,7 @@
710710
"cell_type": "markdown",
711711
"metadata": {},
712712
"source": [
713-
"### 3.3 Reading CSV \n",
713+
"### 3.3 - Reading CSV \n",
714714
"**Exercise**: Read an array from CSV using the \"csv\" library.\n",
715715
"\n",
716716
"**Note**:\n",
@@ -739,7 +739,7 @@
739739
"cell_type": "markdown",
740740
"metadata": {},
741741
"source": [
742-
"### 3.3 Writing CSV \n",
742+
"### 3.4 - Writing CSV \n",
743743
"**Exercise**: Write a matrix from CSV using the \"csv\" library.\n",
744744
"\n",
745745
"**Note**:\n",

0 commit comments

Comments
 (0)