{"action":"created","issue":{"url":"https://api.github.com/repos/machinebox/issues/issues/23","repository_url":"https://api.github.com/repos/machinebox/issues","labels_url":"https://api.github.com/repos/machinebox/issues/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/machinebox/issues/issues/23/comments","events_url":"https://api.github.com/repos/machinebox/issues/issues/23/events","html_url":"https://github.com/machinebox/issues/issues/23","id":304874761,"number":23,"title":"classificationbox: saving model state","user":{"login":"laurenblackburn","id":9273154,"avatar_url":"https://avatars2.githubusercontent.com/u/9273154?v=4","gravatar_id":"","url":"https://api.github.com/users/laurenblackburn","html_url":"https://github.com/laurenblackburn","followers_url":"https://api.github.com/users/laurenblackburn/followers","following_url":"https://api.github.com/users/laurenblackburn/following{/other_user}","gists_url":"https://api.github.com/users/laurenblackburn/gists{/gist_id}","starred_url":"https://api.github.com/users/laurenblackburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurenblackburn/subscriptions","organizations_url":"https://api.github.com/users/laurenblackburn/orgs","repos_url":"https://api.github.com/users/laurenblackburn/repos","events_url":"https://api.github.com/users/laurenblackburn/events{/privacy}","received_events_url":"https://api.github.com/users/laurenblackburn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"matryer","id":101659,"avatar_url":"https://avatars3.githubusercontent.com/u/101659?v=4","gravatar_id":"","url":"https://api.github.com/users/matryer","html_url":"https://github.com/matryer","followers_url":"https://api.github.com/users/matryer/followers","following_url":"https://api.github.com/users/matryer/following{/other_user}","gists_url":"https://api.github.com/users/matryer/gists{/gist_id}","starred_url":"https://api.github.com/users/matryer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matryer/subscriptions","organizations_url":"https://api.github.com/users/matryer/orgs","repos_url":"https://api.github.com/users/matryer/repos","events_url":"https://api.github.com/users/matryer/events{/privacy}","received_events_url":"https://api.github.com/users/matryer/received_events","type":"User","site_admin":false},"assignees":[{"login":"matryer","id":101659,"avatar_url":"https://avatars3.githubusercontent.com/u/101659?v=4","gravatar_id":"","url":"https://api.github.com/users/matryer","html_url":"https://github.com/matryer","followers_url":"https://api.github.com/users/matryer/followers","following_url":"https://api.github.com/users/matryer/following{/other_user}","gists_url":"https://api.github.com/users/matryer/gists{/gist_id}","starred_url":"https://api.github.com/users/matryer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matryer/subscriptions","organizations_url":"https://api.github.com/users/matryer/orgs","repos_url":"https://api.github.com/users/matryer/repos","events_url":"https://api.github.com/users/matryer/events{/privacy}","received_events_url":"https://api.github.com/users/matryer/received_events","type":"User","site_admin":false},{"login":"dahernan","id":615811,"avatar_url":"https://avatars1.githubusercontent.com/u/615811?v=4","gravatar_id":"","url":"https://api.github.com/users/dahernan","html_url":"https://github.com/dahernan","followers_url":"https://api.github.com/users/dahernan/followers","following_url":"https://api.github.com/users/dahernan/following{/other_user}","gists_url":"https://api.github.com/users/dahernan/gists{/gist_id}","starred_url":"https://api.github.com/users/dahernan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dahernan/subscriptions","organizations_url":"https://api.github.com/users/dahernan/orgs","repos_url":"https://api.github.com/users/dahernan/repos","events_url":"https://api.github.com/users/dahernan/events{/privacy}","received_events_url":"https://api.github.com/users/dahernan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-03-13T18:01:50Z","updated_at":"2018-03-13T20:08:02Z","closed_at":null,"author_association":"NONE","body":"When I download a model state from classification box the prediction, examples, and classes are not saved. For example - I created a test model, model3, with 2 classes, 448 examples, and 8 predictions:\r\n```sh\r\n$ curl -X GET http://localhost:8084/classificationbox/models/model3/stats\r\n{\r\n\t\"success\": true,\r\n\t\"predictions\": 8,\r\n\t\"examples\": 448,\r\n\t\"classes\": [\r\n\t\t{\r\n\t\t\t\"name\": \"class1\",\r\n\t\t\t\"examples\": 224\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"name\": \"class2\",\r\n\t\t\t\"examples\": 224\r\n\t\t}\r\n\t]\r\n}\r\n```\r\n\r\nI download the model with \r\n```sh\r\n$ curl -X GET http://localhost:8084/classificationbox/state/model3 > model3.classificationbox\r\n```\r\n\r\nWhen I close machinebox and reopen it to test my saved state,  model3's stats are altered and it appears that only the name and ID have been saved:\r\n```sh\r\n$ curl -X GET http://localhost:8084/classificationbox/models\r\n{\r\n\t\"success\": true,\r\n\t\"models\": []\r\n}\r\n$ curl -X POST -F 'file=@model3.classificationbox' http://localhost:8084/classificationbox/state\r\n{\r\n\t\"success\": true,\r\n\t\"id\": \"model3\",\r\n\t\"name\": \"test\",\r\n\t\"options\": {}\r\n}\r\n$ curl -XGET http://localhost:8084/classificationbox/models\r\n{\r\n\t\"success\": true,\r\n\t\"models\": [\r\n\t\t{\r\n\t\t\t\"id\": \"model3\",\r\n\t\t\t\"name\": \"test\"\r\n\t\t}\r\n\t]\r\n}\r\n$ curl -X GET http://localhost:8084/classificationbox/models/model3/stats\r\n{\r\n\t\"success\": true,\r\n\t\"predictions\": 0,\r\n\t\"examples\": 0,\r\n\t\"classes\": []\r\n}\r\n```\r\nHow do I save the classes and examples for each model? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/machinebox/issues/issues/comments/372801109","html_url":"https://github.com/machinebox/issues/issues/23#issuecomment-372801109","issue_url":"https://api.github.com/repos/machinebox/issues/issues/23","id":372801109,"user":{"login":"laurenblackburn","id":9273154,"avatar_url":"https://avatars2.githubusercontent.com/u/9273154?v=4","gravatar_id":"","url":"https://api.github.com/users/laurenblackburn","html_url":"https://github.com/laurenblackburn","followers_url":"https://api.github.com/users/laurenblackburn/followers","following_url":"https://api.github.com/users/laurenblackburn/following{/other_user}","gists_url":"https://api.github.com/users/laurenblackburn/gists{/gist_id}","starred_url":"https://api.github.com/users/laurenblackburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurenblackburn/subscriptions","organizations_url":"https://api.github.com/users/laurenblackburn/orgs","repos_url":"https://api.github.com/users/laurenblackburn/repos","events_url":"https://api.github.com/users/laurenblackburn/events{/privacy}","received_events_url":"https://api.github.com/users/laurenblackburn/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T20:08:02Z","updated_at":"2018-03-13T20:08:02Z","author_association":"NONE","body":"Confirmed that the classes appear with I do `curl -XGET http://localhost:8084/classificationbox/models/model3`\r\n\r\nDoes this mean that there is no way to tell how many examples you've trained each class over if you train over more than one instance of classifcationbox?\r\n"}}
{"actor":{"display_login":"laurenblackburn"}}