{"action":"created","issue":{"url":"https://api.github.com/repos/asardaes/dtwclust/issues/15","repository_url":"https://api.github.com/repos/asardaes/dtwclust","labels_url":"https://api.github.com/repos/asardaes/dtwclust/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/asardaes/dtwclust/issues/15/comments","events_url":"https://api.github.com/repos/asardaes/dtwclust/issues/15/events","html_url":"https://github.com/asardaes/dtwclust/issues/15","id":237762570,"number":15,"title":"Calculate distmat using tsclustFamily","user":{"login":"xtianfall","id":26542233,"avatar_url":"https://avatars1.githubusercontent.com/u/26542233?v=3","gravatar_id":"","url":"https://api.github.com/users/xtianfall","html_url":"https://github.com/xtianfall","followers_url":"https://api.github.com/users/xtianfall/followers","following_url":"https://api.github.com/users/xtianfall/following{/other_user}","gists_url":"https://api.github.com/users/xtianfall/gists{/gist_id}","starred_url":"https://api.github.com/users/xtianfall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtianfall/subscriptions","organizations_url":"https://api.github.com/users/xtianfall/orgs","repos_url":"https://api.github.com/users/xtianfall/repos","events_url":"https://api.github.com/users/xtianfall/events{/privacy}","received_events_url":"https://api.github.com/users/xtianfall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-06-22T08:03:03Z","updated_at":"2017-06-26T08:23:22Z","closed_at":null,"body":"Hello, now I'm trying to calculate the distance matrix but i dont get a matriz when i do this:\r\n```\r\nfam <- new(\"tsclustFamily\", dist = \"dtw\",preproc=zscore,control=partitional_control(symmetric=FALSE))\r\nfam@dist(muestra[1:10,])\r\n```\r\nI get this: \r\n> Error in attr(d, \"dimnames\") <- dim_names : \r\n>   length of 'dimnames' [1] not equal to array extent\r\n\r\nIf i change the second line for this `fam@dist(muestra[1:10,],pairwise=TRUE)`\r\nI get:  \r\n> [1] 0 0 0 0 0 0 0 0 0 0\r\n\r\nI know that I can use `proxy::dist(muestra[1:100,], method = \"dtw\")` but it's not valid por paralelization, and the 10 is just for test, it'd 10k. \r\n\r\nThe data estructure is the following:\r\n```\r\nhead(muestra)\r\n         X00000001        X00000002        X00000003        X00000004        X00000005        X00000006        X00000007\r\n1              546              335              397                0              350              192                0\r\n2             9482            11608             4692             2244             2114             5753             8482\r\n3             4059             3500             4233             6023             3772             3936             4638\r\n4             7474             4193             4122             7488             4768             4300             5302\r\n5                0                2                0                2                0                9                0\r\n```\r\n```\r\n> dim(muestra);class(muestra)\r\n[1] 10000    90\r\n[1] \"data.table\" \"data.frame\"\r\n```\r\nThanks ;)\r\n\r\nPD: Using v 4.0.1"},"comment":{"url":"https://api.github.com/repos/asardaes/dtwclust/issues/comments/310994526","html_url":"https://github.com/asardaes/dtwclust/issues/15#issuecomment-310994526","issue_url":"https://api.github.com/repos/asardaes/dtwclust/issues/15","id":310994526,"user":{"login":"xtianfall","id":26542233,"avatar_url":"https://avatars1.githubusercontent.com/u/26542233?v=3","gravatar_id":"","url":"https://api.github.com/users/xtianfall","html_url":"https://github.com/xtianfall","followers_url":"https://api.github.com/users/xtianfall/followers","following_url":"https://api.github.com/users/xtianfall/following{/other_user}","gists_url":"https://api.github.com/users/xtianfall/gists{/gist_id}","starred_url":"https://api.github.com/users/xtianfall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtianfall/subscriptions","organizations_url":"https://api.github.com/users/xtianfall/orgs","repos_url":"https://api.github.com/users/xtianfall/repos","events_url":"https://api.github.com/users/xtianfall/events{/privacy}","received_events_url":"https://api.github.com/users/xtianfall/received_events","type":"User","site_admin":false},"created_at":"2017-06-26T08:23:22Z","updated_at":"2017-06-26T08:23:22Z","body":"UPDATE:\r\nWith \r\n```\r\nfam <- new(\"tsclustFamily\", dist = \"dtw_lb\",preproc=zscore, control = partitional_control(symmetric = TRUE))\r\nseries <- dtwclust:::any2list(muestra)\r\nmatriz10kdtw=fam@dist(series,window.size = 15L)\r\n```\r\nIt works :D\r\n\r\nBut it's very strange that it fails with the others :S"}}
{"actor":{"display_login":"xtianfall"}}