{"action":"created","issue":{"url":"https://api.github.com/repos/sethjuarez/numl/issues/68","repository_url":"https://api.github.com/repos/sethjuarez/numl","labels_url":"https://api.github.com/repos/sethjuarez/numl/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/sethjuarez/numl/issues/68/comments","events_url":"https://api.github.com/repos/sethjuarez/numl/issues/68/events","html_url":"https://github.com/sethjuarez/numl/issues/68","id":219844075,"number":68,"title":"Datetime as label to learn - error \"Dimensions do not match\"","user":{"login":"SujataZ","id":21217730,"avatar_url":"https://avatars3.githubusercontent.com/u/21217730?v=3","gravatar_id":"","url":"https://api.github.com/users/SujataZ","html_url":"https://github.com/SujataZ","followers_url":"https://api.github.com/users/SujataZ/followers","following_url":"https://api.github.com/users/SujataZ/following{/other_user}","gists_url":"https://api.github.com/users/SujataZ/gists{/gist_id}","starred_url":"https://api.github.com/users/SujataZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SujataZ/subscriptions","organizations_url":"https://api.github.com/users/SujataZ/orgs","repos_url":"https://api.github.com/users/SujataZ/repos","events_url":"https://api.github.com/users/SujataZ/events{/privacy}","received_events_url":"https://api.github.com/users/SujataZ/received_events","type":"User","site_admin":false},"labels":[{"id":35255952,"url":"https://api.github.com/repos/sethjuarez/numl/labels/bug","name":"bug","color":"e10c02","default":true}],"state":"open","locked":false,"assignee":{"login":"bdschrisk","id":10376645,"avatar_url":"https://avatars1.githubusercontent.com/u/10376645?v=3","gravatar_id":"","url":"https://api.github.com/users/bdschrisk","html_url":"https://github.com/bdschrisk","followers_url":"https://api.github.com/users/bdschrisk/followers","following_url":"https://api.github.com/users/bdschrisk/following{/other_user}","gists_url":"https://api.github.com/users/bdschrisk/gists{/gist_id}","starred_url":"https://api.github.com/users/bdschrisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdschrisk/subscriptions","organizations_url":"https://api.github.com/users/bdschrisk/orgs","repos_url":"https://api.github.com/users/bdschrisk/repos","events_url":"https://api.github.com/users/bdschrisk/events{/privacy}","received_events_url":"https://api.github.com/users/bdschrisk/received_events","type":"User","site_admin":false},"assignees":[{"login":"bdschrisk","id":10376645,"avatar_url":"https://avatars1.githubusercontent.com/u/10376645?v=3","gravatar_id":"","url":"https://api.github.com/users/bdschrisk","html_url":"https://github.com/bdschrisk","followers_url":"https://api.github.com/users/bdschrisk/followers","following_url":"https://api.github.com/users/bdschrisk/following{/other_user}","gists_url":"https://api.github.com/users/bdschrisk/gists{/gist_id}","starred_url":"https://api.github.com/users/bdschrisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdschrisk/subscriptions","organizations_url":"https://api.github.com/users/bdschrisk/orgs","repos_url":"https://api.github.com/users/bdschrisk/repos","events_url":"https://api.github.com/users/bdschrisk/events{/privacy}","received_events_url":"https://api.github.com/users/bdschrisk/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-04-06T09:51:10Z","updated_at":"2017-04-06T22:47:39Z","closed_at":null,"body":"Hi Seth,\r\n\r\nI am trying to set one integer as a feature & one datetime as the label for LinearRegression generator\r\nI get error as \"Dimensions do not match\" for Learner.Learn method.\r\n\r\nThe training data passed is like \r\n{\"Timestamp\": \"2016-06-06T15:49:46.6420000Z\", \"num1\":32}\r\n\r\nBelow is the stacktrace -\r\n\r\n   at numl.Math.LinearAlgebra.Vector.Dot(Vector one, Vector two)\r\n   at numl.Supervised.Regression.LinearRegressionModel.Predict(Vector x)\r\n   at numl.Learner.GenerateModel(IGenerator generator, Matrix x, Vector y, IEnumerable`1 examples, Double trainingPct, Int32 total)\r\n   at numl.Learner.Learn(IEnumerable`1 examples, Double trainingPercentage, Int32 repeat, IGenerator generator)\r\n   at MyLib.Repo.GenerateMyModel(List`1 trainingData)\r\n\r\nCan you please help?\r\n"},"comment":{"url":"https://api.github.com/repos/sethjuarez/numl/issues/comments/292348542","html_url":"https://github.com/sethjuarez/numl/issues/68#issuecomment-292348542","issue_url":"https://api.github.com/repos/sethjuarez/numl/issues/68","id":292348542,"user":{"login":"bdschrisk","id":10376645,"avatar_url":"https://avatars1.githubusercontent.com/u/10376645?v=3","gravatar_id":"","url":"https://api.github.com/users/bdschrisk","html_url":"https://github.com/bdschrisk","followers_url":"https://api.github.com/users/bdschrisk/followers","following_url":"https://api.github.com/users/bdschrisk/following{/other_user}","gists_url":"https://api.github.com/users/bdschrisk/gists{/gist_id}","starred_url":"https://api.github.com/users/bdschrisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdschrisk/subscriptions","organizations_url":"https://api.github.com/users/bdschrisk/orgs","repos_url":"https://api.github.com/users/bdschrisk/repos","events_url":"https://api.github.com/users/bdschrisk/events{/privacy}","received_events_url":"https://api.github.com/users/bdschrisk/received_events","type":"User","site_admin":false},"created_at":"2017-04-06T22:47:39Z","updated_at":"2017-04-06T22:47:39Z","body":"Hi there,\r\n\r\nCan you check that the training data has the same number of features as your input features at inference time - i.e. calling Predict().  This would be the case if you were including a new column not seen during training or possibly including the label when predicting.\r\n\r\nAre you able to show the features from the Generator object?\r\n"}}
{"actor":{"display_login":"bdschrisk"}}