Python mxnet.metric.CompositeEvalMetric() Examples

The following are 2 code examples of mxnet.metric.CompositeEvalMetric(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module mxnet.metric , or try the search function .
Example #1
Source File: dataset.py    From autogluon with Apache License 2.0 5 votes vote down vote up
def __init__(self):
        is_pair = True
        class_labels = ['0', '1']
        metric = CompositeEvalMetric()
        metric.add(F1())
        metric.add(Accuracy())
        super(MRPCTask, self).__init__(class_labels, metric, is_pair) 
Example #2
Source File: dataset.py    From autogluon with Apache License 2.0 5 votes vote down vote up
def __init__(self):
        is_pair = True
        class_labels = ['0', '1']
        metric = CompositeEvalMetric()
        metric.add(F1())
        metric.add(Accuracy())
        super(QQPTask, self).__init__(class_labels, metric, is_pair)