{"action":"created","issue":{"url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/103","labels_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/103/comments","events_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/103/events","html_url":"https://github.com/aigamedev/scikit-neuralnetwork/issues/103","id":95097797,"number":103,"title":"AutoEncoder shows poor performance for iris data set","user":{"login":"lucidfrontier45","id":655305,"avatar_url":"https://avatars.githubusercontent.com/u/655305?v=3","gravatar_id":"","url":"https://api.github.com/users/lucidfrontier45","html_url":"https://github.com/lucidfrontier45","followers_url":"https://api.github.com/users/lucidfrontier45/followers","following_url":"https://api.github.com/users/lucidfrontier45/following{/other_user}","gists_url":"https://api.github.com/users/lucidfrontier45/gists{/gist_id}","starred_url":"https://api.github.com/users/lucidfrontier45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucidfrontier45/subscriptions","organizations_url":"https://api.github.com/users/lucidfrontier45/orgs","repos_url":"https://api.github.com/users/lucidfrontier45/repos","events_url":"https://api.github.com/users/lucidfrontier45/events{/privacy}","received_events_url":"https://api.github.com/users/lucidfrontier45/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-15T03:35:49Z","updated_at":"2015-07-15T15:07:52Z","closed_at":null,"body":"Hi. I followed this document\r\nhttp://scikit-neuralnetwork.readthedocs.org/en/latest/guide_advanced.html#unsupervised-pre-training\r\nant tried to apply 3-layer MLP with pre-trained autoencoder  to the iris data set.\r\n\r\nThe accuracy was too low, only 0.333 even for training data set.\r\nBelow is my code. Am I missing something?\r\n\r\nThank you.\r\n\r\n```python\r\nfrom sklearn.datasets import load_iris\r\nfrom sknn.mlp import Classifier, Layer as NNLayer\r\nfrom sknn.ae import AutoEncoder, Layer as AELayer\r\n\r\niris = load_iris()\r\nX = iris.data\r\ny = iris.target\r\n\r\nae = AutoEncoder(layers=[\r\n    AELayer(\"Tanh\", units=10),\r\n    AELayer(\"Sigmoid\", units=2)\r\n], learning_rate=0.002, n_iter=10).fit(X)\r\n\r\nmodel = Classifier(layers=[\r\n    NNLayer(\"Tanh\", units=10),\r\n    NNLayer(\"Sigmoid\", units=2),\r\n    NNLayer(\"Softmax\")\r\n], learning_rate=0.001, n_iter=50)\r\n\r\nae.transfer(model)\r\n\r\nmodel.fit(X, y)\r\n\r\nprint(model.score(X, y))\r\n```"},"comment":{"url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/comments/121646005","html_url":"https://github.com/aigamedev/scikit-neuralnetwork/issues/103#issuecomment-121646005","issue_url":"https://api.github.com/repos/aigamedev/scikit-neuralnetwork/issues/103","id":121646005,"user":{"login":"lucidfrontier45","id":655305,"avatar_url":"https://avatars.githubusercontent.com/u/655305?v=3","gravatar_id":"","url":"https://api.github.com/users/lucidfrontier45","html_url":"https://github.com/lucidfrontier45","followers_url":"https://api.github.com/users/lucidfrontier45/followers","following_url":"https://api.github.com/users/lucidfrontier45/following{/other_user}","gists_url":"https://api.github.com/users/lucidfrontier45/gists{/gist_id}","starred_url":"https://api.github.com/users/lucidfrontier45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucidfrontier45/subscriptions","organizations_url":"https://api.github.com/users/lucidfrontier45/orgs","repos_url":"https://api.github.com/users/lucidfrontier45/repos","events_url":"https://api.github.com/users/lucidfrontier45/events{/privacy}","received_events_url":"https://api.github.com/users/lucidfrontier45/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T15:07:52Z","updated_at":"2015-07-15T15:07:52Z","body":"OK, I'll take a look at `_mlp_get_weights`."}}