Closed burakisiklidh closed 2 years ago
Hi @burakisiklidh,
Thanks for your message. Can you check that all of the group lengths are correct? Does it run through when LightGBM is invoked with the standard ranking objective instead of the custom one?
Hi, I fixed it by using this function:
def _memoryview_safe(x):
if not x.flags.writeable:
if not x.flags.owndata:
x = x.copy(order='C')
x.setflags(write=True)
return x
Hi, I'm running the moltr code in UNIX. It throws this error: "buffer source array is read-only". Do you know what can cause this?