1- # [ ` target ` , ` weights ` , and ` features ` ] (@id input)
1+ # [ ` features ` , ` target ` , and ` weights ` ] (@id input)
22
33Methods for extracting parts of training observations. Here "observations" means the
44output of [ ` obs(learner, data) ` ] ( @ref ) ; if ` obs ` is not overloaded for ` learner ` , then
55"observations" is any ` data ` supported in calls of the form [ ` fit(learner, data) ` ] ( @ref )
66
77``` julia
8+ LearnAPI. features (learner, observations) -> < training " features" , suitable input for ` predict` or ` transform` >
89LearnAPI. target (learner, observations) -> < target variable>
910LearnAPI. weights (learner, observations) -> < per- observation weights>
10- LearnAPI. features (learner, observations) -> < training " features" , suitable input for ` predict` or ` transform` >
1111```
1212
1313Here ` data ` is something supported in a call of the form ` fit(learner, data) ` .
@@ -33,15 +33,15 @@ training_loss = sum(ŷ .!= y)
3333
3434| method | fallback | compulsory? |
3535| :----------------------------| :-----------------:| --------------------------|
36+ | [ ` LearnAPI.features ` ] ( @ref ) | see docstring | if fallback insufficient |
3637| [ ` LearnAPI.target ` ] ( @ref ) | returns ` nothing ` | no |
3738| [ ` LearnAPI.weights ` ] ( @ref ) | returns ` nothing ` | no |
38- | [ ` LearnAPI.features ` ] ( @ref ) | see docstring | if fallback insufficient |
3939
4040
4141# Reference
4242
4343``` @docs
44+ LearnAPI.features
4445LearnAPI.target
4546LearnAPI.weights
46- LearnAPI.features
4747```
0 commit comments