问题描述
我正在尝试对Titanic数据集运行H2o。我知道不应该有排序因数,也没有:
> str(dataset)
'data.frame': 889 obs. of 5 variables:
$ Survived: Factor w/ 2 levels "0","1": 1 2 2 2 1 1 1 1 2 2 ...
$ Pclass : Factor w/ 3 levels "1","2","3": 3 1 3 1 3 3 1 3 3 2 ...
$ Sex : Factor w/ 2 levels "0","1": 2 1 1 1 2 2 2 2 1 1 ...
$ Age : num [1:889,1] -0.592 0.638 -0.285 0.408 0.408 ...
..- attr(*,"dimnames")=List of 2
.. ..$ : NULL
.. ..$ : chr "Age"
$ Embarked: Factor w/ 3 levels "1","3": 1 2 1 1 1 3 1 1 1 2 ...
- attr(*,"na.action")= 'omit' Named int [1:2] 62 830
..- attr(*,"names")= chr [1:2] "62" "830"
但是仍然存在这个错误:
> dataset <- as.h2o(dataset)
ERROR: Unexpected HTTP Status code: 412 Precondition Failed (url = http://localhost:54321/3/Parse)
water.exceptions.H2OIllegalArgumentException
[1] "water.exceptions.H2OIllegalArgumentException: Provided column type matrix is unknown. Cannot proceed with parse due to invalid argument."
...
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)"
[39] " org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)"
[40] " org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)"
[41] " java.base/java.lang.Thread.run(Thread.java:834)"
Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion,urlSuffix = page,:
ERROR MESSAGE:
Provided column type matrix is unknown. Cannot proceed with parse due to invalid argument.
您能帮我解决这个问题吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)