RGF-team / rgf

Home repository for the Regularized Greedy Forest (RGF) library. It includes original implementation from the paper and multithreaded one written in C++, along with various language-specific wrappers.
378 stars 58 forks source link

fix two warnings from sklearn #327

Closed StrikerRUS closed 4 years ago

StrikerRUS commented 4 years ago
tests/test_rgf_python.py::TestRGFClassifier::test_sklearn_integration
tests/test_rgf_python.py::TestRGFRegressor::test_sklearn_integration
  /home/travis/miniconda/envs/test-environment/lib/python3.6/site-packages/sklearn/utils/estimator_checks.py:488: FutureWarning: Passing a class is deprecated since version 0.23 and won't be supported in 0.24.Please pass an instance instead.
    warnings.warn(msg, FutureWarning)
tests/test_rgf_python.py::TestRGFClassifier::test_sklearn_integration
tests/test_rgf_python.py::TestRGFRegressor::test_sklearn_integration
  /home/travis/miniconda/envs/test-environment/lib/python3.6/site-packages/sklearn/utils/estimator_checks.py:3014: FutureWarning: As of scikit-learn 0.23, estimators should expose a n_features_in_ attribute, unless the 'no_validation' tag is True. This attribute should be equal to the number of features passed to the fit method. An error will be raised from version 0.25 when calling check_estimator(). See SLEP010: https://scikit-learn-enhancement-proposals.readthedocs.io/en/latest/slep010/proposal.html
    FutureWarning