Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

关于classification_cost()接口的问题

Open lcxaiw opened this issue 9 years ago • 4 comments

classification_cost(input=prob, label=target) 除了input和label之外,还有其他可以修改的接口嘛? 比如我想修改loss eval的方法 搜索paddle文档,并没有查到这个函数的接口说明 很是奇怪 @reyoung

lcxaiw avatar Feb 21 '17 09:02 lcxaiw

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 avatar Feb 21 '17 13:02 luotao1

@luotao1 是的,万分感谢。 这些是在layers.py中找到的嘛?如果是,以后我就自己去里面找了

lcxaiw avatar Feb 21 '17 13:02 lcxaiw

这些是在layers.py中找到的嘛

是的。 @lcxaiw

luotao1 avatar Feb 22 '17 02:02 luotao1

@luotao1 好的

lcxaiw avatar Feb 22 '17 11:02 lcxaiw