R 中的 H20 错误:Error en .Call(R_curl_fetch_memory, enc2utf8(url), handle, nonblocking):已达到经过的时间限制

问题描述 投票:0回答:1

当我尝试从 H2O 运行函数

h2o.splitFrame
时,我收到以下错误:

Error en .Call(R_curl_fetch_memory, enc2utf8(url), handle, nonblocking): 
  se ha alcanzado el límite de tiempo transcurrido

我尝试检查管理任务以从笔记本电脑中释放内存,并尝试了其他组合,但没有任何效果。在下面找到我的完整代码。

# Establecer el tiempo de espera de CURL
options(RCurlOptions = list(timeout = 600))

library(h2o)
library(parallel)
library(doParallel)

# Detectar el número de núcleos disponibles
n_cores <- parallel::detectCores()
registerDoParallel(cores=4)

# Inicializar H2O con parámetros mejorados
h2o.init(
  ip = "localhost",
  nthreads = max(1, n_cores - 1),
  max_mem_size = "6g"
)

# Deshabilitamos la salida de progreso
h2o.no_progress()

data <- as.h2o(ordata.ren)

splits <- h2o.splitFrame(
  data = data, 
  ratios = c(0.7, 0.15),  # partition data into 70%, 15%, 15% chunks
  destination_frames = c("train", "valid", "test"),  # frame ID (not required)
  seed = 1  # setting a seed will guarantee reproducibility
)

# When I run this part of the code, I receive the error message mentioned before:
# Error en .Call(R_curl_fetch_memory, enc2utf8(url), handle, nonblocking): 
#   se ha alcanzado el límite de tiempo transcurrido.

train <- splits[[1]]
valid <- splits[[2]]
test <- splits[[3]]

y <- "Price"
x <- setdiff(names(data), y)
print(x)
r h2o h2o.ai
1个回答
0
投票
如果安装了,

H2O 能够使用

curl
包代替
RCurl
。我会首先尝试使用
curl
软件包 (
install.packages("curl")
),如果这没有帮助,我想请您提供更多信息,例如 H2O 版本、操作系统版本、处理器架构(x86_64 或 M1),笔记本电脑上的总可用内存 (RAM) 和可用内存、数据集大小、数据集元数据(每列的类型和基数(如果适用)、行数、列数)。

如果安装 curl 没有帮助,也请随时向 H2O-3 提交

bug 报告
。错误报告模板应该指导您填写我们需要找出问题所在的最重要的内容。

© www.soinside.com 2019 - 2024. All rights reserved.