def refresh_meta(self):
<EOL>setattr(self, '<STR_LIT>', len(self.index))<EOL>setattr(self, '<STR_LIT>', np.arange(<NUM_LIT:0>, self._num_classes))<EOL>try:<EOL><INDENT>setattr(self, '<STR_LIT>',<EOL>next(label for label in self.columns if str(label).strip().lower()[<NUM_LIT:0>] in ('<STR_LIT>')))<EOL><DEDENT>except StopIteration:<EOL><INDENT>setattr(self, '<STR_LIT>', self.columns[-<NUM_LIT:1>])<EOL><DEDENT>try:<EOL><INDENT>setattr(self, '<STR_LIT>', next(label for label in self.columns if label != self._neg_label))<EOL><DEDENT>except StopIteration:<EOL><INDENT>setattr(self, '<STR_LIT>', infer_pos_label(self._neg_label))<EOL><DEDENT>self.__setattr__('<STR_LIT>', self.sum().astype(int))<EOL>self.__setattr__('<STR_LIT>', self._hist_labels.sum())<EOL>assert(self._num_total == self.sum().sum())<EOL>setattr(self, '<STR_LIT>', self._hist_labels.get(self._pos_label, <NUM_LIT:0>))<EOL>setattr(self, '<STR_LIT>', self._num_total - self._num_pos_labels)<EOL>setattr(self, '<STR_LIT>', self.T.sum())<EOL>setattr(self, '<STR_LIT>', self._hist_classes.get(self._pos_label, <NUM_LIT:0>))<EOL>setattr(self, '<STR_LIT>', self._hist_classes.sum() - self._num_pos)  <EOL>setattr(self, '<STR_LIT>', self.get(self._pos_label, pd.Series()).get(self._pos_label, <NUM_LIT:0>))<EOL>setattr(self, '<STR_LIT>', safe_div(float(self._tp), self._num_pos))<EOL>setattr(self, '<STR_LIT>', np.diag(self).sum() - self._tp)<EOL>setattr(self, '<STR_LIT>', safe_div(float(self._tn), self._num_neg))<EOL>setattr(self, '<STR_LIT>', self.get(self._pos_label, pd.Series()).sum() - self._tp)<EOL>setattr(self, '<STR_LIT>', safe_div(float(self._fp), self._num_neg))<EOL>setattr(self, '<STR_LIT>', self._num_neg_labels - self._tn)<EOL>setattr(self, '<STR_LIT>', safe_div(float(self._fn), self._num_pos))<EOL>setattr(self, '<STR_LIT>', safe_div(float(self._tpr), self._fpr))<EOL>setattr(self, '<STR_LIT>', safe_div(float(self._fnr), self._tnr))<EOL>setattr(self, '<STR_LIT>', safe_div(self._tp + self._tn, self._num_samples))<EOL>setattr(self, '<STR_LIT>', safe_div(self._tp, self._tp + self._fn))<EOL>setattr(self, '<STR_LIT>', safe_div(self._tn, self._tn + self._fp))<EOL>
Calculations that only depend on aggregate counts in Confusion Matrix go here