1
- # [ ` target ` , ` weights ` , and ` features ` ] (@id input)
1
+ # [ ` features ` , ` target ` , and ` weights ` ] (@id input)
2
2
3
3
Methods for extracting parts of training observations. Here "observations" means the
4
4
output of [ ` obs(learner, data) ` ] ( @ref ) ; if ` obs ` is not overloaded for ` learner ` , then
5
5
"observations" is any ` data ` supported in calls of the form [ ` fit(learner, data) ` ] ( @ref )
6
6
7
7
``` julia
8
+ LearnAPI. features (learner, observations) -> < training " features" , suitable input for ` predict` or ` transform` >
8
9
LearnAPI. target (learner, observations) -> < target variable>
9
10
LearnAPI. weights (learner, observations) -> < per- observation weights>
10
- LearnAPI. features (learner, observations) -> < training " features" , suitable input for ` predict` or ` transform` >
11
11
```
12
12
13
13
Here ` data ` is something supported in a call of the form ` fit(learner, data) ` .
@@ -33,15 +33,15 @@ training_loss = sum(ŷ .!= y)
33
33
34
34
| method | fallback | compulsory? |
35
35
| :----------------------------| :-----------------:| --------------------------|
36
+ | [ ` LearnAPI.features ` ] ( @ref ) | see docstring | if fallback insufficient |
36
37
| [ ` LearnAPI.target ` ] ( @ref ) | returns ` nothing ` | no |
37
38
| [ ` LearnAPI.weights ` ] ( @ref ) | returns ` nothing ` | no |
38
- | [ ` LearnAPI.features ` ] ( @ref ) | see docstring | if fallback insufficient |
39
39
40
40
41
41
# Reference
42
42
43
43
``` @docs
44
+ LearnAPI.features
44
45
LearnAPI.target
45
46
LearnAPI.weights
46
- LearnAPI.features
47
47
```
0 commit comments