Skip to content

Commit fe70185

Browse files
authored
Merge pull request #147 from JuliaAI/dev
For a 1.4.3 release
2 parents 4b7ca2d + 536dd72 commit fe70185

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MLJModelInterface"
22
uuid = "e80e1ace-859a-464e-9ed9-23947d8ae3ea"
33
authors = ["Thibaut Lienart and Anthony Blaom"]
4-
version = "1.4.2"
4+
version = "1.4.3"
55

66
[deps]
77
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

src/data_utils.jl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ int(::LightInterface, x) = errlight("int")
111111
112112
All the categorical elements with the same pool as `x` (including
113113
`x`), returned as a list, with an ordering consistent with the pool.
114-
Here `x` has `CategoricalValue` or `CategoricalString` type, and
114+
Here `x` has `CategoricalValue` type, and
115115
`classes(x)` is a vector of the same eltype. Note that `x in
116116
classes(x)` is always true.
117117
@@ -225,10 +225,11 @@ istable(::Mode, ::Val{:table}) = true
225225
decoder(x)
226226
227227
Return a callable object for decoding the integer representation of a
228-
`CategoricalString` or `CategoricalValue` sharing the same pool as
229-
`x`. (Here `x` is of one of these two types.) Specifically, one has
230-
`decoder(x)(int(y)) == y` for all `y in classes(x)`. One can also call `decoder(x)` on
231-
integer arrays, in which case `decoder(x)` is broadcast over all elements.
228+
`CategoricalValue` sharing the same pool the `CategoricalValue`
229+
`x`. Specifically, one has `decoder(x)(int(y)) == y` for all
230+
`CategoricalValue`s `y` having the same pool as `x`. One can also call
231+
`decoder(x)` on integer arrays, in which case `decoder(x)` is
232+
broadcast over all elements.
232233
233234
### Examples
234235
```julia
@@ -255,7 +256,7 @@ true
255256
256257
It is *not* true that `int(d(u)) == u` always holds.
257258
258-
See also: [`int`](@ref), [`classes`](@ref).
259+
See also: [`int`](@ref).
259260
"""
260261
decoder(x) = decoder(get_interface_mode(), x)
261262

0 commit comments

Comments
 (0)