gpt4 book ai didi

r - h2o.predict函数中没有显示执行过程

转载 作者:行者123 更新时间:2023-11-30 09:35:41 25 4
gpt4 key购买 nike

我是 R 的 h2o 包的新手。我想知道如何在h2o.function中不显示执行进程栏。

最佳答案

您可以使用 h2o.no_progress() 方法,该方法将禁用大多数功能的所有进度详细信息。这是一个使用 h2o.no_progress() 的示例脚本:

> dpath = "https://raw.github.com/h2oai/h2o/master/smalldata/logreg/prostate.csv"
> df1 = h2o.importFile(dpath)
|============================================================| 100%
> h2o.no_progress()
> df1 = h2o.importFile(dpath)
> df1
ID CAPSULE AGE RACE DPROS DCAPS PSA VOL GLEASON
1 1 0 65 1 2 1 1.4 0.0 6
2 2 0 72 1 3 2 6.7 0.0 7
3 3 0 70 1 1 2 4.9 0.0 6
4 4 0 76 2 2 1 51.2 20.0 7
5 5 0 69 1 1 1 12.3 55.9 6
6 6 1 71 1 3 2 3.3 0.0 8

[380 rows x 9 columns]

关于r - h2o.predict函数中没有显示执行过程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43364961/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com