• Yaqub Alwan's avatar
    [python] raise an informative error instead of segfaulting when custom... · af5b40e1
    Yaqub Alwan authored
    
    [python] raise an informative error instead of segfaulting when custom objective produces incorrect output (#4815)
    
    * fix for bad grads causing segfault
    
    * adjust checking criteria to properly reflect reality of multi-class classifiers
    
    * fix styling
    
    * Line break before operator
    
    * Update python-package/lightgbm/basic.py
    Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
    
    * Update python-package/lightgbm/basic.py
    Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
    
    * add a note to the C-API docs
    
    * rearrange text s;ightly
    
    * add some tests to python package
    
    * Update include/LightGBM/c_api.h
    Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
    
    * PR comments
    
    * match argument is a regex and our expression has brackets ..
    
    * rework tests
    
    * isorting imports
    
    * updating test to relfect that the python APi does not take pres/labels as a fobj function
    Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
    af5b40e1
c_api.h 68.8 KB