Paddle
Paddle copied to clipboard
关于classification_cost()接口的问题
classification_cost(input=prob, label=target) 除了input和label之外,还有其他可以修改的接口嘛? 比如我想修改loss eval的方法 搜索paddle文档,并没有查到这个函数的接口说明 很是奇怪 @reyoung
def classification_cost(input,
label,
weight=None,
name=None,
evaluator=classification_error_evaluator,
layer_attr=None):
"""
classification cost Layer.
:param name: layer name.
:type name: basestring
:param input: input layer name. network output.
:type input: LayerOutput
:param label: label layer name. data_layer often.
:type label: LayerOutput
:param weight: The weight affects the cost, namely the scale of cost.
It is an optional argument.
:type weight: LayerOutput
:param evaluator: Evaluator method.
"""
从接口中看,您说的改loss eval的方法,应该修改evaluator传入参数? @reyoung @qingqing01
@luotao1 是的,万分感谢。 这些是在layers.py中找到的嘛?如果是,以后我就自己去里面找了
这些是在layers.py中找到的嘛
是的。 @lcxaiw
@luotao1 好的