def BIC(self,data=None):
<EOL>if data is None:<EOL><INDENT>assert len(self.labels_list) > <NUM_LIT:0>,"<STR_LIT>"<EOL>return -<NUM_LIT:2>*sum(self.log_likelihood(l.data) for l in self.labels_list) +self.num_parameters * np.log(sum(l.data.shape[<NUM_LIT:0>] for l in self.labels_list))<EOL><DEDENT>else:<EOL><INDENT>return -<NUM_LIT:2>*self.log_likelihood(data) + self.num_parameters * np.log(data.shape[<NUM_LIT:0>])<EOL><DEDENT>
BIC on the passed data.
If passed data is None (default), calculates BIC on the model's assigned data.