• José Morales's avatar
    [python-package] Support 2d collections as input for `init_score` in... · f1f5ba15
    José Morales authored
    
    [python-package] Support 2d collections as input for `init_score` in multiclass classification task (#4150)
    
    * initial implementation of init_score for multiclass classification
    
    * check for 1d or 2d collection in init_score
    
    * remove dataset import
    
    * initial comments
    
    * update dask test and docstrings
    
    * update docstrings
    
    * move logic to set_field. reshape back on get_field
    
    * add type hints and update docstrings for dask. fix Dataset.set_field
    
    * revert wrong docstrings and type hints
    
    * add extra comma for consistency
    
    * prefix private functions with underscore
    
    add type hints to new functions
    
    make commas consistent in dask and basic
    
    * add missing spaces after type hint
    
    * remove shape condition for dataframe in is_2d_collection
    Co-authored-by: default avatarNikita Titov <nekit94-12@hotmail.com>
    f1f5ba15
dask.py 63.5 KB