&gt;&#39;, &#39;&lt;&#39;, &#39;==&#39;])
        ]

        # pick best condition
        Zs = [self._grow_rule_obj(X, y, r) for r in candidates]
        return candidates[Zs.index(max(Zs))]

    def _condition_classify(self, X, condition):
        &#34;&#34;&#34;
        Helper function to make classifications for a condition
        in a rule
        &#34;&#34;&#34;

        logic = &#39;X[:, {}] {} {}&#39;.format(
            condition[&#39;feature&#39;],
            condition[&#39;operator&#39;],
     