【问题标题】:H2O Automl in R and PythonR 和 Python 中的 H2O Automl
【发布时间】:2019-10-19 19:24:19
【问题描述】:

我有一个非常简单的问题。我最近开始研究 python。

这是 H2O Automl 的 R 代码

aml <- h2o.automl(x = x, y = y, project_name =gtp,max_runtime_secs = 99, max_runtime_secs_per_model = 3600,
                  leaderboard_frame = test,
                  training_frame = train, validation_frame = test,nfolds =0,
                  max_models = 1000,exclude_algos = c("GLM", "DeepLearning", "GBM","DRF","StackedEnsemble"),
                  seed =  22)

如何用 Python 编写这些?

aml = H2OAutoML(max_runtime_secs = 600, exclude_algos = "GLM", "DeepLearning", "GBM","DRF","StackedEnsemble" ,
                seed = 42,project_name =gtp)

aml.train(x = X, 
          y = y, validation_frame =hf_v
          training_frame = hf_train,
          leaderboard_frame = hf_test,)

【问题讨论】:

标签: h2o automl


【解决方案1】:
aml = H2OAutoML(max_runtime_secs = 600, exclude_algos = ["GLM", "DeepLearning", "GBM","DRF","StackedEnsemble"] ,
                seed = 42,project_name = 'gtp')
aml.train(x = X, 
          y = y, validation_frame =hf_v
          training_frame = hf_train,
          leaderboard_frame = hf_test,)

【讨论】:

  • 你能否解释一下你的不同之处,因此是正确的。只是转储一些代码给出零上下文
  • 我认为只有 exclude_algos = [ '.....'] 和 project_name = 'gtp' 需要添加到 python 版本的代码中。有什么问题吗?
猜你喜欢
  • 1970-01-01
  • 2017-04-13
  • 2020-12-17
  • 1970-01-01
  • 1970-01-01
  • 2021-10-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多