def _loss(self, coef, X, y, idx):
    X_p = np.array([to_bins(pred, coef) for pred in X])
    ll = (- get_score(y, X_p))
    return ll
def _loss(self, coef, X, y, idx):
    X_p = np.array([to_bins(pred, coef) for pred in X])
    ll = (- get_score(y, X_p))
    return ll