marshal.xgboost: Marshalling of 'xgboost' objects

marshal.xgb.DMatrixR Documentation

Marshalling of 'xgboost' objects

Description

Marshalling of 'xgboost' objects

Usage

## S3 method for class 'xgb.DMatrix'
marshal(x, ...)

## S3 method for class 'xgb.Booster'
marshal(x, ...)

## S3 method for class 'xgb.Booster'
marshallable(...)

## S3 method for class 'xgb.DMatrix'
marshallable(...)

Arguments

x

An xgboost::xgb.DMatrix or an xgboost:xgb.Booster object.

...

Not used.

Details

xgboost::xgb.DMatrix.save() is used to produce a marshalled version of the original object. xgboost::xgb.DMatrix() is used to reconstruct a version of the original object from the marshalled object.

Value

A marshalled object as described in marshal().


HenrikBengtsson/marshal documentation built on June 11, 2024, 11:35 a.m.