      try:
                    pivots = np.percentile(X[:, feat], range(0, 100, 4),
                                       method=&#39;linear&#39;)
                except:
                    pivots = np.percentile(X[:, feat], range(0, 100, 4), # deprecated
                                           interpolation=&#39;midpoint&#39;)
                # get a list of possible rules
                feature_candidates = [
                    self._make_candidate(X, y, curr_rule, feat, A_c)
                    fo