Planned intervention: On Wednesday April 3rd 05:30 UTC Zenodo will be unavailable for up to 2-10 minutes to perform a storage cluster upgrade.

There is a newer version of the record available.

Published July 3, 2021 | Version 0.1.0
Software Open

taupy

Creators

Description

This repository contains taupy, version 0.1.0, together with notebooks and data for the paper “Arguments as drivers of issue polarisation in debates among artificial agents”, currently under review in JASSS.

taupy serves as an implementation of the TDS model described in the paper. It requires Python ≥ 3.9 and pip (available by default given Python 3.9). To install taupy from the source code provided here, please download and unpack taupy-v0.1.0.zip and use pip from the command line in the parent folder:

python -m pip install taupy/

This will install the following dependencies, if not already present:

'sympy>=1.6.2',
'dd>=0.5.6',
'numpy>=1.19.4',
'pandas>=1.2.2',
'python_igraph>=0.9.6',
'scikit_learn>=0.24.2'

If you are on a Linux operating system, dd will automatically install the dd.cudd module which contains a compiled version of CUDD. On Windows and Mac OS, dd will not automatically install CUDD, and taupy will rely on dd's pure Python implementation of binary decision diagrams instead. This does not have implications for functionality, but may have for computation time.

The notebooks are in the notebooks folder and they contain the information that one needs to pass to taupy in order to obtain the results presented in the paper. The notebooks contain additional documentation of this code. Except for experiments.ipnyb, the notebooks do not require taupy to tun, but they do require ipykernel and some common scientific Python packages, such as numpy. The requirements of the individual notebooks are all listed in the first cell of each notebook.

The workflow to create the simulation results from scratch is as follows:

  1. Begin by running the experiments (notebooks/experiments.ipynb) or select the pre-compiled simulation runs (notebooks/data/*pkl) or raw polarisation values (notebooks/data/*zip). Please note that running the experiments in the original settings will not be possible without access to an HPC, and generating the raw polarisation values from the pickled simulations (*pkl) will be intensive as well, in particular concerning the RAM. However, small toy experiments can be run on any personal computer. So it's recommended to work on the pre-compiled results (from the notebooks/data/*zip) files.
  2. There are a number of different notebooks, depending on which data you'd like to analyse and which output you'd like to achieve:
    • Use notebooks/ari-analysis.ipynb to visualise the results of the ARI analysis (Figure 8 in the paper)
    • Use notebooks/distributions.ipynb to compile Figure 5 and Table 2.
    • notebooks/lineplots.ipynb compiles Figure 3, 4, and 7.
    • notebooks/heatmaps.ipynb compiles the additional data Figures from Appendix B.

Please note that some administrative files, like setup.py and the LICENSE, may contain identifying information about the author.

Files

notebooks.zip

Files (264.5 MB)

Name Size Download all
md5:0ee0532c1117835c50ce39321aec6897
264.5 MB Preview Download
md5:7832c89f04e8b9731147ba5e82622922
23.8 kB Preview Download