Skip to content

Commit

Permalink
documentation partially done
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Heid committed Aug 8, 2023
1 parent 4ef7f26 commit af3671b
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.idea
/dist

poetry.lock
poetry.lock
/docs/_build/
File renamed without changes.
Empty file added docs/_static/.gitkeep
Empty file.
Empty file added docs/_templates/.gitkeep
Empty file.
12 changes: 12 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@


API
===

.. automodule:: skpsl
:members:
:undoc-members:

.. autoclass:: skpsl.ProbabilisticScoringList
:members:
:undoc-members:
16 changes: 9 additions & 7 deletions doc/conf.py → docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,24 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'Probabilistic Scoring List classifier'
copyright = '2023, Jonas Hanselle, Stefan Heid'
author = 'Jonas Hanselle, Stefan Heid'
copyright = '2023, "Stefan Heid <[email protected]>", "Jonas Hanselle <[email protected]>"'
author = '"Stefan Heid <[email protected]>", "Jonas Hanselle <[email protected]>"'
release = '0.1.0'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = []
extensions = ['sphinx_rtd_theme',
'sphinx.ext.todo',
'sphinx.ext.viewcode',
'sphinx.ext.autodoc']

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']



# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
html_theme = "sphinx_rtd_theme"
html_theme_path = ["_themes", ]
html_static_path = ['_static']
4 changes: 2 additions & 2 deletions doc/index.rst → docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. Probabilistic Scoring List classifier documentation master file, created by
sphinx-quickstart on Tue Aug 8 10:24:11 2023.
sphinx-quickstart on Tue Aug 8 13:43:26 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Expand All @@ -10,7 +10,7 @@ Welcome to Probabilistic Scoring List classifier's documentation!
:maxdepth: 2
:caption: Contents:


api.rst

Indices and tables
==================
Expand Down
File renamed without changes.
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ python = ">=3.9,<3.13"
scikit-learn = "^1.3.0"
numpy = "^1.25.2"
scipy = "^1.11.1"

sphinx = { version = "^7.1", optional = true }
sphinx_rtd_theme = { version = "^0.4.3", optional = true }
sphinx_rtd_theme = { version = "^1.2", optional = true }

pytest = { version = "^7.4", optional = true }


[tool.poetry.extras]
docs = ["sphinx", "sphinx_rtd_theme"]
doc = ["sphinx", "sphinx_rtd_theme"]
test = ["pytest"]


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
build-backend = "poetry.core.masonry.api"
3 changes: 2 additions & 1 deletion skpsl/probabilistic_scoring_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def _relevant_scores(self, X):

class ProbabilisticScoringList(BaseEstimator, ClassifierMixin):
"""
Probabilistic scoring list classifier. A probabilistic classifier that greedily creates a PSL selecting one feature at a time
Probabilistic scoring list classifier.
A probabilistic classifier that greedily creates a PSL selecting one feature at a time
"""

def __init__(self, score_set, entropy_threshold=-1):
Expand Down

0 comments on commit af3671b

Please sign in to comment.