Skip to content

Commit fcebd20

Browse files
authored
Merge pull request #24 from JuliaAI/relax-subsampling
Relax subsampling
2 parents 7d32440 + 5113c11 commit fcebd20

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

Project.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MLJTestInterface"
22
uuid = "72560011-54dd-4dc2-94f3-c5de45b75ecd"
33
authors = ["Anthony D. Blaom <[email protected]>"]
4-
version = "0.2.6"
4+
version = "0.2.7"
55

66
[deps]
77
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
@@ -13,3 +13,12 @@ MLJBase = "0.20, 0.21, 1"
1313
Pkg = "<0.0.1, 1"
1414
Test = "<0.0.1, 1"
1515
julia = "1.6"
16+
17+
[extras]
18+
MLJDecisionTreeInterface = "c6f25543-311c-4c74-83dc-3ea6d1015661"
19+
MLJModels = "d491faf4-2d78-11e9-2867-c94bc002c0b7"
20+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
21+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
22+
23+
[targets]
24+
test = ["MLJDecisionTreeInterface", "MLJModels", "Pkg", "Test"]

src/attemptors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function fitted_machine(model, data...; throw=false, verbosity=1)
7878
mach = model isa Static ? machine(model) :
7979
machine(model, data...)
8080
fit!(mach, verbosity=-1)
81-
train, _ = MLJBase.partition(1:MLJBase.nrows(first(data)), 0.5)
81+
train = 1:MLJBase.nrows(first(data))
8282
model isa Static || fit!(mach, rows=train, verbosity=-1)
8383
model isa Static || fit!(mach, rows=:, verbosity=-1)
8484
MLJBase.report(mach)
@@ -93,7 +93,7 @@ function operations(fitted_machine, data...; throw=false, verbosity=1)
9393
model = fitted_machine.model
9494
operations = String[]
9595
methods = MLJBase.implemented_methods(fitted_machine.model)
96-
_, test = MLJBase.partition(1:MLJBase.nrows(first(data)), 0.5)
96+
_, test = MLJBase.partition(1:MLJBase.nrows(first(data)), 0.99)
9797
if :predict in methods
9898
predict(fitted_machine, first(data))
9999
model isa Static || predict(fitted_machine, rows=test)

test/Project.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)