# PythonABM
This library helps develop efficient agent-based models (ABMs) by abstracting general
ABM functionality to a Simulation class along with a collection of useful methods.
- More package information can be found on PyPI at [https://pypi.org/project/pythonabm/](https://pypi.org/project/pythonabm/)
##
### Installation
This library ***requires*** Python 3.6-3.8 for full functionality. A CUDA compatible
GPU is necessary for enabling the optional parallelization of various simulation methods. More
information on this can be found at the bottom. You can install the latest version of PythonABM with
```
$ pip install pythonabm
```
##
### Running a simulation
Calling the start() method of Simulation (or any subclass of Simulation) will launch the ABM
and run it as follows.
The text-based UI will prompt for the ***name*** identifier for the simulation and
corresponding ***mode*** as described below.
- 0: New simulation
- 1: Continue a previous simulation
- 2: Turn a previous simulation's images to a video
- 3: Archive (.zip) a previous simulation's outputs
To avoid the text-based UI, the name and mode can be passed at the command line by using flags
(without the parentheses). Note: the file does not have to be named "main.py".
```
$ python main.py -n (name) -m (mode)
```
##
### NVIDIA CUDA support
In order to use the code associated with CUDA GPU parallelization, you'll need a CUDA
compatible GPU and NVIDIA's CUDA toolkit. If you don't have the toolkit installed, make
sure you have Microsoft Visual Studio prior to installation.
Download the toolkit directly from NVIDIA [https://developer.nvidia.com/cuda-downloads](https://developer.nvidia.com/cuda-downloads)
or with the conda command show below.
```
$ conda install cudatoolkit
```
##
Python库 | pythonabm-0.0.8.tar.gz
版权申诉
122 浏览量
2022-04-14
00:20:23
上传
评论
收藏 13KB GZ 举报
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- STC15单片机串口2使用程序例子
- 读取日志的excel生成周报 用python3开发weekplan-master.zip
- python 读取excel数据导入dbimport-data-master.zip
- K折交叉验证BP神经网络,多输入多输出BP神经网络(代码完整,数据齐全)
- B07训练原图.zip
- python-对Excel数据处理做可视化分析.zip
- 人工智能大作业-无人机图像目标检测的python源代码+文档说明.zip
- 基于GoogLeNet实现Cifar-10图像分类项目python源码(高分项目).zip
- 数据库 sql 面试题目及答案解析.docx
- 汽车常见 10 种传感器故障后的表现与解决措施.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