-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Documentation regarding issue #1878 #1961
Conversation
Added 'pca_notebook.ipynb' named python notebook in doc/ipython-notebooks/pca Implemented PCA on toy data for 2d to 1d and 3d to 2d projection. Implemented Eigenfaces for data compression and face recognition using att_face dataset.
great! but please make sure that the output of the notebook is always clear, we don't want to store the generated output of the notebook in the repository. |
Thanks! One thing. Could you always post an nbviewer link to the current version of the notebook in the PR (with output) |
Data should be added to shogun-data (if open) and then the notebook should reference that. |
@karlnapf , yeah!! I will amend those. |
nbviewer link: |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"PCA finds a linear projection of high dimensional data into a lower dimensional subspace such that the variance is retained and least square reconstruction error is minimized." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a template for ipython notebooks, pls use the style suggested in there regarding headers, title, author list etc.
I really like where this is going, but there are currently many issues that need to be addressed. |
And thanks for the hard work :) |
just one more thing: |
@karlnapf , @vigsterkr : I will get it done! Thanks for evaluating it. About the data, I sent a PR yesterday to the shogun-data with my dataset updated. Did I do something wrong there? Again thanks. You have given me a direction to work on!! loving it :) |
Great! Let us know when you have an updated version. You should put it under the same gist/nbviewer link. |
updated :) (http://nbviewer.ipython.org/gist/kislayabhi/9431770) |
"Here the best basis vectors are defined as" |
"The optimal bias c is given" |
"To find the best basis vectors B " Here we are talking about the best, so thats fine :) |
( i.e the basis vectors are mutually orthogonal and of unit length ) no whitespace after ( and before ) |
EGD -- should be EVD I guess? |
"from matplotlib import pyplot" You can assume that our notebook server is started with |
Step 4: Calculate the eigenvectors and eigenvalues of the covariance matrix In fact, before you start with the PCA code, could you add a litlle paragraph on the |
And in the above, also add link to the Shogun class list |
"Steps 5" there is an "s" too much |
"<matplotlib.text.Text at 0x3764bd0>" Could you hide those type of outputs via |
"Step6: Deriving the new data set" |
matrices (with D feature dimensions) supplied via apply_to_feature_matrix methods.This tranformation please dont do such things in comments, but rather in the notebook directly |
"preprocessor(from next example)" whitespace |
`````` ax.set_zlim(-30,30)
|
#E is automagically filled by setting target dimension = M. This is different from the 2d data example Please write this in the notebook rather than in a comment |
"PCA Performance" |
Two-dimensional p*q grayscale should be "pq" (in latex), so no * |
"Step 1:Get" whitespace |
|
Euclidean distance - please add a link to the class documentation In fact, please do this for all classes you mention |
Wow, I have to say I am really impressed by this notebook! :) |
BTW I agree on your last point with the np.dot. |
Cleaning imports of several shogun classes in base, lib and machine
Added 'pca_notebook.ipynb' named python notebook in doc/ipython-notebooks/pca Implemented PCA on toy data for 2d to 1d and 3d to 2d projection. Implemented Eigenfaces for data compression and face recognition using att_face dataset.
Please refer to the following pull request. I have updated the nbviewer file |
Added 'pca_notebook.ipynb' named python notebook in
doc/ipython-notebooks/pca
Implemented PCA on toy data for 2d to 1d and 3d to 2d projection.
Implemented Eigenfaces for data compression and face recognition
using att_face dataset.