def update_dict(self, label, pred):
if self.output_names is not None:<EOL><INDENT>pred = [pred[name] for name in self.output_names]<EOL><DEDENT>else:<EOL><INDENT>pred = list(pred.values())<EOL><DEDENT>if self.label_names is not None:<EOL><INDENT>label = [label[name] for name in self.label_names]<EOL><DEDENT>else:<EOL><INDENT>label = list(label.values())<EOL><DEDENT>self.update(label, pred)<EOL>
Update the internal evaluation with named label and pred

        Parameters
        ----------
        labels : OrderedDict of str -> NDArray
            name to array mapping for labels.

        preds : OrderedDict of str -> NDArray
            name to array mapping of predicted outputs.