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

Function _float2str

python-package/lightgbmmt/plotting.py:23–26  ·  view source on GitHub ↗
(value, precision=None)

Source from the content-addressed store, hash-verified

21
22
23def _float2str(value, precision=None):
24 return ("{0:.{1}f}".format(value, precision)
25 if precision is not None and not isinstance(value, string_type)
26 else str(value))
27
28
29def plot_importance(booster, ax=None, height=0.2,

Callers 2

plot_importanceFunction · 0.85
addFunction · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected