【问题标题】:Grid search for hyper-paramerters in torch / lua网格搜索torch / lua中的超参数
【发布时间】:2015-08-14 06:01:39
【问题描述】:

我是 torch/lua 的新手,我正在尝试评估一些不同的优化算法和每种算法的不同参数。

算法:optim.sgd optim.lbfgs

参数:

  • 学习率:{1e-1、1e-2、1e-3}
  • weight_decay:{1e-1, 1e-2}

所以我想要实现的是尝试超参数的每种组合,并为每个算法获得最佳参数集。

有没有类似的东西:

param_grid = [
 {'C': [1, 10, 100, 1000], 'kernel': ['linear']},
 {'C': [1, 10, 100, 1000], 'gamma': [0.001, 0.0001], 'kernel': ['rbf']},
]

http://scikit-learn.org/stable/modules/grid_search.html 中可用torch 处理吗?

任何建议都会很好!

【问题讨论】:

    标签: lua torch


    【解决方案1】:

    试试这个正在开发的超优化库: https://github.com/nicholas-leonard/hypero

    【讨论】:

      猜你喜欢
      • 2023-03-09
      • 2016-07-12
      • 2019-10-15
      • 2021-08-24
      • 2018-11-08
      • 1970-01-01
      • 2016-04-09
      • 2013-12-27
      • 2021-02-07
      相关资源
      最近更新 更多