Skip to content
Snippets Groups Projects
Commit 1c443ac2 authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

Doc theme

parent 20d7d609
No related branches found
No related tags found
No related merge requests found
Pipeline #7833 failed
...@@ -29,6 +29,7 @@ extensions = [ ...@@ -29,6 +29,7 @@ extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
'sphinx.ext.doctest', 'sphinx.ext.doctest',
'sphinx.ext.imgmath', 'sphinx.ext.imgmath',
'sphinx_rtd_theme',
'numpydoc', 'numpydoc',
'sphinx.ext.napoleon', 'sphinx.ext.napoleon',
'sphinx_gallery.gen_gallery' 'sphinx_gallery.gen_gallery'
...@@ -105,7 +106,7 @@ pygments_style = 'sphinx' ...@@ -105,7 +106,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # 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 # 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 # further. For a list of options available for each theme, see the
......
...@@ -445,16 +445,11 @@ class MumboClassifier(BaseEnsemble, ClassifierMixin, UBoosting): ...@@ -445,16 +445,11 @@ class MumboClassifier(BaseEnsemble, ClassifierMixin, UBoosting):
self.X_._extract_view(ind_view)) self.X_._extract_view(ind_view))
edges = self._compute_edge_global( edges = self._compute_edge_global(
cost_global, predicted_classes, y) 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": if self.best_view_mode == "edge":
best_view = np.argmax(edges) best_view = np.argmax(edges)
else: # self.best_view_mode == "error" else: # self.best_view_mode == "error"
n_errors = np.sum(predicted_classes != y, axis=1) n_errors = np.sum(predicted_classes != y, axis=1)
best_view = np.argmin(n_errors) best_view = np.argmin(n_errors)
print("Best view:", best_view)
edge = edges[best_view] edge = edges[best_view]
if (edge == 1.): if (edge == 1.):
......
...@@ -180,7 +180,7 @@ def setup_package(): ...@@ -180,7 +180,7 @@ def setup_package():
python_requires = '>=3.6' python_requires = '>=3.6'
extras_require = { extras_require = {
'dev': ['pytest', 'pytest-cov'], 'dev': ['pytest', 'pytest-cov'],
'doc': ['sphinx', 'numpydoc', 'sphinx_gallery', 'matplotlib']} 'doc': ['sphinx', 'numpydoc', 'sphinx_gallery', 'matplotlib', "sphinx_rtd_theme"]}
include_package_data = True include_package_data = True
setup(name=name, setup(name=name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment