Skip to content

Commit 77428a4

Browse files
authored
Merge pull request #15 from JuliaAI/fix-for-static
Fix for Static models
2 parents 4c6aa85 + fb90ec0 commit 77428a4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MLJTestIntegration"
22
uuid = "697918b4-fdc1-4f9e-8ff9-929724cee270"
33
authors = ["Anthony D. Blaom <[email protected]>"]
4-
version = "0.2.1"
4+
version = "0.2.2"
55

66
[deps]
77
MLJ = "add582a8-e3ab-11e8-2d5e-e98b27df1bc7"

src/attemptors.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ end
8989
function fitted_machine(model, data...; throw=false, verbosity=1)
9090
message = "[:fitted_machine] Fitting machine "
9191
attempt(finalize(message, verbosity); throw) do
92-
mach = machine(model, data...)
92+
mach = model isa Static ? machine(model) :
93+
machine(model, data...)
9394
fit!(mach, verbosity=-1)
9495
MLJ.report(mach)
9596
MLJ.fitted_params(mach)

0 commit comments

Comments
 (0)