ures[0]]))
        })

        for i, x in enumerate(features):
            if i % 2:
                default_rule.append({
                    &#39;feature&#39;: x,
                    &#39;operator&#39;: &#39;&lt;&#39;,
                    &#39;pivot&#39;: str(max(X[:, x]))
                })
            else:
                default_rule.append({
                    &#39;feature&#39;: x,
                    &#39;operator&#39;: &#39;&gt;&#39;,
                    &#39;pivot&#39;: str(min(X[:, x]))
       