Skip to content

Commit c5dde75

Browse files
authored
Merge pull request #43 from alan-turing-institute/dev
For a 0.2.5 release
2 parents 6676aef + cbbfa2b commit c5dde75

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
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 = "0.2.4"
4+
version = "0.2.5"
55

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

src/data_utils.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,10 @@ the provided dictionary, `prob_given_class` $REQUIRE. The dictionary keys must
311311
be of type `CategoricalElement` (see above) and the dictionary values specify
312312
the corresponding probabilities.
313313
"""
314-
UnivariateFinite(d::AbstractDict) = UnivariateFinite(get_interface_mode(), d)
315-
UnivariateFinite(c::AbstractVector, p) =
316-
UnivariateFinite(get_interface_mode(), c, p)
314+
UnivariateFinite(d::AbstractDict; kwargs...) =
315+
UnivariateFinite(get_interface_mode(), d; kwargs...)
316+
UnivariateFinite(c::AbstractVector, p; kwargs...) =
317+
UnivariateFinite(get_interface_mode(), c, p; kwargs...)
317318

318-
UnivariateFinite(::LightInterface, a...) = errlight("UnivariateFinite")
319+
UnivariateFinite(::LightInterface, a...; kwargs...) =
320+
errlight("UnivariateFinite")

0 commit comments

Comments
 (0)