Skip to content

ValueError: y contains previously unseen labels: [-1] #7

@GXY2017

Description

@GXY2017

Python 3.7.6 | packaged by conda-forge | (default, Jan 7 2020, 21:48:41) [MSC v.1916 64 bit (AMD64)]

Before I go further, I’d like to report this error. I know this lib is not for python 3.

I tried this simple example, then got the error in title.
drv.entropy(['e', 'f', 'g', 't'], base = np.exp(1))
I suspect the error comes from scipy.transform, it requires fit first then transform().

see this link: https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.LabelEncoder.html

Update:
problem in the _map_observations_to_integers(), everything needs mask, fill_value will trigger errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions