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.
About 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.
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
- scikit-learn>=1.1.2
or create a new environment using 'environment.yml'
conda create env --file=environment.yml
conda activate refit_loader_env
Getting Started
- Install the refit-loader in your current target environment
pip install refit-loader
- Download the refit dataset. Import the REFIT_Loader and pass the data path to the refit object.
from refit_loader.data_loader import REFIT_Loader
refit = REFIT_Loader(data_path='')
- Fetch the list of available appliances for selected houses.
refit.get_appliance_names(house=2)
- Load data for selected appliance (all houses)
kettle = refit.get_appliance_data(appliance='Kettle')
- (OR) Load data for selected house (all appliances).
house2 = refit.get_house_data(house=2)
- (OR) Load data for sselected appliance and elected houses.
kettle = refit.get_appliance_data(appliance="Kettle", houses=[1,2,3])
- Take the reference from Refit_Analyzer to see how Refit_Loader can be accessed 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
|
├── metadata
| └── REFIT_README.txt
|
├── modules
| └── active_durations.py
| └── parser.py
| └── validations.py
| └── normalisation.py
|
├── environment.yml
|
├── 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
Metadata
Release files for refit-loader 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| refit_loader-1.2.2.tar.gz | 13.3 kB | Without provenance | Details for refit_loader-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| refit_loader-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for refit_loader-1.2.2-py3-none-any.whl |
Total release size: 26.8 kB
Release files / refit_loader-1.2.2.tar.gz
| Download URL | refit_loader-1.2.2.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b4bfb265c205cb59018650c5afa7206481b2c333630e6ae678934d1b5b72685
|
|
BLAKE2b-256 checksum How to use checksums |
4398bd51378caf22523fc0047af35a881f92e743b1dc1b87f6ad453da51bfd13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / refit_loader-1.2.2-py3-none-any.whl
| Download URL | refit_loader-1.2.2-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78552dbbae8f470695b6a3c79140c003ed96ef35a476566e49fa146b8b98183f
|
|
BLAKE2b-256 checksum How to use checksums |
240faf82805574a413d2c4a9df3310881250d00ee41453b60089a1b067daf870
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for refit-loader 1.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.