MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / save_binary

Method save_binary

python-package/lightgbmmt/basic.py:1155–1171  ·  view source on GitHub ↗

Save Dataset to a binary file. Parameters ---------- filename : string Name of the output file. Returns ------- self : Dataset Returns self.

(self, filename)

Source from the content-addressed store, hash-verified

1153 return ret
1154
1155 def save_binary(self, filename):
1156 """Save Dataset to a binary file.
1157
1158 Parameters
1159 ----------
1160 filename : string
1161 Name of the output file.
1162
1163 Returns
1164 -------
1165 self : Dataset
1166 Returns self.
1167 """
1168 _safe_call(_LIB.LGBM_DatasetSaveBinary(
1169 self.construct().handle,
1170 c_str(filename)))
1171 return self
1172
1173 def _update_params(self, params):
1174 if self.handle is not None and params is not None:

Callers 1

test_init_with_subsetMethod · 0.95

Calls 3

constructMethod · 0.95
_safe_callFunction · 0.85
c_strFunction · 0.70

Tested by 1

test_init_with_subsetMethod · 0.76