(self, steps=1)
Initialize the metric.
Initialize the metric.
Initialize the metric .
def __init__(self, steps=1):
        """
        Initialize the metric.
        """
        self.preds = self.be.iobuf((1, steps), persist_values=False)
        self.hyps = self.be.iobuf((1, steps), persist_values=False)
        self.outputs = self.preds  # Contains per record metric
        self.metric_names = ['Top1Misclass']
def __init__ ( self , steps = 1 ) : self . preds = self . be . iobuf ( ( 1 , steps ) , persist_values = False ) self . hyps = self . be . iobuf ( ( 1 , steps ) , persist_values = False ) self . outputs = self . preds # Contains per record metric self . metric_names = [ 'Top1Misclass' ]