Skip to content

Commit 7c6904e

Browse files
Revert previous commit and added package extensions for DecisionTree, MLJ, MLJDecisionTreeInterface and MLJModelInterface.
Revert commit 020d7a1 (solemodel function is back into api.jl). DecisionTreeExt.jl contains SoleDecisionTreeInterface.jl (which is now obsolete).
1 parent 020d7a1 commit 7c6904e

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

Project.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ 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-
4236
[compat]
4337
AbstractTrees = "0.4"
4438
BenchmarkTools = "1"
@@ -59,7 +53,6 @@ Reexport = "1"
5953
Revise = "3"
6054
SoleBase = "0.12"
6155
SoleData = "0.15, 0.16"
62-
SoleDecisionTreeInterface = "0.1"
6356
SoleLogics = "0.9, 0.10"
6457
StatsBase = "0.30 - 0.34"
6558
Suppressor = "0.2"
@@ -75,6 +68,7 @@ MLJDecisionTreeInterface = "c6f25543-311c-4c74-83dc-3ea6d1015661"
7568
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
7669
MultiData = "8cc5100c-b3d1-4f82-90cb-0ea93d317aba"
7770
PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8"
71+
SoleDecisionTreeInterface = "de8eae22-3630-40e0-868c-abfc4c1bb3da"
7872
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
7973

8074
[targets]

src/SoleModels.jl

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

6262
export MixedModel
6363

64+
export solemodel
65+
6466
include("types/model.jl")
6567
include("types/AbstractTrees.jl")
68+
include("types/api.jl")
6669

6770
include("utils/models/leaf.jl")
6871
include("utils/models/rule-and-branch.jl")

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

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

52
# TODO document, together with issymbolic and listrules
63
"""
@@ -24,5 +21,3 @@ function solemodel(o::Any, args...; kwargs...)
2421
end
2522
end
2623
end
27-
28-
end # module

0 commit comments

Comments
 (0)