-
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.
Merge pull request #25 from sdevenes/feature/documentation
Feature/documentation
- Loading branch information
Showing
9 changed files
with
169 additions
and
18 deletions.
There are no files selected for viewing
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,19 @@ | ||
.. image:: https://travis-ci.org/sdevenes/M05_MiniProject.svg?branch=master | ||
:target: https://travis-ci.org/github/sdevenes/M05_MiniProject | ||
.. image:: https://img.shields.io/badge/docs-latest-orange.svg | ||
:target: https://sdevenes.github.io/M05_MiniProject/index.html | ||
.. image:: https://img.shields.io/badge/github-project-0000c0.svg | ||
:target: https://github.com/sdevenes/M05_MiniProject | ||
|
||
=============================================================== | ||
Human Activity Recognition from Continuous Ambient Sensor Data | ||
=============================================================== | ||
|
||
This mini project was developed during the M05 course "reproducibility and open science" | ||
taught by Idiap as part of the AI master 2020-2021. | ||
|
||
.. topic:: Working hypothesis | ||
|
||
It is possible to perform human activity recognition using data from continuous ambient sensors | ||
|
||
|
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,25 @@ | ||
============ | ||
User Guide | ||
============ | ||
|
||
This guide explains how to use this package and obtain results published in our | ||
paper. Results can be re-generated automatically by executing the following | ||
command: | ||
|
||
.. code-block:: sh | ||
(project) $ python paper.py | ||
For your reference, the paper tables are repeated below, so you can check the | ||
reproducibility of our solution. | ||
|
||
|
||
Results for Protocol `proto1` | ||
----------------------------- | ||
|
||
.. warning:: | ||
This graph is only a example, we need to update it with final results ! | ||
|
||
.. raw:: html | ||
:file: img/result_exemple.html |
Large diffs are not rendered by default.
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
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 @@ | ||
------------ | ||
Installation | ||
------------ | ||
|
||
This package depends on the python libraries listed in requirements.txt to run properly. | ||
Please install a modern version of these packages before trying to run the code examples. | ||
Or create directly a conda virtual environment using the conda.yml file as in the following | ||
exemple. | ||
|
||
To download a copy of this package, clone it from its repository in GitHub: | ||
|
||
.. code:: sh | ||
$ git clone https://github.com/sdevenes/M05_MiniProject.git project | ||
$ cd project | ||
$ conda create -q -n project python=3.8 -c plotly --file requirements.txt | ||
$ conda activate project | ||
(project) $ #you are ready to run baselines! | ||
Building the documentation | ||
-------------------------- | ||
|
||
The project documentation is generated with sphinx and can simply be build using the command: | ||
|
||
.. code:: sh | ||
$ make doc | ||
The python API documentation will be automatically generated for all the python modules located | ||
in `scripts <https://github.com/sdevenes/M05_MiniProject/tree/feature/documentation/scripts>`_, as long as their docstring is completed. |
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,13 @@ | ||
Troubleshooting | ||
--------------- | ||
|
||
Unit tests are available for the project and can be run simply with the following command: | ||
|
||
.. code-block:: shell | ||
(project) $ make unitTests | ||
.. note:: | ||
the tests are implemented using `nose <https://pypi.org/project/nose/>`_ python package, it needs to be installed beforhand | ||
in the case where the conda environment provided is not activated | ||
|
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ scikit-learn | |
plotly_express==0.4.1 | ||
sphinx | ||
sphinx_rtd_theme | ||
nose | ||
nose | ||
tabulate |
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