{"action":"created","issue":{"url":"https://api.github.com/repos/ml5js/ml5-library/issues/121","repository_url":"https://api.github.com/repos/ml5js/ml5-library","labels_url":"https://api.github.com/repos/ml5js/ml5-library/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/ml5js/ml5-library/issues/121/comments","events_url":"https://api.github.com/repos/ml5js/ml5-library/issues/121/events","html_url":"https://github.com/ml5js/ml5-library/issues/121","id":320043822,"number":121,"title":"New Classifier / ImageClassifier API","user":{"login":"shiffman","id":191758,"avatar_url":"https://avatars0.githubusercontent.com/u/191758?v=4","gravatar_id":"","url":"https://api.github.com/users/shiffman","html_url":"https://github.com/shiffman","followers_url":"https://api.github.com/users/shiffman/followers","following_url":"https://api.github.com/users/shiffman/following{/other_user}","gists_url":"https://api.github.com/users/shiffman/gists{/gist_id}","starred_url":"https://api.github.com/users/shiffman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiffman/subscriptions","organizations_url":"https://api.github.com/users/shiffman/orgs","repos_url":"https://api.github.com/users/shiffman/repos","events_url":"https://api.github.com/users/shiffman/events{/privacy}","received_events_url":"https://api.github.com/users/shiffman/received_events","type":"User","site_admin":false},"labels":[{"id":930108429,"url":"https://api.github.com/repos/ml5js/ml5-library/labels/discussion","name":"discussion","color":"ffaaf2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-03T19:09:33Z","updated_at":"2018-05-23T20:44:12Z","closed_at":null,"author_association":"MEMBER","body":"This thread is for discussion about how to move these in-progress examples from here https://github.com/shiffman/Tensorflow-JS-Examples to ml5.\r\n\r\n```javascript\r\nlet classifier = new Classifier();\r\nlet imgClassifier = new ImageClassifier();\r\n```\r\n\r\nThings to discuss:\r\n* What is the default model architecture?\r\n* What arguments are specified via the constructor?\r\n* Do we create a default \"Regressor\" and what's a better name for that?\r\n* Is the ImageClassifier the same as the one we are using with MobileNet, but just initialized without a pre-trained model?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ml5js/ml5-library/issues/comments/391489985","html_url":"https://github.com/ml5js/ml5-library/issues/121#issuecomment-391489985","issue_url":"https://api.github.com/repos/ml5js/ml5-library/issues/121","id":391489985,"user":{"login":"shiffman","id":191758,"avatar_url":"https://avatars0.githubusercontent.com/u/191758?v=4","gravatar_id":"","url":"https://api.github.com/users/shiffman","html_url":"https://github.com/shiffman","followers_url":"https://api.github.com/users/shiffman/followers","following_url":"https://api.github.com/users/shiffman/following{/other_user}","gists_url":"https://api.github.com/users/shiffman/gists{/gist_id}","starred_url":"https://api.github.com/users/shiffman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiffman/subscriptions","organizations_url":"https://api.github.com/users/shiffman/orgs","repos_url":"https://api.github.com/users/shiffman/repos","events_url":"https://api.github.com/users/shiffman/events{/privacy}","received_events_url":"https://api.github.com/users/shiffman/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T20:44:12Z","updated_at":"2018-05-23T20:44:12Z","author_association":"MEMBER","body":"Notes from a discussion today:\r\n\r\n```\r\nImageClassifier  // a CNN with some default architecture\r\n                 // User specifies input dimensions and number of classes\r\n\r\nSoundClassifier  // sound classifier with default architecture?\r\n\r\nDataClassifier   // a generic classifier for numeric data in flat array (see tensorflow.js MLB example)\r\n                 // User specifies input size and number of classes\r\n\r\n```\r\n\r\nThe `ImageClassifier` could be created also with a pre-trained model:\r\n\r\n```javascript\r\n\r\n// Start with pre-trained model\r\n// This will yield mobilenet labels\r\nlet classifier1 = new ImageClassifier('MobileNet');\r\n\r\n// Turn on transfer learning\r\nclassifier1.addImage(img, label);\r\n// Etc.\r\nclassifier1.train(...);\r\n\r\n// Start with a totally blank classifier (a la MNIST)\r\nlet classifier2 = new ImageClassifier(28, 28, 10);\r\n```\r\n\r\n"}}
{"actor":{"display_login":"shiffman"}}