{"action":"created","issue":{"url":"https://api.github.com/repos/rasmusbergpalm/DeepLearnToolbox/issues/144","labels_url":"https://api.github.com/repos/rasmusbergpalm/DeepLearnToolbox/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/rasmusbergpalm/DeepLearnToolbox/issues/144/comments","events_url":"https://api.github.com/repos/rasmusbergpalm/DeepLearnToolbox/issues/144/events","html_url":"https://github.com/rasmusbergpalm/DeepLearnToolbox/issues/144","id":80975441,"number":144,"title":"Predicting one image","user":{"login":"RafaRuiz","id":6842786,"avatar_url":"https://avatars.githubusercontent.com/u/6842786?v=3","gravatar_id":"","url":"https://api.github.com/users/RafaRuiz","html_url":"https://github.com/RafaRuiz","followers_url":"https://api.github.com/users/RafaRuiz/followers","following_url":"https://api.github.com/users/RafaRuiz/following{/other_user}","gists_url":"https://api.github.com/users/RafaRuiz/gists{/gist_id}","starred_url":"https://api.github.com/users/RafaRuiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RafaRuiz/subscriptions","organizations_url":"https://api.github.com/users/RafaRuiz/orgs","repos_url":"https://api.github.com/users/RafaRuiz/repos","events_url":"https://api.github.com/users/RafaRuiz/events{/privacy}","received_events_url":"https://api.github.com/users/RafaRuiz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-26T14:01:06Z","updated_at":"2015-08-12T06:00:20Z","closed_at":null,"body":"Hello, I'm really new with CNN.\r\n\r\nI've got my Network trained with N images and now I would like to ask for 1 image and see what label is predicted. How could I make this?\r\n\r\nThank you in advance."},"comment":{"url":"https://api.github.com/repos/rasmusbergpalm/DeepLearnToolbox/issues/comments/130179549","html_url":"https://github.com/rasmusbergpalm/DeepLearnToolbox/issues/144#issuecomment-130179549","issue_url":"https://api.github.com/repos/rasmusbergpalm/DeepLearnToolbox/issues/144","id":130179549,"user":{"login":"primetang","id":7023014,"avatar_url":"https://avatars.githubusercontent.com/u/7023014?v=3","gravatar_id":"","url":"https://api.github.com/users/primetang","html_url":"https://github.com/primetang","followers_url":"https://api.github.com/users/primetang/followers","following_url":"https://api.github.com/users/primetang/following{/other_user}","gists_url":"https://api.github.com/users/primetang/gists{/gist_id}","starred_url":"https://api.github.com/users/primetang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/primetang/subscriptions","organizations_url":"https://api.github.com/users/primetang/orgs","repos_url":"https://api.github.com/users/primetang/repos","events_url":"https://api.github.com/users/primetang/events{/privacy}","received_events_url":"https://api.github.com/users/primetang/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T06:00:20Z","updated_at":"2015-08-12T06:00:20Z","body":"For example, if 'cnn' is your trained model, and 'img' is your image, do like this:\r\n\r\n    net = cnnff(cnn,img);\r\n    [~, h] = max(net.o);\r\n\r\nThen 'h' will be the  predict label.\r\n"}}