Skip to content

Commit 4393ab5

Browse files
authored
Merge pull request #184 from davnn/dev
Fix usage of MLJModelInterface
2 parents 9736531 + 33c6f60 commit 4393ab5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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.9.3"
4+
version = "1.9.4"
55

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

src/model_def.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function _model_constructor(modelname, params, defaults)
141141
Expr(
142142
:block,
143143
Expr(:(=), :model, Expr(:call, :new, params...)),
144-
:(message = MLJModelInterface.clean!(model)),
144+
:(message = $MLJModelInterface.clean!(model)),
145145
:(isempty(message) || @warn message),
146146
:(return model)
147147
)
@@ -158,7 +158,7 @@ in a model def.
158158
function _model_cleaner(modelname, defaults, constraints)
159159
Expr(
160160
:function,
161-
:(MLJModelInterface.clean!(model::$modelname)),
161+
:($MLJModelInterface.clean!(model::$modelname)),
162162
# body of the function
163163
Expr(
164164
:block,

0 commit comments

Comments
 (0)