File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ authors = ["Thibaut Lienart and Anthony Blaom"]
4
4
version = " 1.11.1"
5
5
6
6
[deps ]
7
+ InteractiveUtils = " b77e0a4c-d291-57a0-90e8-8db25a27a240"
7
8
REPL = " 3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
8
9
Random = " 9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
9
10
ScientificTypesBase = " 30f210dd-8aff-4c5f-94ba-8e64358c1161"
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ const ABSTRACT_MODEL_SUBTYPES = [
63
63
using ScientificTypesBase
64
64
using StatisticalTraits
65
65
using Random
66
+ using InteractiveUtils
66
67
using REPL # apparently needed to get Base.Docs.doc to work
67
68
68
69
import StatisticalTraits: info
Original file line number Diff line number Diff line change @@ -50,11 +50,10 @@ function StatTraits.target_scitype(::Type{<:DeterministicDetector})
50
50
return AbstractVector{<: Union{Missing, OrderedFactor{2}} }
51
51
end
52
52
53
- # implementation is deferred as it requires methodswith which depends upon
54
- # InteractiveUtils which we don't want to bring here as a dependency
55
- # (even if it's stdlib).
56
- implemented_methods (M:: Type ) = implemented_methods (get_interface_mode (), M)
53
+ implemented_methods (M:: Type ) = getfield .(methodswith (M), :name ) |> unique
57
54
implemented_methods (model) = implemented_methods (typeof (model))
55
+
56
+ # can be removed in MLJModelInterface 2.0:
58
57
implemented_methods (:: LightInterface , M) = errlight (" implemented_methods" )
59
58
60
59
for M in ABSTRACT_MODEL_SUBTYPES
You can’t perform that action at this time.
0 commit comments