MCPcopy Index your code
hub / github.com/lutzroeder/netron / XGBoosterUnserializeFromBuffer

Method XGBoosterUnserializeFromBuffer

source/python.js:4772–4779  ·  view source on GitHub ↗
(buffer)

Source from the content-addressed store, hash-verified

4770 throw new python.Error('Unsupported XGBoost binary format.');
4771 }
4772 XGBoosterUnserializeFromBuffer(buffer) {
4773 if (buffer.length > 2 && buffer[0] === 0x7B && buffer[1] !== 0x22) {
4774 const obj = execution.invoke('ubjson.loadb', [buffer]);
4775 this.XGBoosterLoadModel(obj.Model);
4776 return;
4777 }
4778 throw new python.Error('Unsupported XGBoost binary format.');
4779 }
4780 __setstate__(state) {
4781 const handle = state.get('handle');
4782 if (handle) {

Callers 1

__setstate__Method · 0.80

Calls 2

XGBoosterLoadModelMethod · 0.80
invokeMethod · 0.45

Tested by

no test coverage detected