• José Morales's avatar
    [python-package] highlight the path a sample takes through a tree in... · 680f4b08
    José Morales authored
    
    [python-package] highlight the path a sample takes through a tree in `plot_tree` and `create_tree_digraph` (fixes #4784) (#5119)
    
    * highlight path in plot_tree
    
    * lint
    
    * rename x to example_case. support categorical features. add test
    
    * lint
    
    * check for exactly one row. test empty example_case
    
    * Apply suggestions from code review
    Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
    
    * handle missing values in numeric splits
    
    * remove literal. add categorical split function
    
    * make categorical feature more important. lint
    
    * add enum. update categorical split. apply suggestions
    
    * update numeric split decision
    
    * lint
    
    * Update python-package/lightgbm/plotting.py
    Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
    Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
    680f4b08
plotting.py 29.4 KB