Skip to content

Commit df9278c

Browse files
committed
doc fix
1 parent 17a0fd8 commit df9278c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/data_interface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Always returns a tuple of the same length as `data`.
1212
Return a subsample of `data` consisting of all observations with indices in `I`. Here
1313
`data` is data of the form expected in a call of the specified `operation`, e.g., in a
1414
call like `LearnAPI.predict(model, data...)`, if `operation = LearnAPI.predict`. Possible
15-
values for `operation` are: $DOC_OPERATIONS_LIST.
15+
values for `operation` are: $DOC_OPERATIONS_LIST_FUNCTION.
1616
1717
Always returns a tuple of the same length as `data`.
1818
@@ -54,7 +54,7 @@ or `LearnAPI.ingest!`.
5454
5555
Return the model-specific representation `data` of user-supplied `user_data`, for
5656
consumption, after splatting, by the specified `operation`, dispatched on `model`. Here
57-
`operation` is one of: $DOC_OPERATIONS_LIST.
57+
`operation` is one of: $DOC_OPERATIONS_LIST_FUNCTION.
5858
5959
The following sample workflow illustrates the use of both versions of `reformat`above. The
6060
data objects `X`, `y`, and `Xtest` are the user-supplied versions of data.

src/operations.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const OPERATIONS = (:predict, :predict_joint, :transform, :inverse_transform)
2-
const DOC_OPERATIONS_LIST = join(map(op -> "`:$op`", OPERATIONS), ", ")
2+
const DOC_OPERATIONS_LIST_SYMBOL = join(map(op -> "`:$op`", OPERATIONS), ", ")
3+
const DOC_OPERATIONS_LIST_FUNCTION = join(map(op -> "`LearnAPI.$op`", OPERATIONS), ", ")
34

45
const DOC_NEW_DATA =
56
"The `report` contains ancilliary byproducts of the computation, or "*

0 commit comments

Comments
 (0)