-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added logo * added initial citation.cff * updated readme * set upper boundaries on requirements and added docs req * added icons * added faq * bumped version * added changelog * added api documentation * added installation docs * added documentation setup * added index page * updated citation with authors * fixed about * added tqdm to requirements * fixed setup * removed missing imports * debugged documentation * added documentation workflow * added edit button * updated precommit hooks * ran pre-comit hooks * added flake8 Co-authored-by: KennethEnevoldsen <[email protected]> Co-authored-by: Martin Bernstorff <[email protected]>
- Loading branch information
1 parent
7bf532a
commit 5bf2fad
Showing
46 changed files
with
1,458 additions
and
371 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
name: Documentation | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install -e . | ||
- name: Build and Commit | ||
uses: sphinx-notes/pages@v2 | ||
with: | ||
documentation_path: docs | ||
install_requirements: "true" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@v2 | ||
with: | ||
github_token: ${{ secrets.SPHINX_DOCUMENTATION }} | ||
branch: gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,37 @@ | ||
default_stages: [commit, push] | ||
|
||
repos: | ||
- repo: https://github.com/psf/black | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
args: ["--profile", "black", "--filter-files"] | ||
|
||
- repo: https://github.com/asottile/add-trailing-comma | ||
rev: v2.2.3 | ||
hooks: | ||
- id: add-trailing-comma | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.34.0 | ||
hooks: | ||
- id: pyupgrade | ||
|
||
- repo: https://github.com/myint/docformatter | ||
rev: v1.3.1 | ||
hooks: | ||
- id: docformatter | ||
args: [--in-place] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
language_version: python3.8 | ||
- id: black | ||
language_version: python3.8 | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
args: [--config, .flake8] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
cff-version: 1.2.0 | ||
message: "If you use this software, please cite it as below." | ||
authors: | ||
- family-names: "Martin" | ||
given-names: "Bernstorff" | ||
- family-names: "Lasse" | ||
given-names: "Hansen" | ||
- family-names: "Enevoldsen" | ||
given-names: "Kenneth" | ||
orcid: "https://orcid.org/0000-0001-8733-0966" | ||
title: "PSYCOP machine learning utilities" | ||
version: 0.1.1 | ||
# doi: 10.5281/zenodo.6675315 | ||
date-released: 2022-21-06 | ||
url: "https://github.com/Aarhus-Psychiatry-Research/psycop-ml-utils" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Model Performance | ||
-------------------------------------------------- | ||
|
||
|
||
model_performance.model_performance | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: psycopmlutils.model_performance.model_performance | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:exclude-members: | ||
|
||
model_performance.utils | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: psycopmlutils.model_performance.utils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:exclude-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Time Series Flattener | ||
-------------------------------------------------- | ||
|
||
|
||
timeseriesflattener.create_feature_combinations | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: psycopmlutils.timeseriesflattener.create_feature_combinations | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:exclude-members: | ||
|
||
timeseriesflattener.flattened_dataset | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: psycopmlutils.timeseriesflattener.flattened_dataset | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:exclude-members: | ||
|
||
|
||
timeseriesflattener.resolve_multiple_functions | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: psycopmlutils.timeseriesflattener.resolve_multiple_functions | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:exclude-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Writers | ||
-------------------------------------------------- | ||
|
||
|
||
writers.sql_writer | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: psycopmlutils.writers.sql_writer | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
:exclude-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# News and Changelog | ||
|
||
- v. 0.1.1 (21 June 2022) | ||
- Documentation was added |
Oops, something went wrong.
5bf2fad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report