def _get_ensemble_score(self, db_conn, ensemble, y, y_bin):
        """Get score for model ensemble"""

        n_models = float(sum(ensemble.values()))
        ensemble_probs = np.zeros((len(y), self._n_classes))

        curs = db_conn.cursor()
        select_stmt = """select model_idx, probs
                         from model_scores
                         where model_idx in %s"""

        in_str = str(tuple(ensemble)).replace(',)', ')')
        curs.execute(in_str % select_stmt)

        for row in curs.fetchall():
            model_idx, probs = row
            probs = loads(str(probs))
            weight = ensemble[model_idx]
            ensemble_probs += probs * weight

        ensemble_probs /= n_models

        score = self._metric(y, y_bin, ensemble_probs)
        return score, ensemble_probs
dataset/ETHPy150Open dclambert/pyensemble/ensemble.py/EnsembleSelectionClassifier._get_ensemble_score/swapped operands of `%`