# scikit-learn__scikit-learn-13142 # Loki Mode Multi-Agent Patch # Attempts: 1 --- a/sklearn/mixture/base.py +++ b/sklearn/mixture/base.py @@ -257,11 +257,11 @@ class BaseMixture(DensityMixin, BaseEstimator, metaclass=ABCMeta): self._set_parameters(best_params) self.n_iter_ = best_n_iter + self.lower_bound_ = max_lower_bound # Always do a final e-step to guarantee that the labels returned by # fit_predict(X) are always consistent with fit(X).predict(X) # for any value of max_iter and tol (and any random_state). _, log_resp = self._e_step(X) - self.lower_bound_ = max_lower_bound return log_resp.argmax(axis=1)