File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,25 @@ LearnAPI.strip(LearnAPI.strip(model)) == LearnAPI.strip(model)
93
93
"""
94
94
LearnAPI. strip (model) = model
95
95
96
+ """
97
+ LearnAPI.feature_names(model)
98
+
99
+ Return the names of features encountered when fitting or updating some `learner` to obtain
100
+ `model`.
101
+
102
+ The value returned value is a vector of symbols.
103
+
104
+ This method is implemented if `:(LearnAPI.feature_names) in LearnAPI.functions(learner)`.
105
+
106
+ See also [`fit`](@ref).
107
+
108
+ # New implementations
109
+
110
+ $(DOC_IMPLEMENTED_METHODS (" :(LearnAPI.feature_names)" )) .
111
+
112
+ """
113
+ function feature_names end
114
+
96
115
"""
97
116
LearnAPI.feature_importances(model)
98
117
@@ -291,14 +310,14 @@ $(DOC_IMPLEMENTED_METHODS(":(LearnAPI.training_labels)")).
291
310
"""
292
311
function training_labels end
293
312
294
-
295
313
# :extras intentionally excluded:
296
314
const ACCESSOR_FUNCTIONS_WITHOUT_EXTRAS = (
297
315
learner,
298
316
coefficients,
299
317
intercept,
300
318
tree,
301
319
trees,
320
+ feature_names,
302
321
feature_importances,
303
322
training_labels,
304
323
training_losses,
You can’t perform that action at this time.
0 commit comments