_ff.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:tensorfx 作者: TensorLab 项目源码 文件源码
def _init_parser(parser):
  """Initializes the parser for feed-forward models.
  """
  optimization = parser.add_argument_group(title='Optimization',
    description='Arguments determining the optimizer behavior.')
  optimization.add_argument('--learning-rate', metavar='rate', type=float, default=0.01,
                            help='The magnitude of learning to perform at each step.')

  nn = parser.add_argument_group(title='Neural Network',
    description='Arguments controlling the structure of the neural network.')
  nn.add_argument('--hidden-layers', metavar='units', type=int, required=False,
                  action=parser.var_args_action,
                  help='The size of each hidden layer to add.')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号