[R] tsmp::find_discord help

2021-11-20 Thread David Katz via R-help
windowSize <- 114L myData <- c(270.462263440434, 272.664102077857, 269.796430162527, 265.715722218109, 264.406853005756, 265.084587771026, 264.098291489715, 260.43527948116, 258.516029706132, 257.495599873085, 256.301471509598, 257.3508273663, 255.286756542046, 253.920890634228, 252.536181194196,

[R] tsmp::find_discord failure

2021-11-20 Thread David Katz via R-help
I need help to understand why this fails: windowSize <- 114L myData <- c(270.462263440434, 272.664102077857, 269.796430162527, 265.715722218109, 264.406853005756, 265.084587771026, 264.098291489715, 260.43527948116, 258.516029706132, 257.495599873085, 256.301471509598, 257.3508273663, 255.2867565

[R] problem using tsmp::find_discord

2021-11-20 Thread David Katz via R-help
Error from this try: (data below) library(tsmp) mp.obj <- stomp(myData, window_size = windowSize) #ok find_discord(mp.obj, data=input.dt$MeasurementValue) ## Warning in dist_profile(data, data, nn, window_size = .mp$w, index = discord_idx) : ## Warning: Result may be inconsistent if the size o

[R] gbm question

2016-11-21 Thread David Katz via R-help
R-Help, Please help me understand why these models and predictions are different: library(gbm) set.seed(32321) N <- 1000 X1 <- runif(N) X2 <- 2*runif(N) X3 <- ordered(sample(letters[1:4],N,replace=TRUE),levels=letters[4:1]) X4 <- factor(sample(letters[1:6],N,replace=TRUE))