(train_dirs)
| 1554 | |
| 1555 | |
| 1556 | def _get_catboost_widget(train_dirs): |
| 1557 | for train_dir in train_dirs: |
| 1558 | _clear_training_files(train_dir) |
| 1559 | try: |
| 1560 | from .widget import MetricVisualizer |
| 1561 | return MetricVisualizer(train_dirs) |
| 1562 | except ImportError as e: |
| 1563 | warnings.warn("To draw plots in fit() method you should install ipywidgets and ipython") |
| 1564 | raise ImportError(str(e)) |
| 1565 | |
| 1566 | |
| 1567 | @contextmanager |
no test coverage detected