Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example1 result #6

Open
min13s opened this issue Mar 10, 2022 · 1 comment
Open

example1 result #6

min13s opened this issue Mar 10, 2022 · 1 comment

Comments

@min13s
Copy link

min13s commented Mar 10, 2022

for the MT-GBM
def mymse2(preds, train_data, ep = 0):
labels = train_data.get_label()
labels2 = labels.reshape((num_labels,-1)).transpose()
preds2 = preds.reshape((num_labels,-1)).transpose()
grad2 = (preds2 - labels2)
grad = grad2 * np.array([20,0.001])
grad = np.sum(grad,axis = 1)
grad2 = grad2.transpose().reshape((-1))
hess = grad * 0. + 1
hess2 = grad2 * 0. + 1
return grad, hess, grad2, hess2

it seems that parameter will change the best mape, rmse,
compared to common lightgbm, it has one more parameter ,

@min13s
Copy link
Author

min13s commented Mar 11, 2022

is there something wrong with the hessian matrix, since grad is weighted, so should the hessian?
it seems that grad and hess is the ensampled gradient and hessian(the algorithm 2 ), why still need grad2 and hess2 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant