Skip to content

Commit

Permalink
Merge pull request #35 from quatrope/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
leliel12 authored Feb 21, 2022
2 parents faffa29 + e4933c2 commit dc0206e
Show file tree
Hide file tree
Showing 79 changed files with 5,461 additions and 1,011 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ env:

jobs:
testing:
uses: quatrope/scikit-criteria/.github/workflows/tests.yml@991bafd28ebc638429e2fcd2c69d7cb9722209ea
uses: quatrope/scikit-criteria/.github/workflows/tests.yml@0cd9099455b6e45659347dc08e6eeec95f876c10
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
tox_env: [py37, py38, py39]
tox_env: [py37, py38, py39, py310]
include:
- tox_env: style
- tox_env: docstyle
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ setuptools-*.zip
.pytest_cache
.vscode/
result_images/
docs/source/_dynamic/README
docs/source/_dynamic/README.rst
1 change: 1 addition & 0 deletions .header-template
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
# -*- coding: utf-8 -*-
# License: BSD-3 (https://tldrlegal.com/license/bsd-3-clause-license-(revised))
# Copyright (c) 2016-2021, Cabral, Juan; Luczywo, Nadia
# Copyright (c) 2022, QuatroPe
# All rights reserved.
1 change: 1 addition & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Copyright (c) 2016-2021, Cabral, Juan; Luczywo, Nadia
Copyright (c) 2022, QuatroPe
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<!-- BODY -->


[![QuatroPe](https://img.shields.io/badge/QuatroPe-Applications-1c5896)](https://quatrope.github.io/)
[![Gihub Actions CI](https://github.com/quatrope/scikit-criteria/actions/workflows/CI.yml/badge.svg)](https://github.com/quatrope/scikit-criteria/actions/workflows/CI.yml)
[![Documentation Status](https://readthedocs.org/projects/scikit-criteria/badge/?version=latest&style=flat)](http://scikit-criteria.readthedocs.io)
[![PyPI](https://img.shields.io/pypi/v/scikit-criteria)](https://pypi.org/project/scikit-criteria/)
Expand Down
36 changes: 11 additions & 25 deletions ahp_ext/tuto.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@
}
],
"source": [
"# et’s asume we know in our case, that the importance of \n",
"# the autonomy is the 50%, the confort only a 5% and \n",
"# et’s asume we know in our case, that the importance of\n",
"# the autonomy is the 50%, the confort only a 5% and\n",
"# the price is 45%\n",
"weights=[.5, .05, .45]\n",
"weights = [0.5, 0.05, 0.45]\n",
"weights"
]
},
Expand Down Expand Up @@ -237,10 +237,7 @@
}
],
"source": [
"mtx = ahp.t(\n",
" [[1],\n",
" [1., 1],\n",
" [1/3.0, 1/6.0, 1]])\n",
"mtx = ahp.t([[1], [1.0, 1], [1 / 3.0, 1 / 6.0, 1]])\n",
"mtx"
]
},
Expand Down Expand Up @@ -271,7 +268,7 @@
"outputs": [],
"source": [
"# this validate the data\n",
"ahp.validate_ahp_matrix(3, mtx) "
"ahp.validate_ahp_matrix(3, mtx)"
]
},
{
Expand Down Expand Up @@ -325,7 +322,7 @@
}
],
"source": [
"ahp.validate_ahp_matrix(3, invalid_mtx) "
"ahp.validate_ahp_matrix(3, invalid_mtx)"
]
},
{
Expand Down Expand Up @@ -378,7 +375,7 @@
}
],
"source": [
"ahp.validate_ahp_matrix(3, invalid_mtx) "
"ahp.validate_ahp_matrix(3, invalid_mtx)"
]
},
{
Expand Down Expand Up @@ -409,11 +406,7 @@
}
],
"source": [
"crit_vs_crit = ahp.t([\n",
" [1.], \n",
" [1./3., 1.], \n",
" [1./3., 1./2., 1.]\n",
"])\n",
"crit_vs_crit = ahp.t([[1.0], [1.0 / 3.0, 1.0], [1.0 / 3.0, 1.0 / 2.0, 1.0]])\n",
"crit_vs_crit"
]
},
Expand Down Expand Up @@ -450,16 +443,9 @@
],
"source": [
"alt_vs_alt_by_crit = [\n",
" ahp.t([[1.], \n",
" [1./5., 1.], \n",
" [1./3., 3., 1.]]),\n",
" ahp.t([\n",
" [1.], \n",
" [9., 1.], \n",
" [3., 1./5., 1.]]),\n",
" ahp.t([[1.], \n",
" [1/2., 1.], \n",
" [5., 7., 1.]]),\n",
" ahp.t([[1.0], [1.0 / 5.0, 1.0], [1.0 / 3.0, 3.0, 1.0]]),\n",
" ahp.t([[1.0], [9.0, 1.0], [3.0, 1.0 / 5.0, 1.0]]),\n",
" ahp.t([[1.0], [1 / 2.0, 1.0], [5.0, 7.0, 1.0]]),\n",
"]\n",
"\n",
"alt_vs_alt_by_crit"
Expand Down
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Sphinx
sphinx_rtd_theme

nbsphinx
sphinx_copybutton

ipykernel
ipython

Expand Down
7 changes: 7 additions & 0 deletions docs/source/api/core/dominance.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
``skcriteria.core.dominance`` module
====================================

.. automodule:: skcriteria.core.dominance
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/core/stats.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
``skcriteria.core.stats`` module
================================

.. automodule:: skcriteria.core.stats
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/madm/_base.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
``skcriteria.madm._base`` module
==================================

.. automodule:: skcriteria.madm._base
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/preprocessing/filters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
``skcriteria.preprocessing.filters`` module
=============================================

.. automodule:: skcriteria.preprocessing.filters
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/utils/accabc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
``skcriteria.utils.accabc`` module
==================================

.. automodule:: skcriteria.utils.accabc
:members:
:undoc-members:
:show-inheritance:
7 changes: 6 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@
"sphinx.ext.autosummary",
"nbsphinx",
"sphinxcontrib.bibtex",
"sphinx_copybutton"
]
# =============================================================================
# EXTRA CONF
# =============================================================================

