Within the download you'll find the following directories and files:
har/
├── data/
│ ├── clean_testing_data.csv
│ ├── clean_training_data.csv
│ └── HAR_data.zip
│ ├── HAR_training.csv
│ └── HAR_testing.csv
├── img/
│ ├── Confusion_Matrix_adelmo.png
│ ├── Confusion_Matrix_carlitos.png
│ ├── Confusion_Matrix_charles.png
│ ├── Confusion_Matrix_eurico.png
│ ├── Confusion_Matrix_jeremy.png
│ ├── Confusion_Matrix_pedro.png
│ ├── Variable_Importance_adelmo.png
│ ├── Variable_Importance_carlitos.png
│ ├── Variable_Importance_charles.png
│ ├── Variable_Importance_eurico.png
│ ├── Variable_Importance_jeremy.png
│ └── Variable_Importance_pedro.png
│
├── assignment.py
├── cleaning_data.py
└── plot_visualization.py
If you have a clean data, you don't have to first run script cleaning_data.py
$ ipython assignment.py
carlitos | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
MSE = 0.03854 |
pedro | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
MSE = 0.03321 |
adelmo | ||||||
---|---|---|---|---|---|---|
MSE = 0.01969 |
charles | ||||||
---|---|---|---|---|---|---|
MSE = 0.00754 |
eurice | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
MSE = 0.03148 |
jeremy | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MSE = 0.02644 |
- Python 2.7+
- numpy, 1.8.2
- pandas, 0.17.1
- scikit-learn, 0.17
- matplotlib, 1.4.2