{"action":"created","issue":{"url":"https://api.github.com/repos/rtavenar/tslearn/issues/64","repository_url":"https://api.github.com/repos/rtavenar/tslearn","labels_url":"https://api.github.com/repos/rtavenar/tslearn/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/rtavenar/tslearn/issues/64/comments","events_url":"https://api.github.com/repos/rtavenar/tslearn/issues/64/events","html_url":"https://github.com/rtavenar/tslearn/issues/64","id":354702068,"node_id":"MDU6SXNzdWUzNTQ3MDIwNjg=","number":64,"title":"TimeSeriesSVR not working ","user":{"login":"tapiwa7","id":12390729,"node_id":"MDQ6VXNlcjEyMzkwNzI5","avatar_url":"https://avatars2.githubusercontent.com/u/12390729?v=4","gravatar_id":"","url":"https://api.github.com/users/tapiwa7","html_url":"https://github.com/tapiwa7","followers_url":"https://api.github.com/users/tapiwa7/followers","following_url":"https://api.github.com/users/tapiwa7/following{/other_user}","gists_url":"https://api.github.com/users/tapiwa7/gists{/gist_id}","starred_url":"https://api.github.com/users/tapiwa7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tapiwa7/subscriptions","organizations_url":"https://api.github.com/users/tapiwa7/orgs","repos_url":"https://api.github.com/users/tapiwa7/repos","events_url":"https://api.github.com/users/tapiwa7/events{/privacy}","received_events_url":"https://api.github.com/users/tapiwa7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-28T12:09:16Z","updated_at":"2018-09-05T13:34:26Z","closed_at":null,"author_association":"NONE","body":"i am having a regression problem. i have 2 datasets, a training(Z) and testing dataset(Test1 ). The target is y. i have 6 months of data (counts). When i predict the test dataset it gives me back the same  number for every row.What am i doing wrong? Below is the code and results\r\nprint(y.shape)\r\nZ = to_time_series_dataset(Z)\r\nTest1 =  Test1.values\r\nTest1 = to_time_series_dataset(Test1)\r\nprint(Z.shape)\r\nprint(Test1.shape)\r\n\r\nreg = TimeSeriesSVR(sz = 6,d =1 , kernel=\"gak\", gamma=\"auto\")\r\nmodel=reg.fit(Z, y)\r\npred =model.predict(Test1)\r\nprint(pred)\r\n\r\noutput\r\n(17,)\r\n(17, 6, 1)\r\n(162, 6, 1)\r\n[0.33529411 0.33529411 0.33529411 0.33529411 0.33529411 0.3352941\r\n 0.33529411 0.33529411 0.33529411 0.33529411 0.33529411 0.33529411\r\n 0.33529411 0.33529408 0.33529411 0.33529387 0.33529412 0.33529411\r\n 0.33529411 0.33529411 0.33529411 0.33529411 0.33529411 0.33529411\r\n 0.33533446 0.33529411 0.33529411 0.33529411 0.33529411 0.33529411\r\n 0.33509248 0.33529409 0.33529411 0.33529411 0.33525814 0.33529411\r\n 0.33529411 0.33529411 0.33529411 0.33529411 0.33529411 0.33529411\r\n\r\nIts showing same result for all 162 rows\r\n"},"comment":{"url":"https://api.github.com/repos/rtavenar/tslearn/issues/comments/418732421","html_url":"https://github.com/rtavenar/tslearn/issues/64#issuecomment-418732421","issue_url":"https://api.github.com/repos/rtavenar/tslearn/issues/64","id":418732421,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODczMjQyMQ==","user":{"login":"GillesVandewiele","id":5750603,"node_id":"MDQ6VXNlcjU3NTA2MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/5750603?v=4","gravatar_id":"","url":"https://api.github.com/users/GillesVandewiele","html_url":"https://github.com/GillesVandewiele","followers_url":"https://api.github.com/users/GillesVandewiele/followers","following_url":"https://api.github.com/users/GillesVandewiele/following{/other_user}","gists_url":"https://api.github.com/users/GillesVandewiele/gists{/gist_id}","starred_url":"https://api.github.com/users/GillesVandewiele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GillesVandewiele/subscriptions","organizations_url":"https://api.github.com/users/GillesVandewiele/orgs","repos_url":"https://api.github.com/users/GillesVandewiele/repos","events_url":"https://api.github.com/users/GillesVandewiele/events{/privacy}","received_events_url":"https://api.github.com/users/GillesVandewiele/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T13:34:26Z","updated_at":"2018-09-05T13:34:26Z","author_association":"NONE","body":"and so set(Test1) is EQUAL to set(pred) in your code snippet? I'm out of inspiration then of possible mistakes :), it's only 6 variables so maybe plot some distribution plots of training and test data and check if there are any large differences?"}}
{"actor":{"display_login":"GillesVandewiele"}}