mp; Singer (1999)
        used to compare the learned rule with a default rule
        &#34;&#34;&#34;
        W_plus, W_minus = self._get_design_matrices(X, y, rule)
        return 1 - np.square(np.sqrt(W_plus) - np.sqrt(W_minus))

    def _set_rule_or_default(self, X, y, learned_rule):
        &#34;&#34;&#34;
        Compare output of eq 5 between learned rule and default rule
        return rule that minimizes eq 5
        &#34;&#34;&#34;

        rules = [self._make_default_rule(X, y), learned_rule]
   