LightGBM-GBDT-LR
LightGBM-GBDT-LR copied to clipboard
y_pred[i] index start from 1?
temp = np.arange(len(y_pred[0])) * num_leaf - 1 + np.array(y_pred[i])
why u have -1 in the code, as i konw y_pred[i] is start from 0, so we can write it as temp = np.arange(len(y_pred[0])) * num_leaf + np.array(y_pred[i])