conda deactivate
conda activate webshop
cd webshop
- Follows instruction in
webshop/readme.md
The installation scripts were modified so that it works on the author's machine setup. If failed, try installing from the original repository.
- Update .env
PYTHONPATH=$PYTHONPATH:$PWD/webshop
OPENAI_APIKEY=your-api-key
- install requirement
chmod +X setup.sh
. ./setup.sh
pip install -r requirement
To run rule optimization steps, use runner/webshop/train.py
. The main function of the script has hyperparameters described in the paper.
Use runner/webshop/eval.py
to evaluate an optimized ruleset. Hyperparameters are either inherited from the optimization log or being the default values.
The alignment experiment discussed in the paper was done using runner/webshop/align.py
.