@@ -6,13 +6,6 @@ const DOC_UNKNOWN =
6
6
" not overloaded the trait. "
7
7
const DOC_ON_TYPE = " The value of the trait must depend only on the type of `algorithm`. "
8
8
9
- DOC_ONLY_ONE (func) =
10
- " Ordinarily, at most one of the following should be overloaded for given " *
11
- " algorithm " *
12
- " `LearnAPI.$(func) _scitype`, `LearnAPI.$(func) _type`, " *
13
- " `LearnAPI.$(func) _observation_scitype`, " *
14
- " `LearnAPI.$(func) _observation_type`."
15
-
16
9
const DOC_EXPLAIN_EACHOBS =
17
10
"""
18
11
@@ -82,7 +75,7 @@ value is non-empty.
82
75
83
76
# New implementations
84
77
85
- All new implementations must overload this trait. Here's a checklist for elements in the
78
+ All new implementations must implement this trait. Here's a checklist for elements in the
86
79
return value:
87
80
88
81
| expression | implementation compulsory? | include in returned tuple? |
@@ -106,7 +99,6 @@ Also include any implemented accessor functions, both those owned by LearnaAPI.j
106
99
algorithm-specific ones. The LearnAPI.jl accessor functions are: $ACCESSOR_FUNCTIONS_LIST .
107
100
108
101
"""
109
- functions (:: Any ) = ()
110
102
functions () = (
111
103
:(LearnAPI. fit),
112
104
:(LearnAPI. algorithm),
@@ -195,8 +187,6 @@ tags() = [
195
187
" meta-algorithms"
196
188
]
197
189
198
- const DOC_TAGS_LIST = join (map (d -> " `\" $d \" `" , tags ()), " , " )
199
-
200
190
"""
201
191
LearnAPI.tags(algorithm)
202
192
@@ -402,7 +392,7 @@ See also [`LearnAPI.target_observation_scitype`](@ref).
402
392
403
393
# New implementations
404
394
405
- Optional. The fallback return value is `Union{}`. $( DOC_ONLY_ONE ( :fit ))
395
+ Optional. The fallback return value is `Union{}`.
406
396
407
397
"""
408
398
fit_observation_scitype (:: Any ) = Union{}
0 commit comments