Skip to content

Commit

Permalink
fix bug with test, train split
Browse files Browse the repository at this point in the history
  • Loading branch information
ablaom committed Dec 18, 2024
1 parent fcebd20 commit a8902d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MLJTestInterface"
uuid = "72560011-54dd-4dc2-94f3-c5de45b75ecd"
authors = ["Anthony D. Blaom <[email protected]>"]
version = "0.2.7"
version = "0.2.8"

[deps]
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
Expand Down
2 changes: 1 addition & 1 deletion src/attemptors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function operations(fitted_machine, data...; throw=false, verbosity=1)
model = fitted_machine.model
operations = String[]
methods = MLJBase.implemented_methods(fitted_machine.model)
_, test = MLJBase.partition(1:MLJBase.nrows(first(data)), 0.99)
_, test = MLJBase.partition(1:MLJBase.nrows(first(data)), 0.01)
if :predict in methods
predict(fitted_machine, first(data))
model isa Static || predict(fitted_machine, rows=test)
Expand Down

0 comments on commit a8902d3

Please sign in to comment.