MCPcopy Create free account
hub / github.com/catboost/catboost / save_borders

Method save_borders

catboost/python-package/catboost/core.py:3809–3820  ·  view source on GitHub ↗

Save the model borders to a file. Parameters ---------- fname : string or os.PathLike Output file name.

(self, fname)

Source from the content-addressed store, hash-verified

3807 return self._object._get_plain_params()
3808
3809 def save_borders(self, fname):
3810 """
3811 Save the model borders to a file.
3812
3813 Parameters
3814 ----------
3815 fname : string or os.PathLike
3816 Output file name.
3817 """
3818 if not isinstance(fname, PATH_TYPES):
3819 raise CatBoostError("Invalid fname type={}: must be str or os.PathLike.".format(type(fname)))
3820 self._save_borders(fname)
3821
3822 def get_borders(self):
3823 """

Callers 1

test_save_border_fileFunction · 0.80

Calls 5

isinstanceFunction · 0.85
_save_bordersMethod · 0.80
CatBoostErrorClass · 0.50
typeClass · 0.50
formatMethod · 0.45

Tested by 1

test_save_border_fileFunction · 0.64