{"action":"created","issue":{"url":"https://api.github.com/repos/mlpack/mlpack/issues/523","repository_url":"https://api.github.com/repos/mlpack/mlpack","labels_url":"https://api.github.com/repos/mlpack/mlpack/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/mlpack/mlpack/issues/523/comments","events_url":"https://api.github.com/repos/mlpack/mlpack/issues/523/events","html_url":"https://github.com/mlpack/mlpack/pull/523","id":135956283,"number":523,"title":"add train test split","user":{"login":"stereomatchingkiss","id":1801914,"avatar_url":"https://avatars.githubusercontent.com/u/1801914?v=3","gravatar_id":"","url":"https://api.github.com/users/stereomatchingkiss","html_url":"https://github.com/stereomatchingkiss","followers_url":"https://api.github.com/users/stereomatchingkiss/followers","following_url":"https://api.github.com/users/stereomatchingkiss/following{/other_user}","gists_url":"https://api.github.com/users/stereomatchingkiss/gists{/gist_id}","starred_url":"https://api.github.com/users/stereomatchingkiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereomatchingkiss/subscriptions","organizations_url":"https://api.github.com/users/stereomatchingkiss/orgs","repos_url":"https://api.github.com/users/stereomatchingkiss/repos","events_url":"https://api.github.com/users/stereomatchingkiss/events{/privacy}","received_events_url":"https://api.github.com/users/stereomatchingkiss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-02-24T05:00:43Z","updated_at":"2016-02-29T18:25:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mlpack/mlpack/pulls/523","html_url":"https://github.com/mlpack/mlpack/pull/523","diff_url":"https://github.com/mlpack/mlpack/pull/523.diff","patch_url":"https://github.com/mlpack/mlpack/pull/523.patch"},"body":"Add function to split train and test data"},"comment":{"url":"https://api.github.com/repos/mlpack/mlpack/issues/comments/190321361","html_url":"https://github.com/mlpack/mlpack/pull/523#issuecomment-190321361","issue_url":"https://api.github.com/repos/mlpack/mlpack/issues/523","id":190321361,"user":{"login":"stereomatchingkiss","id":1801914,"avatar_url":"https://avatars.githubusercontent.com/u/1801914?v=3","gravatar_id":"","url":"https://api.github.com/users/stereomatchingkiss","html_url":"https://github.com/stereomatchingkiss","followers_url":"https://api.github.com/users/stereomatchingkiss/followers","following_url":"https://api.github.com/users/stereomatchingkiss/following{/other_user}","gists_url":"https://api.github.com/users/stereomatchingkiss/gists{/gist_id}","starred_url":"https://api.github.com/users/stereomatchingkiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereomatchingkiss/subscriptions","organizations_url":"https://api.github.com/users/stereomatchingkiss/orgs","repos_url":"https://api.github.com/users/stereomatchingkiss/repos","events_url":"https://api.github.com/users/stereomatchingkiss/events{/privacy}","received_events_url":"https://api.github.com/users/stereomatchingkiss/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T18:25:28Z","updated_at":"2016-02-29T18:25:28Z","body":">a 256x256x3 image becomes a 196608-dimensional vector. And in that case, a column is a single point, like in the rest of mlpack.\r\n\r\nThis is the original solution I provided, current implementation can generate same result too if you specify the slice == 1"}}