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

Function _import_matplotlib

catboost/python-package/catboost/utils.py:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36@contextmanager
37def _import_matplotlib():
38 try:
39 import matplotlib.pyplot as plt
40 except ImportError as e:
41 warnings.warn("To draw plots you should install matplotlib.")
42 raise ImportError(str(e))
43 yield plt
44
45
46def _draw(plt, x, y, x_label, y_label, title):

Callers 5

get_roc_curveFunction · 0.85
get_fpr_curveFunction · 0.85
get_fnr_curveFunction · 0.85
plot_pdpFunction · 0.85
plot_features_strengthFunction · 0.85

Calls 1

strClass · 0.50

Tested by

no test coverage detected