You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: 00_tensorflow_fundamentals.ipynb
+11-11
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@
48
48
"\n",
49
49
"TensorFlow is vast. But the main premise is simple: turn data into numbers (tensors) and build machine learning algorithms to find patterns in them.\n",
50
50
"\n",
51
-
"In this notebook we cover some of the most fundamental TensorFlow operations, more specificially:\n",
51
+
"In this notebook we cover some of the most fundamental TensorFlow operations, more specifically:\n",
52
52
"* Introduction to tensors (creating tensors)\n",
53
53
"* Getting information from tensors (tensor attributes)\n",
54
54
"* Manipulating tensors (tensor operations)\n",
@@ -481,9 +481,9 @@
481
481
"* **scalar**: a single number.\n",
482
482
"* **vector**: a number with direction (e.g. wind speed with direction).\n",
483
483
"* **matrix**: a 2-dimensional array of numbers.\n",
484
-
"* **tensor**: an n-dimensional arrary of numbers (where n can be any number, a 0-dimension tensor is a scalar, a 1-dimension tensor is a vector). \n",
484
+
"* **tensor**: an n-dimensional array of numbers (where n can be any number, a 0-dimension tensor is a scalar, a 1-dimension tensor is a vector). \n",
485
485
"\n",
486
-
"To add to the confusion, the terms matrix and tensor are often used interchangably.\n",
486
+
"To add to the confusion, the terms matrix and tensor are often used interchangeably.\n",
487
487
"\n",
488
488
"Going forward since we're using TensorFlow, everything we refer to and use will be tensors.\n",
489
489
"\n",
@@ -543,7 +543,7 @@
543
543
"id": "A4WrQ8c2ux15"
544
544
},
545
545
"source": [
546
-
"Now let's try to change one of the elements of the changable tensor."
546
+
"Now let's try to change one of the elements of the changeable tensor."
547
547
]
548
548
},
549
549
{
@@ -673,7 +673,7 @@
673
673
"source": [
674
674
"### Creating random tensors\n",
675
675
"\n",
676
-
"Random tensors are tensors of some abitrary size which contain random numbers.\n",
676
+
"Random tensors are tensors of some arbitrary size which contain random numbers.\n",
677
677
"\n",
678
678
"Why would you want to create random tensors? \n",
679
679
"\n",
@@ -809,7 +809,7 @@
809
809
"\n",
810
810
"Wait, why would you want to do that?\n",
811
811
"\n",
812
-
"Let's say you working with 15,000 images of cats and dogs and the first 10,000 images of were of cats and the next 5,000 were of dogs. This order could effect how a neural network learns (it may overfit by learning the order of the data), instead, it might be a good idea to move your data around."
812
+
"Let's say you working with 15,000 images of cats and dogs and the first 10,000 images were of cats and the next 5,000 were of dogs. This order could effect how a neural network learns (it may overfit by learning the order of the data), instead, it might be a good idea to move your data around."
813
813
]
814
814
},
815
815
{
@@ -1108,7 +1108,7 @@
1108
1108
"source": [
1109
1109
"## Getting information from tensors (shape, rank, size)\n",
1110
1110
"\n",
1111
-
"There will be times when you'll want to get different pieces of information from your tensors, in particuluar, you should know the following tensor vocabulary:\n",
1111
+
"There will be times when you'll want to get different pieces of information from your tensors, in particular, you should know the following tensor vocabulary:\n",
1112
1112
"* **Shape:** The length (number of elements) of each of the dimensions of a tensor.\n",
1113
1113
"* **Rank:** The number of tensor dimensions. A scalar has rank 0, a vector has rank 1, a matrix is rank 2, a tensor has rank n.\n",
1114
1114
"* **Axis** or **Dimension:** A particular dimension of a tensor.\n",
@@ -1450,7 +1450,7 @@
1450
1450
"source": [
1451
1451
"## Manipulating tensors (tensor operations)\n",
1452
1452
"\n",
1453
-
"Finding patterns in tensors (numberical representation of data) requires manipulating them.\n",
1453
+
"Finding patterns in tensors (numerical representation of data) requires manipulating them.\n",
1454
1454
"\n",
1455
1455
"Again, when building models in TensorFlow, much of this pattern discovery is done for you."
1456
1456
]
@@ -1463,7 +1463,7 @@
1463
1463
"source": [
1464
1464
"### Basic operations\n",
1465
1465
"\n",
1466
-
"You can perform many of the basic mathematical operations directly on tensors using Pyhton operators such as, `+`, `-`, `*`."
1466
+
"You can perform many of the basic mathematical operations directly on tensors using Python operators such as, `+`, `-`, `*`."
1467
1467
]
1468
1468
},
1469
1469
{
@@ -2067,7 +2067,7 @@
2067
2067
"\n",
2068
2068
"### The dot product\n",
2069
2069
"\n",
2070
-
"Multiplying matrices by eachother is also referred to as the dot product.\n",
2070
+
"Multiplying matrices by each other is also referred to as the dot product.\n",
2071
2071
"\n",
2072
2072
"You can perform the `tf.matmul()` operation using [`tf.tensordot()`](https://www.tensorflow.org/api_docs/python/tf/tensordot). "
0 commit comments