{"action":"created","issue":{"url":"https://api.github.com/repos/udacity/sdc-issue-reports/issues/277","repository_url":"https://api.github.com/repos/udacity/sdc-issue-reports","labels_url":"https://api.github.com/repos/udacity/sdc-issue-reports/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/udacity/sdc-issue-reports/issues/277/comments","events_url":"https://api.github.com/repos/udacity/sdc-issue-reports/issues/277/events","html_url":"https://github.com/udacity/sdc-issue-reports/issues/277","id":195977526,"number":277,"title":"Tensoflow Lab, Problem 1 issue","user":{"login":"html5cat","id":823890,"avatar_url":"https://avatars.githubusercontent.com/u/823890?v=3","gravatar_id":"","url":"https://api.github.com/users/html5cat","html_url":"https://github.com/html5cat","followers_url":"https://api.github.com/users/html5cat/followers","following_url":"https://api.github.com/users/html5cat/following{/other_user}","gists_url":"https://api.github.com/users/html5cat/gists{/gist_id}","starred_url":"https://api.github.com/users/html5cat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/html5cat/subscriptions","organizations_url":"https://api.github.com/users/html5cat/orgs","repos_url":"https://api.github.com/users/html5cat/repos","events_url":"https://api.github.com/users/html5cat/events{/privacy}","received_events_url":"https://api.github.com/users/html5cat/received_events","type":"User","site_admin":false},"labels":[{"id":469681644,"url":"https://api.github.com/repos/udacity/sdc-issue-reports/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"Brok-Bucholtz","id":4749091,"avatar_url":"https://avatars.githubusercontent.com/u/4749091?v=3","gravatar_id":"","url":"https://api.github.com/users/Brok-Bucholtz","html_url":"https://github.com/Brok-Bucholtz","followers_url":"https://api.github.com/users/Brok-Bucholtz/followers","following_url":"https://api.github.com/users/Brok-Bucholtz/following{/other_user}","gists_url":"https://api.github.com/users/Brok-Bucholtz/gists{/gist_id}","starred_url":"https://api.github.com/users/Brok-Bucholtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brok-Bucholtz/subscriptions","organizations_url":"https://api.github.com/users/Brok-Bucholtz/orgs","repos_url":"https://api.github.com/users/Brok-Bucholtz/repos","events_url":"https://api.github.com/users/Brok-Bucholtz/events{/privacy}","received_events_url":"https://api.github.com/users/Brok-Bucholtz/received_events","type":"User","site_admin":false},"assignees":[{"login":"Brok-Bucholtz","id":4749091,"avatar_url":"https://avatars.githubusercontent.com/u/4749091?v=3","gravatar_id":"","url":"https://api.github.com/users/Brok-Bucholtz","html_url":"https://github.com/Brok-Bucholtz","followers_url":"https://api.github.com/users/Brok-Bucholtz/followers","following_url":"https://api.github.com/users/Brok-Bucholtz/following{/other_user}","gists_url":"https://api.github.com/users/Brok-Bucholtz/gists{/gist_id}","starred_url":"https://api.github.com/users/Brok-Bucholtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brok-Bucholtz/subscriptions","organizations_url":"https://api.github.com/users/Brok-Bucholtz/orgs","repos_url":"https://api.github.com/users/Brok-Bucholtz/repos","events_url":"https://api.github.com/users/Brok-Bucholtz/events{/privacy}","received_events_url":"https://api.github.com/users/Brok-Bucholtz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-12-16T04:14:29Z","updated_at":"2016-12-21T21:56:12Z","closed_at":"2016-12-21T21:56:12Z","body":"I’m getting an issue in Tensoflow Lab => problem 1 => Cell3\r\n```python\r\nassert is_features_normal, 'You skipped the step to normalize the features'\r\nassert is_labels_encod, 'You skipped the step to One-Hot Encode the labels'\r\n\r\n# Get randomized datasets for training and validation\r\ntrain_features, valid_features, train_labels, valid_labels = train_test_split(\r\n    train_features,\r\n    train_labels,\r\n    test_size=0.05,\r\n    random_state=832289)\r\n\r\nprint('Training features and labels randomized and split.')\r\n```\r\n\r\n\r\n```\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-15-f6ff07426927> in <module>()\r\n      7     train_labels,\r\n      8     test_size=0.05,\r\n----> 9     random_state=832289)\r\n     10 \r\n     11 print('Training features and labels randomized and split.')\r\n\r\n/Users/yurik/anaconda/envs/CarND/lib/python3.5/site-packages/sklearn/model_selection/_split.py in train_test_split(*arrays, **options)\r\n   1660         test_size = 0.25\r\n   1661 \r\n-> 1662     arrays = indexable(*arrays)\r\n   1663 \r\n   1664     if stratify is not None:\r\n\r\n/Users/yurik/anaconda/envs/CarND/lib/python3.5/site-packages/sklearn/utils/validation.py in indexable(*iterables)\r\n    204         else:\r\n    205             result.append(np.array(X))\r\n--> 206     check_consistent_length(*result)\r\n    207     return result\r\n    208 \r\n\r\n/Users/yurik/anaconda/envs/CarND/lib/python3.5/site-packages/sklearn/utils/validation.py in check_consistent_length(*arrays)\r\n    179     if len(uniques) > 1:\r\n    180         raise ValueError(\"Found input variables with inconsistent numbers of\"\r\n--> 181                          \" samples: %r\" % [int(l) for l in lengths])\r\n    182 \r\n    183 \r\n\r\nValueError: Found input variables with inconsistent numbers of samples: [117600000, 150000]\r\n```"},"comment":{"url":"https://api.github.com/repos/udacity/sdc-issue-reports/issues/comments/268651624","html_url":"https://github.com/udacity/sdc-issue-reports/issues/277#issuecomment-268651624","issue_url":"https://api.github.com/repos/udacity/sdc-issue-reports/issues/277","id":268651624,"user":{"login":"html5cat","id":823890,"avatar_url":"https://avatars.githubusercontent.com/u/823890?v=3","gravatar_id":"","url":"https://api.github.com/users/html5cat","html_url":"https://github.com/html5cat","followers_url":"https://api.github.com/users/html5cat/followers","following_url":"https://api.github.com/users/html5cat/following{/other_user}","gists_url":"https://api.github.com/users/html5cat/gists{/gist_id}","starred_url":"https://api.github.com/users/html5cat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/html5cat/subscriptions","organizations_url":"https://api.github.com/users/html5cat/orgs","repos_url":"https://api.github.com/users/html5cat/repos","events_url":"https://api.github.com/users/html5cat/events{/privacy}","received_events_url":"https://api.github.com/users/html5cat/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T21:56:12Z","updated_at":"2016-12-21T21:56:12Z","body":"Fixed by using a different iterator over image data."}}
{"actor":{"display_login":"html5cat"}}