当将poisson GLM拟合到数据集时 - 我收到此错误代码(错误:来自localhost / 127.0.0.1的DistributedException:54321:'null',由java.lang.NegativeArraySizeException引起)并且难以理解为什么会发生这种情况。我在下面发布了一个可重复的示例,其中的玩具数据集与我的数据集和我正在使用的参数大致相似:
df <- data.frame(count = c(512,1025,234,324),gene = c("gene_1","gene_2","gene_1","gene_2"),factor = c(1,2,3,4),factor_2 = c("a","b","c","d"),bound = c("bound","unbound","bound","unbound"))
df <- as.h2o(df)
intx_terms_suppress <- c("factor_2.a","factor_2.b","factor_2.c","factor_2.d","bound.bound","bound.unbound")
constraints <- data.frame(names=intx_terms_suppress,
lower_bounds=0,
upper_bounds=0,
beta_given=0)
y <- 1
train <- c("gene","factor","factor_2","bound")
interactions <- list(c("factor_2", "bound"))
df[,1] <- as.numeric(df[,1])
df[,2:5] <- as.factor(df[,2:5])
fit <- h2o.glm(y = y, x = train, training_frame = df, family = "poisson", standardize = FALSE, interaction_pairs = interactions, beta_constraints = constraints)
我感谢任何人可能提供的任何帮助。谢谢你!
编辑:更多信息。这是我的会话信息:
H2O cluster uptime: 2 seconds 363 milliseconds
H2O cluster timezone: America/New_York
H2O data parsing timezone: UTC
H2O cluster version: 3.18.0.4
H2O cluster version age: 17 days
H2O cluster name: H2O_started_from_R_ra2816_ywt950
H2O cluster total nodes: 1
H2O cluster total memory: 444.44 GB
H2O cluster total cores: 24
H2O cluster allowed cores: 24
H2O cluster healthy: TRUE
H2O Connection ip: localhost
H2O Connection port: 54321
H2O Connection proxy: NA
H2O Internal Security: FALSE
H2O API Extensions: XGBoost, Algos, AutoML, Core V3, Core V4
R Version: R version 3.4.4 (2018-03-15)