Skip to content

Commit

Permalink
github pages update
Browse files Browse the repository at this point in the history
  • Loading branch information
Aravind Sankaran committed Jun 17, 2024
1 parent 3ee8a4a commit 48e8262
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Build Sphinx documentation
run: |
sudo apt-get install pandoc
sudo apt-get install -y pandoc
cd docs
./sync_notebooks.sh
./autoapidoc.sh
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Partial Ranker

Partial Ranker is a library that implements methodologies for ranking a given set of objects with a *strict partial order* relation. Full documentations can be found here (TODO:Add link).
Partial Ranker is a library that implements methodologies for ranking a given set of objects that have a *strict partial order* relation. The Full documentations can be found [here](https://hpac.github.io/PartialRanker/).

**Input**:

Expand Down Expand Up @@ -34,7 +34,7 @@ pip install git+https://github.com/HPAC/PartialRanker
```
## Examples

For usage and application examples, please follow the jupyter notebooks under the folder ``examples/``.
Details on the usage and application examples can be found [here](https://hpac.github.io/PartialRanker/notebooks-usage/01U_Usage.html). For a hands-on experience, please follow the jupyter notebooks under the folder ``examples/``.

## Reference

Expand All @@ -47,4 +47,8 @@ More details on partial ranking, the methodologies and applications can be found
journal={arXiv preprint arXiv:2405.18259},
year={2024}
}
```
```

## Acknowledgement

Financial support from the Deutsche Forschungsgemeinschaft (German Research Foundation) through grants GSC 111 and IRTG 2379 is gratefully acknowledged.
29 changes: 22 additions & 7 deletions docs/source/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
### Partial Ranker

Partial Ranker is a library that implements methodologies for ranking a given set of objects with a *strict partial order* relation.
Partial Ranker is a library that implements methodologies for ranking a given set of objects that have a *strict partial order* relation. For details on Partial Ranking and its methodologies, refer to [this paper](https://arxiv.org/abs/2405.18259).

**INPUT**:
**Input**:

At the moment, we support only vector objects as input. An example for a set of vector objects would be:

```json
```
objects = {
't0' : [0.1, 0.12, 0.11, 0.13 ],
't1' : [0.10, 0.13, 0.10 ],
Expand All @@ -16,16 +16,27 @@ objects = {
```
The *better-than relation* between a pair of objects with which the partial order is formed is implemented in the library. At the moment, we support better-than relation based on comparisons of the Inter-Quantile-Intervals of the objects.

**OUTPUT**:
**Output**:

The output is an *ordered set partition* of the objects into ranks. For example:

```json
```
Rank 0: ['t0', 't1'],
Rank 1: ['t2']
```

#### Reference
## Installation

Partial Ranker requires Python>=3.6 and can be installed using the command:

```bash
pip install git+https://github.com/HPAC/PartialRanker
```
## Examples

For a hands-on experience, please clone the github repo ```https://github.com/HPAC/PartialRanker.git``` and follow the jupyter notebooks under the folder ``examples/``.

## Cite

More details on partial ranking, the methodologies and applications can be found in [this paper](https://arxiv.org/abs/2405.18259). If you are using this library, please cite:

Expand All @@ -36,4 +47,8 @@ More details on partial ranking, the methodologies and applications can be found
journal={arXiv preprint arXiv:2405.18259},
year={2024}
}
```
```

## Acknowledgement

Financial support from the Deutsche Forschungsgemeinschaft (German Research Foundation) through grants GSC 111 and IRTG 2379 is gratefully acknowledged.
7 changes: 7 additions & 0 deletions docs/source/_templates/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "!breadcrumbs.html" %}

{% block breadcrumbs_aside %}
<li class="wy-breadcrumbs-aside">
<a href="{{ github_url }}" class="fa fa-github" target="_blank"> Click here for source code</a>
</li>
{% endblock %}
9 changes: 7 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'Partial Ranker'
copyright = '2024, Aravind Sankaran'
copyright = '2024, HPAC Group, RWTH Aachen and Umeå University'
author = 'Aravind Sankaran'
release = '0.2'
version = '1.0.0'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down Expand Up @@ -45,6 +45,11 @@
'sticky_navigation': False,
}

html_context = {
'display_github': True,
'github_url': 'https://github.com/HPAC/PartialRanker/tree/main',
}

# pip install git+https://github.com/bashtage/sphinx-material.git
#html_theme = 'sphinx_material'

Expand Down
6 changes: 3 additions & 3 deletions docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
Installation <Installation>
Usage <notebooks-usage/01U_Usage>
Examples <notebooks-usage/index>
Methodologies <notebooks-usage/index>
Applications <notebooks-applications/index>
API Reference <api/partial_ranker>
```

## Indices and tables
<!-- ## Indices and tables
- {ref}`genindex`
- {ref}`modindex`
- {ref}`search`
- {ref}`search` -->
2 changes: 1 addition & 1 deletion docs/source/notebooks-usage/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Examples
## Methodologies

```{toctree}
:maxdepth: 1
Expand Down
18 changes: 1 addition & 17 deletions examples/01U_Usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The required **input** to use this library is a set of objects, each with a set of scalar values, represented as a dictionary. For example:\n",
"\n",
"```json\n",
"measurements = {\n",
" 't0' : [0.13, 0.21, 0.18, 0.12 ],\n",
" 't1' : [0.30, 0.33, 0.28 ],\n",
" 't1' : [0.32, 0.31, 0.38, 0.32, 0.37, 0.32 ],\n",
" ...\n",
"}\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"For the purpose of demonstration, we simulate the measurement values by sampling from normal distribution. To this end, the module ``MeasurementsSimulator`` can be used. In the following example, we create 4 objects with measurements simulated from two normal distributions differing in mean and standard deviation."
"The required **input** to use this library is a set of objects, each with a set of scalar values, represented as a dictionary. For the purpose of demonstration, we simulate the measurement values by sampling from normal distribution. To this end, the module ``MeasurementsSimulator`` can be used. In the following example, we create 4 objects with measurements simulated from two normal distributions differing in mean and standard deviation."
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/06A_RootCause_GLS.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
"source": [
"We consolidate the execution times of the shortlisted algorithms from all the repetitions and prepare the measurement data in the following format:\n",
"\n",
"```json\n",
"```\n",
"measurements = {\n",
" 'algorithm2': [0.025, 0.024, ..., ],\n",
" 'algorithm8': [0.023, 0.024, ..., ],\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/07A_RootCause_BPI.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
"source": [
"Each variant is assigned a unique ID. We then identify the variants that were observed in more than 100 cases, and prepare the durations data in the following format:\n",
"\n",
"```json\n",
"```\n",
"durations = {\n",
" 0: [42032,76321,...],\n",
" 1: [65434, 23432, ...],\n",
Expand Down

0 comments on commit 48e8262

Please sign in to comment.