JuliaAI / JuliaAI/ScientificTypes.jl
Elements of scitype `Textual` cannot be coerced to `Textual`
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 98
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the Julia example using coerce and inspect the coerce entry point and the ScientificTypes.CoercionError path. Confirm the expected behavior for String values coerced to Textual, then add a regression test showing that this coercion is a no-op.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100