Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace imputer usage #83

Merged
merged 3 commits into from
Feb 3, 2020
Merged

Replace imputer usage #83

merged 3 commits into from
Feb 3, 2020

Conversation

kiudee
Copy link
Owner

@kiudee kiudee commented Feb 3, 2020

Description

This is a clone of #80.

Imputer was removed from preprocessing in
scikit-learn/scikit-learn#13796. To be
compatible with newer scikit-learn versions, we need to stop using it.
impute.SimpleImputer seems to be a viable replacement.

This caused failures on travis.

Motivation and Context

The latest sklearn caused failures on travis.

How Has This Been Tested?

Ran all tests with sklearn 0.22.

Does this close/impact existing issues?

Impacts #65, where the CI fails because of this.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

timokau and others added 3 commits February 3, 2020 09:45
Imputer was removed from preprocessing in
scikit-learn/scikit-learn#13796. To be
compatible with newer scikit-learn versions, we need to stop using it.
impute.SimpleImputer seems to be a viable replacement.

Do not install scikit-learn thorough conda

It is also installed via pip, leading to conflicts
(scikit-learn/scikit-learn#15858 in
particular).

Make csrank compatible with pymc 3.8

There was a backwards-incompatible change in
pymc-devs/pymc@521174c
@coveralls
Copy link

coveralls commented Feb 3, 2020

Pull Request Test Coverage Report for Build 635

  • 13 of 14 (92.86%) changed or added relevant lines in 7 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+6.9%) to 47.423%

Changes Missing Coverage Covered Lines Changed/Added Lines %
csrank/dataset_reader/labelranking/survey_dataset_reader.py 2 3 66.67%
Totals Coverage Status
Change from base Build 580: 6.9%
Covered Lines: 3644
Relevant Lines: 7684

💛 - Coveralls

@kiudee kiudee merged commit 4027a22 into master Feb 3, 2020
@kiudee kiudee deleted the replace-imputer-usage branch February 3, 2020 09:35
prithagupta pushed a commit that referenced this pull request Feb 14, 2020
* Remove usage of Imputer

Imputer was removed from preprocessing in
scikit-learn/scikit-learn#13796. To be
compatible with newer scikit-learn versions, we need to stop using it.
impute.SimpleImputer seems to be a viable replacement.

Do not install scikit-learn thorough conda

It is also installed via pip, leading to conflicts
(scikit-learn/scikit-learn#15858 in
particular).

Make csrank compatible with pymc 3.8

There was a backwards-incompatible change in
pymc-devs/pymc@521174c

* Install newest version of coverage package during testing

Enable parallel mode for coverage

* Add back cache

Co-authored-by: Timo Kaufmann <timokau@zoho.com>
prithagupta pushed a commit that referenced this pull request Feb 14, 2020
* Remove usage of Imputer

Imputer was removed from preprocessing in
scikit-learn/scikit-learn#13796. To be
compatible with newer scikit-learn versions, we need to stop using it.
impute.SimpleImputer seems to be a viable replacement.

Do not install scikit-learn thorough conda

It is also installed via pip, leading to conflicts
(scikit-learn/scikit-learn#15858 in
particular).

Make csrank compatible with pymc 3.8

There was a backwards-incompatible change in
pymc-devs/pymc@521174c

* Install newest version of coverage package during testing

Enable parallel mode for coverage

* Add back cache

Co-authored-by: Timo Kaufmann <timokau@zoho.com>
prithagupta pushed a commit that referenced this pull request Feb 14, 2020
* Remove usage of Imputer

Imputer was removed from preprocessing in
scikit-learn/scikit-learn#13796. To be
compatible with newer scikit-learn versions, we need to stop using it.
impute.SimpleImputer seems to be a viable replacement.

Do not install scikit-learn thorough conda

It is also installed via pip, leading to conflicts
(scikit-learn/scikit-learn#15858 in
particular).

Make csrank compatible with pymc 3.8

There was a backwards-incompatible change in
pymc-devs/pymc@521174c

* Install newest version of coverage package during testing

Enable parallel mode for coverage

* Add back cache

Co-authored-by: Timo Kaufmann <timokau@zoho.com>
prithagupta pushed a commit that referenced this pull request Feb 14, 2020
* Remove usage of Imputer

Imputer was removed from preprocessing in
scikit-learn/scikit-learn#13796. To be
compatible with newer scikit-learn versions, we need to stop using it.
impute.SimpleImputer seems to be a viable replacement.

Do not install scikit-learn thorough conda

It is also installed via pip, leading to conflicts
(scikit-learn/scikit-learn#15858 in
particular).

Make csrank compatible with pymc 3.8

There was a backwards-incompatible change in
pymc-devs/pymc@521174c

* Install newest version of coverage package during testing

Enable parallel mode for coverage

* Add back cache

Co-authored-by: Timo Kaufmann <timokau@zoho.com>
prithagupta pushed a commit that referenced this pull request Mar 11, 2020
* Remove usage of Imputer

Imputer was removed from preprocessing in
scikit-learn/scikit-learn#13796. To be
compatible with newer scikit-learn versions, we need to stop using it.
impute.SimpleImputer seems to be a viable replacement.

Do not install scikit-learn thorough conda

It is also installed via pip, leading to conflicts
(scikit-learn/scikit-learn#15858 in
particular).

Make csrank compatible with pymc 3.8

There was a backwards-incompatible change in
pymc-devs/pymc@521174c

* Install newest version of coverage package during testing

Enable parallel mode for coverage

* Add back cache

Co-authored-by: Timo Kaufmann <timokau@zoho.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants