Skip to content

Repository for project on predicting hosuehold occupancy

Notifications You must be signed in to change notification settings

piotrkan/household_predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a repo for household occupancy prediction project. overall I have spent approx. 6 hrs on this project (6hrs spread across few days, not in a row). Work was done on Windows Machine on VSCode.

Setup

#create data dir (this is where you keep data)
mkdir data

#create a virtual env
python -m venv .venv_name 

#windows activation
.\.venv_name\Scripts\activate

#linux or mac activation
source ./.venv_name/bin/activate

#once activated, install dependencies
pip install -r requirements.txt

#install the venv as a kernel for the notebook
python -m ipykernel install --user --name=venv_name

#if you want to use jupyter notebook, run the following. I used VSCode for the development but jupyter notebook works just as fine
jupyter notebook

Workflow

To examine the workflow, see main.ipynb.

NOTE: there is a data directory but it's empty, this is because its not a good practice to share data on github. For the notebook to work correctly, move the data.db file to data folder

Comments

Working in notebooks is not my preferred way of working (I prefer working with scripts in IDE as it allows for better consistency, works better with version control and allows for unit testing and applying software development practices). However for the sake of this excercise, I have included everything in the notebook, including functions & classes I used for preprocessing and modelling. The notebook is divided in 3 sections and each section has their own dependencies imported.

Normally I would also like to work in branches when using git however due to time constraints and simplicity, I decided to keep everything constrained in one notebook (normally I could explore different feature engineering approaches in different branches; I also wouldnt use main branch as the development branch

About

Repository for project on predicting hosuehold occupancy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published