vector memory exhausted using R package dtw

早过忘川 提交于 2019-12-11 15:19:31

问题


I am trying to use R package dtw to calculate the distance between two numeric vectors. Here is a sample of my code:

testNumbers <- sample(seq(from = 1, to = 60), size = 60000, replace = TRUE)
testNumbers2 <- sample(seq(from = 1, to = 60), size = 60000, replace = TRUE)

Sys.setenv('R_MAX_VSIZE'=32000000000)
Sys.getenv('R_MAX_VSIZE')
dtw(testNumbers, testNumbers2, distance.only = TRUE)

I will be using wav files that have been decoded, but that hasn't worked either, so I've been using this sample data. As per this post, I checked to make sure I am running the 64bit version of R (and I think that I am, because when I start R/R studio I see this: Platform: x86_64-apple-darwin15.6.0 (64-bit). I also changed the memory size (and checked the setting) in the code above as per this post, but I still get this error message Error: vector memory exhausted (limit reached?)

来源:https://stackoverflow.com/questions/52029851/vector-memory-exhausted-using-r-package-dtw

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!