Spectral-normalized Neural Gaussian Process (SNGP) implementation in PyTorch (DEMO).
Important: recommended having Jupyter Lab
installed in the base
conda environment. For the best experience, you may also install nb_conda_kernels
and ipywidgets
in the base
conda environment. Also, using mamba
is recommended.
-
Basic conda setup:
- download Miniconda
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
- install it
$ bash Miniconda3-latest-Linux-x86_64.sh
- reload your terminal, so that
base
environment is activated - install essential packages
$ conda install -c conda-forge "mamba>0.18" $ mamba install -c conda-forge jupyterlab jupyterlab_widgets nodejs nb_conda_kernels $ jupyter labextension install @jupyter-widgets/jupyterlab-manager
-
Create conda environment (double-check that name in
environment.yaml
coincides with the one in the commands below!); usingupdate
as proposed here:$ conda create -n develop-env $ mamba env update -n develop-env --file environment.yaml
-
Activate it:
$ conda activate develop-env
- Install
pre-commit
(config provided in this repo)$ pre-commit install
- (optional) Run against all the files to check the consistency
$ pre-commit run --all-files
- You may also run
black
andisort
to keep the files style-compliant$ isort .; black .
- Proposed linter is
flake8
$ flake8 .
python -m pip install -e .
python -m pip uninstall sngp-pytorch