Skip to content

Commit

Permalink
flatten pc.mean in PCA projection tutorial (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbeckst authored Jan 21, 2022
1 parent f789446 commit fef611e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/source/examples/analysis/reduced_dimensions/pca.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@
"source": [
"pc1 = pc.p_components[:, 0]\n",
"trans1 = transformed[:, 0]\n",
"projected = np.outer(trans1, pc1) + pc.mean\n",
"projected = np.outer(trans1, pc1) + pc.mean.flatten()\n",
"coordinates = projected.reshape(len(trans1), -1, 3)"
]
},
Expand Down Expand Up @@ -593,9 +593,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python (mda-user-guide)",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "mda-user-guide"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -607,7 +607,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.3"
"version": "3.8.12"
},
"toc": {
"base_numbering": 1,
Expand Down Expand Up @@ -16308,5 +16308,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}

0 comments on commit fef611e

Please sign in to comment.