LightGBM-GBDT-LR icon indicating copy to clipboard operation
LightGBM-GBDT-LR copied to clipboard

y_pred[i] index start from 1?

Open fword opened this issue 6 years ago • 4 comments

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])

fword avatar Oct 17 '17 13:10 fword