保存h20 glm模型没有问题(因为文件名更短),但是使用完全相同的保存过程保存h2o深度学习模型却有问题
我试过了:
library(h2o)
localH2O = h2o.init()
a <- runif(1000)
b <- runif(1000)
c <- runif(1000)
d <- 5*a+2*b^2+c*a
df1 <- data.frame(a,b,c,d)
df1.hex <- as.h2o(df1)
test.dl <- h2o.deeplearning(x = 1:3, y = 4, training_frame = df1.hex)
dlmodel.path = h2o.saveModel(test.dl, dir = "file:///C:/", name = "modeldl")
dlmodel.path但是会得到一个错误:
Error in .h2o.doSafeREST(conn = conn, h2oRestApiVersion = h2oRestApiVersion, :
FS IO Failure:
accessed path : file:///C://modeldl/modelmetrics_DeepLearningModel__9fe11910a85d1371379ac7d536d64359_-5064771152374762981_on_Key_Frame__C__Users_store_AppData_Local_Temp_RtmpGGylNe_file1f18787f2989_csv_1.hex_2.DeepLearningModel__9fe11910a85d1371379ac7d536d64359.temporary.train.chunks8_-6759658083019717917.bin我使用的是Windows10计算机。正如RHA所指出的,文件路径/名称非常长,并且对于windows.How来说太长了。我能克服这个问题吗?大多数文件路径字符是由h20程序自动生成的。我使用的是最新的h20更新。from.sessionInfo():附加的其他包:1个h2o_3.0.0.30
如果你能帮助我,我将不胜感激。
发布于 2015-10-25 06:01:55
您是否尝试过在h2o.deeplearning命令中添加model_id = "something“?
test.dl <- h2o.deeplearning(x = 1:3, y = 4, training_frame = df1.hex, model_id = "myTest.dl")我希望它能解决你的问题。
https://stackoverflow.com/questions/33053714
复制相似问题