Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.51 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.51 KB

Data Generation

This directory contains notebooks and seeds for generating the datasets.

The phases of generating data are currently:

  • Generate a description of a Home (notebook)
  • Generate the Areas of the Home useful for automation (notebook)
  • Generate the devices in each area (notebook)
  • Generate interesting actions that can be used within the home (notebook)
  • Generate the subset of devices needed to evaluate the action
  • Generate a list of possible things to consider when summariziing an area (notebook)
  • Generate a list of anomalies in a home (notebook)

There is a notebook for each phase, as well as seed data that is used for the n-shot examples at that phase. The notebooks help drive feeding data from the previous phase into the next phase. This flow makes it straight forward to iterate and checkpoint at any particular phase.

The data is generated in a format that can be consumed by https://github.com/allenporter/home-assistant-synthetic-home

The next phase needed is to generate useful state data for triggering those actions.

Notebook Development environment

This is an example of how to prepare the python venv for use with the jupyet notebooks:

  1. Create the virtual environment

    $ python3 -m venv venv
    $ source venv/bin/activate
    $ pip install --upgrade pip
    $ pip3 install -r requirements_dev.txt
  2. Open the notebook and select the venv interpreter and kernel