A simple, fast and handy data loader for REFIT dataset to explore the data at convenience, provided with basic transformations like resampling and extract activities by thresholding.
Project description
REFIT Loader
This project uses Dask Dataframes to ease and fasten the process of loading all the data of REFIT and provides functionalities to transform and manipulate the REFIT dataset for statistical analysis purpose.
REFIT dataset
An electrical load measurements dataset of United Kingdom households from a two-year longitudinal study. Sci Data 4, 160122 (2017).
Murray, D., Stankovic, L. & Stankovic, V.
Links
For more detail information, visit the following links:
http://dx.doi.org/10.1038/sdata.2016.122
https://rdcu.be/cMD9F
Dependencies
Ensure that the following dependencies are satisfied either in your current environment
- python=3.9.2
- numpy=1.20.3
- pandas=1.2.4
- dask=2021.06.2
- json=2.0.9
- sklearn=1.1.2
or create a new environment using 'environment.yml'
conda create env --file=environment.yml
conda activate refit_loader_env
Steps to implement this project
- Use this repository as a submodule and clone it into your target source project
git submodule add https://github.com/mahnoor-shahid/refit_loader.git
- Make sure the 'config.json' file has the correct DATA_FOLDER path; Download the dataset and it should be located in this data folder.
{
"DATA_FOLDER" : "data/refit/",
"DATA_TYPE" : ".csv",
"README_FILE" : "refit_loader/REFIT_Readme.txt",
"REFIT_HOUSES" : [1,2,3,4,5,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21]
}
- Take the reference from Refit_Analyzer to see how Refit_Loader can be accessed as a submodule and how it's utilities can be used.
Reference Repository:
Refit Analyzer = REFIT analyzer is more like a user guide that uses REFIT Loader as a submodule and demonstrates how it can be used and how it can be useful with its utilities.
Repo Structure:
This repository follows the below structure format:
|
|── data_loader.py
|
├── utilities
| └── active_durations.py
| └── configuration.py
| └── parser.py
| └── time_utils.py
| └── validations.py
| └── normalisation.py
|
├── config.json
|
├── environment.yml
|
├── REFIT_README.txt
|
├── readme.md
|
Downloads
The REFIT Smart Home dataset is a publicly available dataset of Smart Home data.
Dataset - https://pureportal.strath.ac.uk/files/52873459/Processed_Data_CSV.7z
Main Page - https://pureportal.strath.ac.uk/en/datasets/refit-electrical-load-measurements-cleaned
Citation
Murray, D., Stankovic, L. & Stankovic, V. An electrical load measurements dataset of United Kingdom households from a two-year longitudinal study. Sci Data 4, 160122 (2017). https://doi.org/10.1038/sdata.2016.122
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file refit_loader-1.2.0.tar.gz.
File metadata
- Download URL: refit_loader-1.2.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb75a971f4c34d76e07891519d799e135acd3fb2c5956a691e7e63db47115094
|
|
| MD5 |
140f3636374509d39d6973edea0fb13a
|
|
| BLAKE2b-256 |
6d7d850ca57130bb7a633aa2c9fa6f347b1d4dbdfb9da1a455709e96de8ac678
|
File details
Details for the file refit_loader-1.2.0-py3-none-any.whl.
File metadata
- Download URL: refit_loader-1.2.0-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c2dc4b424a6858a03510009bc74b80398c3a7d9735de9635be25212c0a66d7e
|
|
| MD5 |
1d659fedf63882be4d693eaa46a98c14
|
|
| BLAKE2b-256 |
61ca53fbde979ab200c4e766fb1ca890a4a4f844d9c5d86e4e7d188f986faa86
|