Save Dataset to a binary file. Parameters ---------- filename : string Name of the output file. Returns ------- self : Dataset Returns self.
(self, filename)
| 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: |