qlib icon indicating copy to clipboard operation
qlib copied to clipboard

UnboundLocalError: local variable 'best_param' referenced before assignment

Open keyboard1st opened this issue 1 year ago • 3 comments

不知道什么原因导致的,貌似是因为早停设置的太多了?时好时坏的,请求大佬解答

keyboard1st avatar May 23 '24 07:05 keyboard1st

貌似是数据包含太多缺失值了,但是这又出现一个问题是:handle处理过了,也显示处理完了缺失值,为什么还有一大堆的缺失值 image

keyboard1st avatar May 24 '24 07:05 keyboard1st

@keyboard1st 这个问题你后来解决了吗?

mayunlei avatar Feb 04 '25 15:02 mayunlei

one solution is set best_param in both if and else

Image

ghyzx avatar May 25 '25 15:05 ghyzx