Skip to main content

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

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)

Source distribution for refit-loader 1.2.2
File Size Uploaded
refit_loader-1.2.2.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for refit-loader 1.2.2
File Interpreter ABI Platform
refit_loader-1.2.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page