JuliaML / JuliaML/MLLabelUtils.jl

Missing methods for converting between NativeLabels and Indices

Open
#18 8 comments 0 reactions 1 assignee Claimed by @Evizero View on GitHub
Dominant language
Julia
Stars
31
Forks
13
PR merge metrics
No merged PRs in 30d

Description

As outlined by @oxinabox in #17

- [ ] It should be possible to convert upwards in the number of labels. at least for integers. (e.g. from a `Indices{_,2}` to a `NativeLabels{_,3}`)

```julia
enc = labelenc(["copper", "tin", "gold"])
convertlabel(enc, [2, 1])
```

- [ ] We should support single integers when the target encoding is unambigous

```julia
convertlabel(enc, 3)
```

- [ ] It would be useful to have the source encoding inferrable from just the type. I do think to remember though that there was a good reason why I didn't do it in the first place

```julia
convertlabel(enc, 3, LabelEnc.Indices)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.