There's currently a dependency on hard disk to which the XGBoost JSON has been saved. I have a use case to run this library on a device that may or may not have a hard disk, and need to be able to load the model from memory instead.
Proposed fix:
Create a new function that unmarshal's the object from a byte array.
Pull out the common components of the two load functions into a new function.
There's currently a dependency on hard disk to which the XGBoost JSON has been saved. I have a use case to run this library on a device that may or may not have a hard disk, and need to be able to load the model from memory instead.
Proposed fix: Create a new function that unmarshal's the object from a byte array. Pull out the common components of the two load functions into a new function.