Skip to content

Commit 020d7a1

Browse files
Added package extension for SoleDecisionTreeInterface (function solemodel is defined here instead of api.jl, which has been deleted)
1 parent 6668e77 commit 020d7a1

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

Project.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
3333
ThreadSafeDicts = "4239201d-c60e-5e0a-9702-85d713665ba7"
3434
ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea"
3535

36+
[weakdeps]
37+
SoleDecisionTreeInterface = "de8eae22-3630-40e0-868c-abfc4c1bb3da"
38+
39+
[extensions]
40+
SoleDecisionTreeInterfaceExt = "SoleDecisionTreeInterface"
41+
3642
[compat]
3743
AbstractTrees = "0.4"
3844
BenchmarkTools = "1"
@@ -53,6 +59,7 @@ Reexport = "1"
5359
Revise = "3"
5460
SoleBase = "0.12"
5561
SoleData = "0.15, 0.16"
62+
SoleDecisionTreeInterface = "0.1"
5663
SoleLogics = "0.9, 0.10"
5764
StatsBase = "0.30 - 0.34"
5865
Suppressor = "0.2"
@@ -68,7 +75,6 @@ MLJDecisionTreeInterface = "c6f25543-311c-4c74-83dc-3ea6d1015661"
6875
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
6976
MultiData = "8cc5100c-b3d1-4f82-90cb-0ea93d317aba"
7077
PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8"
71-
SoleDecisionTreeInterface = "de8eae22-3630-40e0-868c-abfc4c1bb3da"
7278
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
7379

7480
[targets]

src/types/api.jl renamed to ext/SoleDecisionTreeInterfaceExt.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
module SoleDecisionTreeInterfaceExt
2+
3+
using SoleModels, SoleDecisionTreeInterface
14

25
# TODO document, together with issymbolic and listrules
36
"""
@@ -21,3 +24,5 @@ function solemodel(o::Any, args...; kwargs...)
2124
end
2225
end
2326
end
27+
28+
end # module

src/SoleModels.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,8 @@ export trees
6161

6262
export MixedModel
6363

64-
export solemodel
65-
6664
include("types/model.jl")
6765
include("types/AbstractTrees.jl")
68-
include("types/api.jl")
6966

7067
include("utils/models/leaf.jl")
7168
include("utils/models/rule-and-branch.jl")

0 commit comments

Comments
 (0)