Help on method dump_model in module xgboost.core:
dump_model(fout, fmap='', with_stats=False, dump_format='text') method of xgboost.core.Booster instance
Dump model into a text or JSON file.
Parameters
----------
fout : string
Output file name.
fmap : string, optional
Name of the file containing feature map names.
with_stats : bool, optional
Controls whether the split statistics are output.
dump_format : string, optional
Format of model dump file. Can be 'text' or 'json'.
Booster has
dump_model
method:dump_format='text'
output:dump_format=json
output:unfortunately, these outputs are not enough to restore the model: we miss number of classes, transformation function, dart's dropout weights, etc..
Seems like this is one way only transformation..
Also, some information here: https://stackoverflow.com/questions/43691380/how-to-save-load-xgboost-model