Skip to content

Commit

Permalink
Merge pull request #99 from kk-Syuer/patch-4
Browse files Browse the repository at this point in the history
mix of some tiny typo corrections
  • Loading branch information
iacopomasi authored Apr 7, 2024
2 parents c720e4a + c359ffd commit 7ad42ce
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"x = np.array([[2.5, 3.2], [0, 1], [2, -3]], dtype=np.float32)\n",
"print(x)\n",
"print(f\"Shape {x.shape}\") # the shape is...\n",
"print(f\"Number of dimension: {x.ndim}\") # is a matrix (2 axis)\n",
"print(f\"Number of dimensions: {x.ndim}\") # is a matrix (2 axis)\n",
"print(f\"Number of elements: {x.size}\") # with 6 elements\n",
"\n",
"v = np.array([2.5, 3.2]) # used later "
Expand Down

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions AA2324/course/05_clustering_kmeans/05_clustering_kmeans.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
}
},
"source": [
"- How many cluster here, three or two?"
"- How many clusters are here, three or two?"
]
},
{
Expand Down Expand Up @@ -742,7 +742,7 @@
"\n",
"It is a formalism to express the concept of:\n",
"- DO consider the point in the mean computation if point label corresponds to current centroid\n",
"- DO NOT consider the point in the mean computation if point label DOES NOT corresponds to current centroid"
"- DO NOT consider the point in the mean computation if the point label DOES NOT correspond to the current centroid"
]
},
{
Expand Down Expand Up @@ -1769,7 +1769,7 @@
"axs[1].plot(np.insert(pmf.cumsum(),0,0), 'o--')\n",
"axs[1].set_title('CMF')\n",
"axs[1].set_xlabel('Index of distance')\n",
"axs[1].set_ylabel('Cumlative Probability')\n",
"axs[1].set_ylabel('Cumulative Probability')\n",
"axs[1].set_aspect('auto')\n",
"plt.show()"
]
Expand Down Expand Up @@ -1809,7 +1809,7 @@
"axs[1].plot(np.insert(pmf.cumsum(),0,0), 'o--')\n",
"axs[1].set_title('CMF')\n",
"axs[1].set_xlabel('Index of distance')\n",
"axs[1].set_ylabel('Cumlative Probability')\n",
"axs[1].set_ylabel('Cumulative Probability')\n",
"axs[1].set_aspect('auto')\n",
"#axs[1].stem(pmf, linefmt='b-', markerfmt='bo', basefmt='--')\n",
"plt.show()"
Expand Down

0 comments on commit 7ad42ce

Please sign in to comment.