From 1c443ac2f2e6adf79171238391501e5ab0b0f2ae Mon Sep 17 00:00:00 2001 From: Baptiste Bauvin <baptiste.bauvin@lis-lab.fr> Date: Thu, 15 Jul 2021 08:05:51 -0400 Subject: [PATCH] Doc theme --- doc/conf.py | 3 ++- multimodal/boosting/mumbo.py | 5 ----- setup.py | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index b557eb1..dcf8a48 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -29,6 +29,7 @@ extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.imgmath', + 'sphinx_rtd_theme', 'numpydoc', 'sphinx.ext.napoleon', 'sphinx_gallery.gen_gallery' @@ -105,7 +106,7 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'nature' +html_theme = 'sphinx_rtd_theme' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the diff --git a/multimodal/boosting/mumbo.py b/multimodal/boosting/mumbo.py index 0ced162..e46b06e 100644 --- a/multimodal/boosting/mumbo.py +++ b/multimodal/boosting/mumbo.py @@ -445,16 +445,11 @@ class MumboClassifier(BaseEnsemble, ClassifierMixin, UBoosting): self.X_._extract_view(ind_view)) edges = self._compute_edge_global( cost_global, predicted_classes, y) - print(cost_global) - print(edges) - print(np.unique(predicted_classes), np.unique(y)) - print(np.sum(predicted_classes != y, axis=1)) if self.best_view_mode == "edge": best_view = np.argmax(edges) else: # self.best_view_mode == "error" n_errors = np.sum(predicted_classes != y, axis=1) best_view = np.argmin(n_errors) - print("Best view:", best_view) edge = edges[best_view] if (edge == 1.): diff --git a/setup.py b/setup.py index 0bb17e2..52d70cf 100644 --- a/setup.py +++ b/setup.py @@ -180,7 +180,7 @@ def setup_package(): python_requires = '>=3.6' extras_require = { 'dev': ['pytest', 'pytest-cov'], - 'doc': ['sphinx', 'numpydoc', 'sphinx_gallery', 'matplotlib']} + 'doc': ['sphinx', 'numpydoc', 'sphinx_gallery', 'matplotlib', "sphinx_rtd_theme"]} include_package_data = True setup(name=name, -- GitLab