- PCAX comes with examples that showcase how to implement different architectures using the library.
- Examples also include hypertuning code, search spaces, and the best parameters, which makes it easy to experiment and reproduce the results from the paper.
- Both PC and BP versions of architectures are provided for performance and implementation comparison.
Python dependencies for all examples are specified in the examples
group in the pyproject.toml file. This dependency group is installed automatically when you run poetry install
. However, if you installed dependencies without the examples
group, make sure to install it:
- Activate the virtual environment:
conda activate pcax
. cd
in the root directory ofpcax
.poetry install --no-root --with examples
If you want to run hypertuning, you will also need to install stune:
cd
outside of thepcax
root directory.- Clone the stune repository:
git clone [email protected]:liukidar/stune.git
. cd stune
- Activate the virtual environment:
conda activate pcax
. pip install -e .
- Install additional stune dependencies:
pip install omegaconf-argparse names_generator redis optuna-dashboard
cd
into thepcax/examples
folder.- In a new terminal, launch Redis. For this, you need to install podman or docker:
./run_redis.sh
. Return to the original terminal after this step. - You should do this step for each example subfolder!. Configure stune in
pcax/examples/autoencoders/deconv
folder:cd pcax/examples/autoencoders/deconv
andpython -m stune.config
. Use0.0.0.0:6379
forSTUNE_HOST
and empty for the rest. - In a new terminal, activate the pcax environment and run the optuna dashboard from the
pcax/examples
folder:./run_dashboard.sh
. The dashboard is available athttp://127.0.0.1:8080
.