Open Jwenyi opened 2 years ago
Apologies for the long silence. I will gather all the errors with cox and take a deeper look.
Apologies for the long silence. I will gather all the errors with cox and take a deeper look.
Hi trivialfis
I test this hack and this might help since . This is due to reason that nloglik goes to infinity or nan then it can't be converted into float.
in the xgboost\callback.py file
change line: "cvmap[(metric_idx, k)].append(float(v))"
to: " try: cvmap[(metric_idx, k)].append(float(v)) except: cvmap[(metric_idx, k)].append(numpy.nan)"
Thanks
Thank you for sharing. Yeah that seems to be a quick fix. I would like to try to avoid generating nan if it's possible. Also, we might find a better way to serialize the floating point.
Hi, I repeatedly received the following error during the training of XGBoost (
objective: survival:cox, eval_metric: cox-nloglik
). I am using xgboost 1.5.2 with python 3.8 at Win10, and I've noticed that others have encountered such issue #6885. This issue seems to be unresolved till now? I am new to using XGBoost, so I have absolutely no idea how to solve this problem. I would be highly grateful if anyone could give me some useful suggestions. The Error report, my data, and my code below were attached below:Error report:
My code:
my data
data.txt