autodoc_member_order = "bysource"

# =============================================================================
# BIB TEX
Expand Down Expand Up @@ -241,7 +246,7 @@
readme_md = fp.read().split("<!-- BODY -->")[-1]


README_RST_PATH = CURRENT_PATH / "_dynamic" / "README"
README_RST_PATH = CURRENT_PATH / "_dynamic" / "README.rst"


with open(README_RST_PATH, "w") as fp:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
|
.. Here we render the README.md of the repository as a main page
.. include:: _dynamic/README
.. include:: _dynamic/README.rst


Contents
Expand Down
13 changes: 13 additions & 0 deletions docs/source/refs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,17 @@ @article{diakoulaki1995determining
pages = {763--770},
year = {1995},
publisher = {Elsevier}
}

% tutorial
@article{simon1955behavioral,
title = {A behavioral model of rational choice},
author = {Simon, Herbert A},
journal = {The quarterly journal of economics},
volume = {69},
number = {1},
pages = {99--118},
year = {1955},
publisher = {MIT Press}
}
6 changes: 3 additions & 3 deletions docs/source/tutorial/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ scikit-criteria
Contents:

.. toctree::
:maxdepth: 2
:glob:
:maxdepth: 1

*
quickstart.ipynb
sufdom.ipynb



Expand Down
9 changes: 8 additions & 1 deletion docs/source/tutorial/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,13 @@
"As can be seen for this case both scalings give the same results"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"----"
]
},
{
"cell_type": "code",
"execution_count": 35,
Expand Down Expand Up @@ -1617,7 +1624,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.9"
"version": "3.9.10"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit dc0206e

Please sign in to comment.