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

Elements of scitype Textual cannot be coerced to Textual #193

Open
EssamWisam opened this issue Sep 3, 2023 · 1 comment
Open

Elements of scitype Textual cannot be coerced to Textual #193

EssamWisam opened this issue Sep 3, 2023 · 1 comment

Comments

@EssamWisam
Copy link

 X = (Column1=[1, 2, 3, 4, 5],
         Column2=["a", "b", "c", "d", "e"],
         Column3=["a", "b", "c", "d", "e"],
         Column4=[1.0, 2.0, 3.0, 4.0, 5.0]
    )
    y = [1, 2, 3, 4, 5]
    X = Tables.columntable(X)
    # coerce first column to multiclass and last column to continuous
    # second and third column to text
    X = coerce(X, :Column1=>Multiclass, :Column2=>Textual, :Column3=>Textual, :Column4=>Continuous)

In particular, running this example yields

ScientificTypes.CoercionError("Coercion of eltype `String` to element scitype `Textual` is not supported. ")

Shouldn't this be a no-op?

@ablaom
Copy link
Member

ablaom commented Jan 17, 2024

Agreed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: priority low / straightforward
Development

No branches or pull requests

2 participants