Print information about xgb.DMatrix. Currently it displays dimensions and presence of info-fields and colnames.
# S3 method for xgb.DMatrix print(x, verbose = FALSE, ...)
x | an xgb.DMatrix object |
---|---|
verbose | whether to print colnames (when present) |
... | not currently used |
data(agaricus.train, package='xgboost') train <- agaricus.train dtrain <- xgb.DMatrix(train$data, label=train$label) dtrain#> xgb.DMatrix dim: 6513 x 126 info: label colnames: yes#> xgb.DMatrix dim: 6513 x 126 info: label colnames: #> 'cap-shape=bell','cap-shape=conical','cap-shape=convex','cap-shape=flat','cap-shape=knobbed','cap-shape=sunken','cap-surface=fibrous','cap-surface=grooves','cap-surface=scaly','cap-surface=smooth','cap-color=brown','cap-color=buff','cap-color=cinnamon','cap-color=gray','cap-color=green','cap-color=pink','cap-color=purple','cap-color=red','cap-color=white','cap-color=yellow','bruises?=bruises','bruises?=no','odor=almond','odor=anise','odor=creosote','odor=fishy','odor=foul','odor=musty','odor=none','odor=pungent','odor=spicy','gill-attachment=attached','gill-attachment=descending','gill-attachment=free','gill-attachment=notched','gill-spacing=close','gill-spacing=crowded','gill-spacing=distant','gill-size=broad','gill-size=narrow','gill-color=black','gill-color=brown','gill-color=buff','gill-color=chocolate','gill-color=gray','gill-color=green','gill-color=orange','gill-color=pink','gill-color=purple','gill-color=red','gill-color=white','gill-color=yellow','stalk-shape=enlarging','stalk-shape=tapering','stalk-root=bulbous','stalk-root=club','stalk-root=cup','stalk-root=equal','stalk-root=rhizomorphs','stalk-root=rooted','stalk-root=missing','stalk-surface-above-ring=fibrous','stalk-surface-above-ring=scaly','stalk-surface-above-ring=silky','stalk-surface-above-ring=smooth','stalk-surface-below-ring=fibrous','stalk-surface-below-ring=scaly','stalk-surface-below-ring=silky','stalk-surface-below-ring=smooth','stalk-color-above-ring=brown','stalk-color-above-ring=buff','stalk-color-above-ring=cinnamon','stalk-color-above-ring=gray','stalk-color-above-ring=orange','stalk-color-above-ring=pink','stalk-color-above-ring=red','stalk-color-above-ring=white','stalk-color-above-ring=yellow','stalk-color-below-ring=brown','stalk-color-below-ring=buff','stalk-color-below-ring=cinnamon','stalk-color-below-ring=gray','stalk-color-below-ring=orange','stalk-color-below-ring=pink','stalk-color-below-ring=red','stalk-color-below-ring=white','stalk-color-below-ring=yellow','veil-type=partial','veil-type=universal','veil-color=brown','veil-color=orange','veil-color=white','veil-color=yellow','ring-number=none','ring-number=one','ring-number=two','ring-type=cobwebby','ring-type=evanescent','ring-type=flaring','ring-type=large','ring-type=none','ring-type=pendant','ring-type=sheathing','ring-type=zone','spore-print-color=black','spore-print-color=brown','spore-print-color=buff','spore-print-color=chocolate','spore-print-color=green','spore-print-color=orange','spore-print-color=purple','spore-print-color=white','spore-print-color=yellow','population=abundant','population=clustered','population=numerous','population=scattered','population=several','population=solitary','habitat=grasses','habitat=leaves','habitat=meadows','habitat=paths','habitat=urban','habitat=waste','habitat=woods'