{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5941","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5941/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5941/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5941/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/5941","id":119585426,"number":5941,"title":"sklearn.cross_decomposition example needs to be fixed","user":{"login":"yavvsy","id":13950307,"avatar_url":"https://avatars.githubusercontent.com/u/13950307?v=3","gravatar_id":"","url":"https://api.github.com/users/yavvsy","html_url":"https://github.com/yavvsy","followers_url":"https://api.github.com/users/yavvsy/followers","following_url":"https://api.github.com/users/yavvsy/following{/other_user}","gists_url":"https://api.github.com/users/yavvsy/gists{/gist_id}","starred_url":"https://api.github.com/users/yavvsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yavvsy/subscriptions","organizations_url":"https://api.github.com/users/yavvsy/orgs","repos_url":"https://api.github.com/users/yavvsy/repos","events_url":"https://api.github.com/users/yavvsy/events{/privacy}","received_events_url":"https://api.github.com/users/yavvsy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-30T21:31:21Z","updated_at":"2015-12-01T15:19:39Z","closed_at":"2015-12-01T15:19:39Z","body":"In http://scikit-learn.org/dev/auto_examples/cross_decomposition/plot_compare_cross_decomposition.html#example-cross-decomposition-plot-compare-cross-decomposition-py reference to PLSCanonical has been removed creating holes.\r\n\r\nfor example: \r\n`from sklearn.cross_decomposition import , PLSRegression, CCA`\r\nshould be:\r\n`from sklearn.cross_decomposition import PLSCanonical, PLSRegression, CCA`\r\n\r\nThen:\r\n```\r\n###############################################################################\r\n# Canonical (symmetric) PLS\r\n\r\n# Transform data\r\n# ~~~~~~~~~~~~~~\r\nplsca = (n_components=2)\r\nplsca.fit(X_train, Y_train)\r\nX_train_r, Y_train_r = plsca.transform(X_train, Y_train)\r\nX_test_r, Y_test_r = plsca.transform(X_test, Y_test)`\r\n```\r\nShould be:\r\n```\r\n###############################################################################\r\n# Canonical (symetric) PLS\r\n\r\n# Transform data\r\n# ~~~~~~~~~~~~~~\r\nplsca = PLSCanonical(n_components=2)\r\nplsca.fit(X_train, Y_train)\r\nX_train_r, Y_train_r = plsca.transform(X_train, Y_train)\r\nX_test_r, Y_test_r = plsca.transform(X_test, Y_test)\r\n```"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/160998926","html_url":"https://github.com/scikit-learn/scikit-learn/issues/5941#issuecomment-160998926","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5941","id":160998926,"user":{"login":"yavvsy","id":13950307,"avatar_url":"https://avatars.githubusercontent.com/u/13950307?v=3","gravatar_id":"","url":"https://api.github.com/users/yavvsy","html_url":"https://github.com/yavvsy","followers_url":"https://api.github.com/users/yavvsy/followers","following_url":"https://api.github.com/users/yavvsy/following{/other_user}","gists_url":"https://api.github.com/users/yavvsy/gists{/gist_id}","starred_url":"https://api.github.com/users/yavvsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yavvsy/subscriptions","organizations_url":"https://api.github.com/users/yavvsy/orgs","repos_url":"https://api.github.com/users/yavvsy/repos","events_url":"https://api.github.com/users/yavvsy/events{/privacy}","received_events_url":"https://api.github.com/users/yavvsy/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T15:19:39Z","updated_at":"2015-12-01T15:19:39Z","body":"When I go to the page mentioned in my email:\r\n`http://scikit-learn.org/dev/auto_examples/cross_decomposition/plot_compare_cross_decomposition.html#example-cross-decomposition-plot-compare-cross-decomposition-py`\r\n\r\nI definitely get:\r\n\r\n```\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\nfrom sklearn.cross_decomposition import , PLSRegression, CCA\r\n```"}}