Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_catboost_widget(train_dir):
_clear_training_files(train_dir)
try:
from .widget import MetricVisualizer
return MetricVisualizer(train_dir)
except ImportError as e:
warnings.warn("To draw plots in fit() method you should install ipywidgets and ipython")
raise ImportError(str(e))