Skip to content

Commit

Permalink
Final
Browse files Browse the repository at this point in the history
  • Loading branch information
lincior committed Sep 9, 2018
1 parent 4bd8923 commit 56483b9
Show file tree
Hide file tree
Showing 62 changed files with 18,154 additions and 4,043 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# hda-report
Human Data Analytics project - Matteo Drago, Riccardo Lincetto

## Deep Learning Techniques for Gersute Recognition: Dealing with Inactivity
## Deep Learning Techniques for Activity Recognition: Dealing with Inactivity

To run the code download the OPPORTUNITY activity recognition dataset at:
https://archive.ics.uci.edu/ml/datasets/opportunity+activity+recognition
The position of the dataset then has to be provided to the code in preprocessing phase.

The repository is organised as follows:
- code: this folder contains our code to perform activity recognition. There are two matlab files for preprocessing, we suggest using 'preprocessing_full.m' (otherwise the code has to be updated with the correct files location). Please note that 'file.root' variable needs to be provided the location of the dataset. Once preprocessing has been done, one can decide to run 'main.py' and 'main_multiuser.py' to get all the results at once (it takes some time, since 120 different models are trained), or to execute the code for a single configuraion in 'HAR_system.ipynb'. Then there is also a notebook with the purpose of visualising results, 'Evaluation.ipynb': to run this it is not necessary to run the complete code, because a set of results is already provided in the repository;
- code: this folder contains our code to perform activity recognition. There are two matlab files for preprocessing, we suggest using 'preprocessing_full.m' (otherwise the code has to be updated with the correct files location). Please note that 'file.root' variable needs to be provided the location of the dataset. Once preprocessing has been done, one can decide to run 'main.py' to get all the results at once (it takes some time, since 120 different models are trained), or to execute the code for a single configuraion in 'HAR_system.ipynb'. Then there is also a notebook with the purpose of visualising results, 'Evaluation.ipynb': to run this it is not necessary to run the complete code, because a set of results is already provided in the repository;
- presentation: this folder contains a set of slides that we used to present our project;
- report: this folder contains our report, named 'HDA_MDRL.pdf'.
4 changes: 2 additions & 2 deletions code/.ipynb_checkpoints/Evaluation-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,7 @@
"plt.xticks(rotation=\"horizontal\")\n",
"plt.grid(linestyle=\"dotted\")\n",
"plt.tight_layout\n",
"plt.savefig(datapath+\"A_models_cascade.eps\", dpi=600, bbox_extra_artists=(lgd,), bbox_inches='tight')"
"plt.savefig(datapath+\"B_models_cascade.eps\", dpi=600, bbox_extra_artists=(lgd,), bbox_inches='tight')"
]
},
{
Expand Down Expand Up @@ -1920,7 +1920,7 @@
"plt.xticks(rotation=\"horizontal\")\n",
"plt.grid(linestyle=\"dotted\")\n",
"plt.tight_layout\n",
"plt.savefig(datapath+\"A_pipeline_comparison.eps\", dpi=600, bbox_extra_artists=(lgd,), bbox_inches='tight')"
"plt.savefig(datapath+\"B_pipeline_comparison.eps\", dpi=600, bbox_extra_artists=(lgd,), bbox_inches='tight')"
]
},
{
Expand Down
363 changes: 261 additions & 102 deletions code/.ipynb_checkpoints/HAR_system-checkpoint.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions code/Evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,7 @@
"plt.xticks(rotation=\"horizontal\")\n",
"plt.grid(linestyle=\"dotted\")\n",
"plt.tight_layout\n",
"plt.savefig(datapath+\"A_models_cascade.eps\", dpi=600, bbox_extra_artists=(lgd,), bbox_inches='tight')"
"plt.savefig(datapath+\"B_models_cascade.eps\", dpi=600, bbox_extra_artists=(lgd,), bbox_inches='tight')"
]
},
{
Expand Down Expand Up @@ -1920,7 +1920,7 @@
"plt.xticks(rotation=\"horizontal\")\n",
"plt.grid(linestyle=\"dotted\")\n",
"plt.tight_layout\n",
"plt.savefig(datapath+\"A_pipeline_comparison.eps\", dpi=600, bbox_extra_artists=(lgd,), bbox_inches='tight')"
"plt.savefig(datapath+\"B_pipeline_comparison.eps\", dpi=600, bbox_extra_artists=(lgd,), bbox_inches='tight')"
]
},
{
Expand Down
257 changes: 106 additions & 151 deletions code/HAR_system.ipynb

Large diffs are not rendered by default.

Binary file modified code/__pycache__/launch.cpython-36.pyc
Binary file not shown.
Binary file modified code/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file modified code/__pycache__/preprocessing.cpython-36.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion code/data/results/A_Convolutional.eps

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 56483b9

Please sign in to comment.