From 66cccd22fd901de0176b74fd34e9d5d6978c5a88 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Mon, 21 Nov 2022 17:14:07 +0200 Subject: [PATCH] Fix examples --- clearml/backend_api/session/session.py | 2 +- examples/frameworks/xgboost/requirements.txt | 2 +- examples/reporting/html_reporting.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/clearml/backend_api/session/session.py b/clearml/backend_api/session/session.py index f59fd47d..c7b36fac 100644 --- a/clearml/backend_api/session/session.py +++ b/clearml/backend_api/session/session.py @@ -711,7 +711,7 @@ class Session(TokenManager): # if the requested version is lower then the minimum we support, # no need to actually check what the server has, we assume it must have at least our version. if cls._version_tuple(cls.api_version) >= cls._version_tuple(str(min_api_version)): - return True + return True # noinspection PyBroadException try: diff --git a/examples/frameworks/xgboost/requirements.txt b/examples/frameworks/xgboost/requirements.txt index a54eb3ba..693c4a74 100644 --- a/examples/frameworks/xgboost/requirements.txt +++ b/examples/frameworks/xgboost/requirements.txt @@ -1,6 +1,6 @@ matplotlib >= 3.1.1 ; python_version >= '3.6' matplotlib >= 2.2.4 ; python_version < '3.6' -sklearn +scikit-learn clearml xgboost>=0.90 ; python_version >= '3' xgboost>=0.82 ; python_version < '3' diff --git a/examples/reporting/html_reporting.py b/examples/reporting/html_reporting.py index 272a238e..7e9ee32b 100644 --- a/examples/reporting/html_reporting.py +++ b/examples/reporting/html_reporting.py @@ -52,8 +52,8 @@ def report_html_periodic_table(logger, iteration=0): } source = ColumnDataSource(autompg_clean) p = figure( - plot_width=900, - plot_height=500, + width=900, + height=500, title="Periodic Table (omitting LA and AC Series)", x_range=groups, y_range=list(reversed(periods)), @@ -129,8 +129,8 @@ def report_html_groupby(logger, iteration=0): "cyl_mfr", palette=Spectral5, factors=sorted(bokeh_df.cyl.unique()), end=1 ) p = figure( - plot_width=800, - plot_height=300, + width=800, + height=300, title="Mean MPG by # Cylinders and Manufacturer", x_range=group, toolbar_location=None,