This is the repo containing code, data, and supplementary material for the accompanying publication.
install pyenv dependencies:
sudo apt update
sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl gitinstall pyenv:
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bashadd it to bash, by adding the following to the bottom of the file ~/.bashrc:
export PATH="/home/user/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"install python version:
pyenv install 3.9.6install poetry:
curl -sSL https://install.python-poetry.org | python3 -add it to bash, by adding the following to the bottom of the file ~/.bashrc:
export PATH="/home/[user]/.local/bin:$PATH"set poetry to use pyenv:
poetry config virtualenvs.prefer-active-python trueAnd make sure venv are created inside a project:
poetry config virtualenvs.in-project trueinstall project dependencies:
poetry installwait for all dependencies to install and you are finished.
You can now simply import and use the 'IntegralBrown' as you would with any other GPy kernel:
from brownian_integral_kernel.integral_kernel import IntegralBrown
... #Data loading
k = IntegralBrown(variance=1)
model = GPy.models.GPRegression(times, observation, k, noise_var=0.0) After the installation you can easily reproduce all experiments, evaluation and figures:
- Simply run the "exp_..." scripts which will run the experiments on the datasets or on generated data.
- Run the "eval_..." scripts to calculate the evaluation metrics.
- Run the "vis_..." scripts to generate the plots seen in the paper.
And you are finished.
We also provide all load profile data in the "LP" subfolder.