@@ -222,12 +222,11 @@ xgb.get.handle <- function(object) {
222
222
# ' For multi-class and multi-target, will be a 4D array with dimensions `[nrows, ngroups, nfeats+1, nfeats+1]`
223
223
# ' }
224
224
# '
225
- # ' If passing `strict_shape=FALSE`, the result is always an array:\itemize{
226
- # ' \item For normal predictions, the dimension is `[nrows, ngroups]`.
227
- # ' \item For `predcontrib=TRUE`, the dimension is `[nrows, ngroups, nfeats+1]`.
228
- # ' \item For `predinteraction=TRUE`, the dimension is `[nrows, ngroups, nfeats+1, nfeats+1]`.
229
- # ' \item For `predleaf=TRUE`, the dimension is `[nrows, niter, ngroups, num_parallel_tree]`.
230
- # ' }
225
+ # ' If passing `strict_shape=FALSE`, the result is always an array:
226
+ # ' - For normal predictions, the dimension is `[nrows, ngroups]`.
227
+ # ' - For `predcontrib=TRUE`, the dimension is `[nrows, ngroups, nfeats+1]`.
228
+ # ' - For `predinteraction=TRUE`, the dimension is `[nrows, ngroups, nfeats+1, nfeats+1]`.
229
+ # ' - For `predleaf=TRUE`, the dimension is `[nrows, niter, ngroups, num_parallel_tree]`.
231
230
# '
232
231
# ' If passing `avoid_transpose=TRUE`, then the dimensions in all cases will be in reverse order - for
233
232
# ' example, for `predinteraction`, they will be `[nfeats+1, nfeats+1, ngroups, nrows]`
@@ -623,7 +622,7 @@ validate.features <- function(bst, newdata) {
623
622
# ' change the value of that parameter for a model.
624
623
# ' Use [xgb.parameters<-()] to set or change model parameters.
625
624
# '
626
- # ' The [ xgb.attributes<-()] setter either updates the existing or adds one or several attributes,
625
+ # ' The ` xgb.attributes<-` setter either updates the existing or adds one or several attributes,
627
626
# ' but it doesn't delete the other existing attributes.
628
627
# '
629
628
# ' Important: since this modifies the booster's C object, semantics for assignment here
@@ -635,11 +634,11 @@ validate.features <- function(bst, newdata) {
635
634
# ' @param object Object of class `xgb.Booster`. **Will be modified in-place** when assigning to it.
636
635
# ' @param name A non-empty character string specifying which attribute is to be accessed.
637
636
# ' @param value For `xgb.attr<-`, a value of an attribute; for `xgb.attributes<-`,
638
- # ' it is a list (or an object coercible to a list) with the names of attributes to set
639
- # ' and the elements corresponding to attribute values.
640
- # ' Non-character values are converted to character.
641
- # ' When an attribute value is not a scalar, only the first index is used.
642
- # ' Use `NULL` to remove an attribute.
637
+ # ' it is a list (or an object coercible to a list) with the names of attributes to set
638
+ # ' and the elements corresponding to attribute values.
639
+ # ' Non-character values are converted to character.
640
+ # ' When an attribute value is not a scalar, only the first index is used.
641
+ # ' Use `NULL` to remove an attribute.
643
642
# ' @return
644
643
# ' - `xgb.attr()` returns either a string value of an attribute
645
644
# ' or `NULL` if an attribute wasn't stored in a model.
0 commit comments