This is the accompanying code repository for the NeurIPS 2024 publication "Data subsampling for Poisson regression with pth-root-link" by Han Cheng Lie and Alexander Munteanu, implementation and experiments supported by Tim Novak.
-
Clone the repository and navigate into the new directory
git clone https://github.com/Tim907/poisson-regression cd poisson-regression -
Create and activate a new virtual environment
on Unix:
python -m venv venv . ./venv/bin/activateon Windows:
python -m venv venv venv\Scripts\activate.bat
-
Install the package locally
pip install . -
To confirm that everything worked, install
pytestand run the testspip install pytest python -m pytest
The scripts directory contains multiple python scripts that can be
used to run the experiments.
Just make sure, that everything is installed properly.
For example, to run the covertype experiments you can use the following command:
python scripts/run_experiments_synthetic.pyThe plots can be recreated using the jupyter notebooks that can be
found in the notebooks directory.
Instructions on how to set up a jupyter environment can be found
here.