Skip to main content

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

  1. 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
  1. 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]
}
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

refit_loader-1.2.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

refit_loader-1.2.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file refit_loader-1.2.1.tar.gz.

File metadata

  • Download URL: refit_loader-1.2.1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for refit_loader-1.2.1.tar.gz
Algorithm Hash digest
SHA256 88cde0bc51b294920d6bf9ad6921f7e5393d2de2d5ed2f96ee0d0fd7aee4778a
MD5 c22f138e1d9c31114103fcb1e780e33b
BLAKE2b-256 d61d8ddea54c772a5a59bbee3e991bc1cf8b4cf89ff6aac68c8e9a8da6df758d

See more details on using hashes here.

File details

Details for the file refit_loader-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: refit_loader-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for refit_loader-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e25be550e5ed377971d202569fb1bda340cf7b18744cab1bc9af07229441d2c
MD5 a5defb9bc5edb9ea2e8d11a92f0ce5b3
BLAKE2b-256 366c585d410e0da5f26a01f5896eb5cf2074fffd6bb6a20171a73f9c11737ab2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page