def get_accuracy(self, scalar=None):
<EOL>if ((not self._scalar_stats and not scalar and self._num_classes > <NUM_LIT:2>) or<EOL>((scalar is False or self._scalar_stats is False) and self._num_classes > <NUM_LIT:1>)):<EOL><INDENT>return pd.Series(PrettyDict([(k, safe_div(self[k][k], self._num_total)) for k in self.columns]))<EOL><DEDENT>return self._binary_accuracy<EOL>
Num_True_Positive / Num_Samples