Solid Algorithmic Governance, used by the Tournesol platform
- In a Pull Request, update the version number in
./src/solidago/__version__.py
- The package will be published automatically when the new version is merged into "main", by this Github Action.
To run tests, setup a virtual environment, activate it, install dependencies and run pytest.
python3 -m venv devenv
source devenv/bin/activate
pip install -e .[test]
pytest
Depending on the platform, you may need to replace source devenv/bin/activate
by another call.
See the venv doc for more information.
To run experiments, once the virtual environement setup, you may run the experiments on synthetic data using.
python3 experiments/synthetic.py experiments/resilience.json
python3 experiments/synthetic.py experiments/engagement_bias.json
The results will be exported in experiments/results
.
You may modify the experiments by editing experiments/resilience.json
,
or by creating a new .json
file.
Copyright 2023 Tournesol Association and contributors.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/.