Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sklearn OneHotEncoder FutureWarning #66

@ndousis

Description

@ndousis

In sklearn's latest release (v1.2), the OneHotEncoder interface was changed.

The following code now issues a warning:

from seqlike import aaSeqLike
aaSeqLike("SEQLIKE")
anaconda3/envs/seqlike-dev/lib/python3.9/site-packages/sklearn/preprocessing/_encoders.py:808: FutureWarning: `sparse` was renamed to `sparse_output` in version 1.2 and will be removed in 1.4. `sparse_output` is ignored unless you leave `sparse` to its default value.

It looks like an easy fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions