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

Doc theme

parent 20d7d609
Branches develop
Tags
No related merge requests found
Pipeline #7833 failed
......@@ -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
......
......@@ -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.):
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment