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.

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

  1. Install the refit-loader in your current target environment
pip install refit-loader
  1. 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='')
  1. Fetch the list of available appliances for selected houses.
refit.get_appliance_names(house=2)
  1. Load data for selected appliance (all houses)
kettle = refit.get_appliance_data(appliance='Kettle')
  1. (OR) Load data for selected house (all appliances).
house2 = refit.get_house_data(house=2)
  1. (OR) Load data for sselected appliance and elected houses.
kettle = refit.get_appliance_data(appliance="Kettle", houses=[1,2,3])
  1. 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

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.2.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.2-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: refit_loader-1.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4b4bfb265c205cb59018650c5afa7206481b2c333630e6ae678934d1b5b72685
MD5 57ccc8e16a6d9dd79ba9ff7ac73af490
BLAKE2b-256 4398bd51378caf22523fc0047af35a881f92e743b1dc1b87f6ad453da51bfd13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: refit_loader-1.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78552dbbae8f470695b6a3c79140c003ed96ef35a476566e49fa146b8b98183f
MD5 4ba416114c89d2dfb50edb5f12c2e81a
BLAKE2b-256 240faf82805574a413d2c4a9df3310881250d00ee41453b60089a1b067daf870

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