Skip to main content

A toolbox for Solid Algorithmic Governance

Project description

Solidago

PyPi License CI status

A toolbox for Solid Algorithmic Governance, used by the Tournesol platform.

Documentation: https://solidago.tournesol.app


Tests

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.

Synthetic experiments

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.

Publish a new release

  1. In a Pull Request, update the version number in ./src/solidago/__version__.py
  2. The package will be published automatically when the new version is merged into "main", by this Github Action.

Copyright & License

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/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solidago-0.4.1.tar.gz (775.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solidago-0.4.1-py3-none-any.whl (82.4 kB view details)

Uploaded Python 3

File details

Details for the file solidago-0.4.1.tar.gz.

File metadata

  • Download URL: solidago-0.4.1.tar.gz
  • Upload date:
  • Size: 775.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for solidago-0.4.1.tar.gz
Algorithm Hash digest
SHA256 6600a586bab07ee3945288dc2522a804ce9ec2fa0083d64ad43ec1ecfd493db2
MD5 fb8acf499e3298b852435bfc90da8ca5
BLAKE2b-256 895fc88e56f38c687b5d69ec6c80d1b2cd1ed50e6d04e56130f6cf82588ce5bc

See more details on using hashes here.

File details

Details for the file solidago-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: solidago-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 82.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for solidago-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3032fcda2b9862735365a51bee1a91824754d217a6e392765d0fa1114ccb7b62
MD5 4bd521c83e9a26714ef53ad511f5e45e
BLAKE2b-256 9c0f0c997fe8cca6a2f4751475009f82351088efbf261c84bb979423136d5dc3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page