{"action":"created","issue":{"url":"https://api.github.com/repos/Deepomatic/DIGITS/issues/7","labels_url":"https://api.github.com/repos/Deepomatic/DIGITS/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Deepomatic/DIGITS/issues/7/comments","events_url":"https://api.github.com/repos/Deepomatic/DIGITS/issues/7/events","html_url":"https://github.com/Deepomatic/DIGITS/pull/7","id":89295351,"number":7,"title":"Regression","user":{"login":"Alexis-Jacob","id":4202681,"avatar_url":"https://avatars.githubusercontent.com/u/4202681?v=3","gravatar_id":"","url":"https://api.github.com/users/Alexis-Jacob","html_url":"https://github.com/Alexis-Jacob","followers_url":"https://api.github.com/users/Alexis-Jacob/followers","following_url":"https://api.github.com/users/Alexis-Jacob/following{/other_user}","gists_url":"https://api.github.com/users/Alexis-Jacob/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexis-Jacob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexis-Jacob/subscriptions","organizations_url":"https://api.github.com/users/Alexis-Jacob/orgs","repos_url":"https://api.github.com/users/Alexis-Jacob/repos","events_url":"https://api.github.com/users/Alexis-Jacob/events{/privacy}","received_events_url":"https://api.github.com/users/Alexis-Jacob/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Deepomatic/DIGITS/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"groar","id":5939621,"avatar_url":"https://avatars.githubusercontent.com/u/5939621?v=3","gravatar_id":"","url":"https://api.github.com/users/groar","html_url":"https://github.com/groar","followers_url":"https://api.github.com/users/groar/followers","following_url":"https://api.github.com/users/groar/following{/other_user}","gists_url":"https://api.github.com/users/groar/gists{/gist_id}","starred_url":"https://api.github.com/users/groar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groar/subscriptions","organizations_url":"https://api.github.com/users/groar/orgs","repos_url":"https://api.github.com/users/groar/repos","events_url":"https://api.github.com/users/groar/events{/privacy}","received_events_url":"https://api.github.com/users/groar/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-06-18T13:34:55Z","updated_at":"2015-06-22T16:02:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Deepomatic/DIGITS/pulls/7","html_url":"https://github.com/Deepomatic/DIGITS/pull/7","diff_url":"https://github.com/Deepomatic/DIGITS/pull/7.diff","patch_url":"https://github.com/Deepomatic/DIGITS/pull/7.patch"},"body":"With this pull request you can create regression dataset and then train model regression\r\n\r\nTo create a dataset you have to provide two files:\r\n* A file containing the list of images and then associated labels\r\n* A file containing the name of the labels\r\n\r\n\r\n>>The first line of the file containing the list of images should contain a list of labels, (like that you can have many labels files)\r\n\r\nfiles.txt\r\n```\r\n4 1    \r\n/datasets/OverFeat/car/3_2_5_0_98.JPEG 0.19083700440528631 0.29326872246696034 1.0012334801762115 1.0131365638766521 3\r\n/datasets/OverFeat/car/3_2_5_0_99.JPEG 0.12035242290748896 0.29326872246696034 0.93074889867841426 1.0131365638766521 3\r\n\r\n```\r\nlabels.txt\r\n```\r\nxmin\r\nymin\r\nxmax\r\nymax\r\nperson\r\n```\r\n\r\nExample of network\r\n```\r\nlayer {\r\n  name: \"conv1\"\r\n  type: \"Convolution\"\r\n  bottom: \"data\"\r\n  top: \"conv1\"\r\n  param {\r\n    lr_mult: 1.0\r\n    decay_mult: 1.0\r\n  }\r\n  param {\r\n    lr_mult: 2.0\r\n    decay_mult: 0.0\r\n  }\r\n  convolution_param {\r\n    num_output: 96\r\n    kernel_size: 11\r\n    stride: 4\r\n  }\r\n}\r\nlayer {\r\n  name: \"relu1\"\r\n  type: \"ReLU\"\r\n  bottom: \"conv1\"\r\n  top: \"conv1\"\r\n}\r\nlayer {\r\n  name: \"norm1\"\r\n  type: \"LRN\"\r\n  bottom: \"conv1\"\r\n  top: \"norm1\"\r\n  lrn_param {\r\n    local_size: 5\r\n    alpha: 9.99999974738e-05\r\n    beta: 0.75\r\n  }\r\n}\r\nlayer {\r\n  name: \"pool1\"\r\n  type: \"Pooling\"\r\n  bottom: \"norm1\"\r\n  top: \"pool1\"\r\n  pooling_param {\r\n    pool: MAX\r\n    kernel_size: 3\r\n    stride: 2\r\n  }\r\n}\r\nlayer {\r\n  name: \"conv2\"\r\n  type: \"Convolution\"\r\n  bottom: \"pool1\"\r\n  top: \"conv2\"\r\n  param {\r\n    lr_mult: 1.0\r\n    decay_mult: 1.0\r\n  }\r\n  param {\r\n    lr_mult: 2.0\r\n    decay_mult: 0.0\r\n  }\r\n  convolution_param {\r\n    num_output: 256\r\n    pad: 2\r\n    kernel_size: 5\r\n    group: 2\r\n  }\r\n}\r\nlayer {\r\n  name: \"relu2\"\r\n  type: \"ReLU\"\r\n  bottom: \"conv2\"\r\n  top: \"conv2\"\r\n}\r\nlayer {\r\n  name: \"norm2\"\r\n  type: \"LRN\"\r\n  bottom: \"conv2\"\r\n  top: \"norm2\"\r\n  lrn_param {\r\n    local_size: 5\r\n    alpha: 9.99999974738e-05\r\n    beta: 0.75\r\n  }\r\n}\r\nlayer {\r\n  name: \"pool2\"\r\n  type: \"Pooling\"\r\n  bottom: \"norm2\"\r\n  top: \"pool2\"\r\n  pooling_param {\r\n    pool: MAX\r\n    kernel_size: 3\r\n    stride: 2\r\n  }\r\n}\r\nlayer {\r\n  name: \"conv3\"\r\n  type: \"Convolution\"\r\n  bottom: \"pool2\"\r\n  top: \"conv3\"\r\n  param {\r\n    lr_mult: 1.0\r\n    decay_mult: 1.0\r\n  }\r\n  param {\r\n    lr_mult: 2.0\r\n    decay_mult: 0.0\r\n  }\r\n  convolution_param {\r\n    num_output: 384\r\n    pad: 1\r\n    kernel_size: 3\r\n  }\r\n}\r\nlayer {\r\n  name: \"relu3\"\r\n  type: \"ReLU\"\r\n  bottom: \"conv3\"\r\n  top: \"conv3\"\r\n}\r\nlayer {\r\n  name: \"conv4\"\r\n  type: \"Convolution\"\r\n  bottom: \"conv3\"\r\n  top: \"conv4\"\r\n  param {\r\n    lr_mult: 1.0\r\n    decay_mult: 1.0\r\n  }\r\n  param {\r\n    lr_mult: 2.0\r\n    decay_mult: 0.0\r\n  }\r\n  convolution_param {\r\n    num_output: 384\r\n    pad: 1\r\n    kernel_size: 3\r\n    group: 2\r\n  }\r\n}\r\nlayer {\r\n  name: \"relu4\"\r\n  type: \"ReLU\"\r\n  bottom: \"conv4\"\r\n  top: \"conv4\"\r\n}\r\nlayer {\r\n  name: \"conv5\"\r\n  type: \"Convolution\"\r\n  bottom: \"conv4\"\r\n  top: \"conv5\"\r\n  param {\r\n    lr_mult: 1.0\r\n    decay_mult: 1.0\r\n  }\r\n  param {\r\n    lr_mult: 2.0\r\n    decay_mult: 0.0\r\n  }\r\n  convolution_param {\r\n    num_output: 256\r\n    pad: 1\r\n    kernel_size: 3\r\n    group: 2\r\n  }\r\n}\r\nlayer {\r\n  name: \"relu5\"\r\n  type: \"ReLU\"\r\n  bottom: \"conv5\"\r\n  top: \"conv5\"\r\n}\r\nlayer {\r\n  name: \"pool5\"\r\n  type: \"Pooling\"\r\n  bottom: \"conv5\"\r\n  top: \"pool5\"\r\n  pooling_param {\r\n    pool: MAX\r\n    kernel_size: 3\r\n    stride: 1\r\n  }\r\n}\r\nlayer {\r\n  name: \"fc7-new\"\r\n  type: \"InnerProduct\"\r\n  bottom: \"pool5\"\r\n  top: \"fc7-new\"\r\n  param {\r\n    lr_mult: 1.0\r\n    decay_mult: 1.0\r\n  }\r\n  param {\r\n    lr_mult: 2.0\r\n    decay_mult: 0.0\r\n  }\r\n  inner_product_param {\r\n    num_output: 256\r\n    weight_filler {\r\n      type: \"gaussian\"\r\n      std: 0.00499999988824\r\n    }\r\n    bias_filler {\r\n      type: \"constant\"\r\n      value: 0.10000000149\r\n    }\r\n  }\r\n}\r\nlayer {\r\n  name: \"relu7\"\r\n  type: \"ReLU\"\r\n  bottom: \"fc7-new\"\r\n  top: \"fc7-new\"\r\n}\r\nlayer {\r\n  name: \"drop7\"\r\n  type: \"Dropout\"\r\n  bottom: \"fc7-new\"\r\n  top: \"fc7-new\"\r\n  dropout_param {\r\n    dropout_ratio: 0.5\r\n  }\r\n}\r\nlayer {\r\n  name: \"fc8-new\"\r\n  type: \"InnerProduct\"\r\n  bottom: \"fc7-new\"\r\n  top: \"fc8-new\"\r\n  param {\r\n    lr_mult: 1.0\r\n    decay_mult: 1.0\r\n  }\r\n  param {\r\n    lr_mult: 2.0\r\n    decay_mult: 0.0\r\n  }\r\n  inner_product_param {\r\n    num_output: 128\r\n    weight_filler {\r\n      type: \"gaussian\"\r\n      std: 0.00499999988824\r\n    }\r\n    bias_filler {\r\n      type: \"constant\"\r\n      value: 0.10000000149\r\n    }\r\n  }\r\n}\r\nlayer {\r\n  name: \"relu8\"\r\n  type: \"ReLU\"\r\n  bottom: \"fc8-new\"\r\n  top: \"fc8-new\"\r\n}\r\nlayer {\r\n  name: \"drop8\"\r\n  type: \"Dropout\"\r\n  bottom: \"fc8-new\"\r\n  top: \"fc8-new\"\r\n  dropout_param {\r\n    dropout_ratio: 0.5\r\n  }\r\n}\r\nlayer {\r\n  name: \"fc9-1\"\r\n  type: \"InnerProduct\"\r\n  bottom: \"fc8-new\"\r\n  top: \"fc9-1\"\r\n  param {\r\n    lr_mult: 1.0\r\n    decay_mult: 1.0\r\n  }\r\n  param {\r\n    lr_mult: 2.0\r\n    decay_mult: 0.0\r\n  }\r\n  inner_product_param {\r\n    num_output: 4\r\n    weight_filler {\r\n      type: \"gaussian\"\r\n      std: 0.00999999977648\r\n    }\r\n    bias_filler {\r\n      type: \"constant\"\r\n      value: 0.0\r\n    }\r\n  }\r\n}\r\nlayer {\r\n  name: \"classe1\"\r\n  type: \"Label\"\r\n  bottom: \"fc9-1\"\r\n  bottom: \"label0\"\r\n  bottom: \"label1\"\r\n  top: \"classe1\"\r\n  label_param {\r\n    class_label: 0\r\n  }\r\n}\r\nlayer {\r\n  name: \"loss1\"\r\n  type: \"EuclideanLoss\"\r\n  bottom: \"classe1\"\r\n  bottom: \"label0\"\r\n  top: \"loss1\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Deepomatic/DIGITS/issues/comments/114164914","html_url":"https://github.com/Deepomatic/DIGITS/pull/7#issuecomment-114164914","issue_url":"https://api.github.com/repos/Deepomatic/DIGITS/issues/7","id":114164914,"user":{"login":"landscape-bot","id":10010231,"avatar_url":"https://avatars.githubusercontent.com/u/10010231?v=3","gravatar_id":"","url":"https://api.github.com/users/landscape-bot","html_url":"https://github.com/landscape-bot","followers_url":"https://api.github.com/users/landscape-bot/followers","following_url":"https://api.github.com/users/landscape-bot/following{/other_user}","gists_url":"https://api.github.com/users/landscape-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/landscape-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landscape-bot/subscriptions","organizations_url":"https://api.github.com/users/landscape-bot/orgs","repos_url":"https://api.github.com/users/landscape-bot/repos","events_url":"https://api.github.com/users/landscape-bot/events{/privacy}","received_events_url":"https://api.github.com/users/landscape-bot/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T16:02:48Z","updated_at":"2015-06-22T16:02:48Z","body":"[![Code Health](https://landscape.io/badge/194410/landscape.svg?style=flat)](https://landscape.io/diff/183354)\nRepository health decreased by 0.98% when pulling **[35bd6e8](https://github.com/Deepomatic/DIGITS/commit/35bd6e8aef4487daec3019e45342e374ad27fcf3) on regression** into **[6acb21c](https://github.com/Deepomatic/DIGITS/commit/6acb21c1b9847ac06832b88a65eb297f65915649) on master**.\n\n * [80 new problems were found](https://landscape.io/diff/183354) (including 8 errors and 46 code smells).\n * [4 problems were fixed](https://landscape.io/diff/183354/fixed) (including 3 errors and 0 code smells)."}}