Skip to content

Commit

Permalink
minor improvement and correction
Browse files Browse the repository at this point in the history
  • Loading branch information
haipinglu committed Mar 18, 2023
1 parent 9fd3120 commit dbce912
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/09-pca-clustering/pca.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"**1**. Load the **miceprotein dataset** from **sklearn.datasets** using **fetch_openml** where the dataset contains **gene expressions** of **mice brains** and show the first 5 rows of the data. Hint: See [here](https://scikit-learn.org/stable/datasets/loading_other_datasets.html#:~:text=gene%20expressions%20in%20mice%20brains) for further help."
"**1**. Load the **mice protein dataset** from **sklearn.datasets** using **fetch_openml** where the dataset contains **gene expressions** of **mice brains** and show the first 5 rows of the data. Hint: See [here](https://scikit-learn.org/stable/datasets/loading_other_datasets.html#:~:text=gene%20expressions%20in%20mice%20brains) for further help."
]
},
{
Expand Down Expand Up @@ -568,7 +568,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"**2.** Using StandardScaler, standardise the loaded mouse protein dataset from **Exercise 1**."
"**2.** Using StandardScaler, standardise the loaded mice protein dataset from **Exercise 1**."
]
},
{
Expand Down Expand Up @@ -608,7 +608,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"**3.** Now, run **PCA** from **sklearn** explaining at least $95\\%$ variance on the **standardised mouse protein dataset** and display the **top ten eigenvalues**. **Hint:** Eigenvalue equals the explained variance specific to PCA."
"**3.** Now, run **PCA** from **sklearn** explaining at least $95\\%$ variance on the **standardised mice protein dataset** and display the **top ten eigenvalues**. Hint: Each eigenvalue represents the captured/explained variance in the direction of the respective eigenvector."
]
},
{
Expand Down Expand Up @@ -689,7 +689,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"**5.** After observing the **explained varience ratio** from **Exercise 4** carefuly, find out how many **principal components** should we take to preserve $70\\%$ of variance of the data?"
"**5.** After observing the **explained variance ratio** from **Exercise 4** carefully, find out how many **principal components** should we take to preserve $70\\%$ of variance of the data?"
]
},
{
Expand Down

0 comments on commit dbce912

Please sign in to comment.