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

Method _dump_text

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

Save Dataset to a text file. This format cannot be loaded back in by LightGBM, but is useful for debugging purposes. Parameters ---------- filename : string Name of the output file. Returns ------- self : Dataset Retu

(self, filename)

Source from the content-addressed store, hash-verified

1641 return self
1642
1643 def _dump_text(self, filename):
1644 """Save Dataset to a text file.
1645
1646 This format cannot be loaded back in by LightGBM, but is useful for debugging purposes.
1647
1648 Parameters
1649 ----------
1650 filename : string
1651 Name of the output file.
1652
1653 Returns
1654 -------
1655 self : Dataset
1656 Returns self.
1657 """
1658 _safe_call(_LIB.LGBM_DatasetDumpText(
1659 self.construct().handle,
1660 c_str(filename)))
1661 return self
1662
1663
1664class Booster(object):

Calls 3

constructMethod · 0.95
_safe_callFunction · 0.85
c_strFunction · 0.70