All Projects → salesforce → Ai Economist

salesforce / Ai Economist

Licence: bsd-3-clause
Foundation is a flexible, modular, and composable framework to model socio-economic behaviors and dynamics with both agents and governments. This framework can be used in conjunction with reinforcement learning to learn optimal economic policies, as done by the AI Economist (https://www.einstein.ai/the-ai-economist).

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ai Economist

0xdeca10b
Sharing Updatable Models (SUM) on Blockchain
Stars: ✭ 285 (-46.93%)
Mutual labels:  ai, economics, ml
Awesome Mlops
😎 A curated list of awesome MLOps tools
Stars: ✭ 258 (-51.96%)
Mutual labels:  ai, ml
Hub
Dataset format for AI. Build, manage, & visualize datasets for deep learning. Stream data real-time to PyTorch/TensorFlow & version-control it. https://activeloop.ai
Stars: ✭ 4,003 (+645.44%)
Mutual labels:  ai, ml
Clai
Command Line Artificial Intelligence or CLAI is an open-sourced project from IBM Research aimed to bring the power of AI to the command line interface.
Stars: ✭ 320 (-40.41%)
Mutual labels:  ai, ml
revisiting rainbow
Revisiting Rainbow
Stars: ✭ 71 (-86.78%)
Mutual labels:  ml, deep-reinforcement-learning
Atlas
An Open Source, Self-Hosted Platform For Applied Deep Learning Development
Stars: ✭ 259 (-51.77%)
Mutual labels:  ai, ml
Cleora
Cleora AI is a general-purpose model for efficient, scalable learning of stable and inductive entity embeddings for heterogeneous relational data.
Stars: ✭ 303 (-43.58%)
Mutual labels:  ai, ml
Netron
Visualizer for neural network, deep learning, and machine learning models
Stars: ✭ 17,193 (+3101.68%)
Mutual labels:  ai, ml
Differentiable Plasticity
Implementations of the algorithms described in Differentiable plasticity: training plastic networks with gradient descent, a research paper from Uber AI Labs.
Stars: ✭ 371 (-30.91%)
Mutual labels:  ai, ml
Kglib
Grakn Knowledge Graph Library (ML R&D)
Stars: ✭ 405 (-24.58%)
Mutual labels:  ai, ml
Metaflow
🚀 Build and manage real-life data science projects with ease!
Stars: ✭ 5,108 (+851.21%)
Mutual labels:  ai, ml
Watermark Remover
Remove watermark automatically(Just can use for fixed position watermark till now). 自动水印消除算法的实现(目前只支持固定水印位置)。
Stars: ✭ 236 (-56.05%)
Mutual labels:  ai, deep-reinforcement-learning
Ailearners
机器学习、深度学习、自然语言处理、计算机视觉、各种算法等AI领域相关技术的路线、教程、干货分享。笔记有:机器学习实战、剑指Offer、cs231n、cs131、吴恩达机器学习、cs224n、python自然语言处理实战
Stars: ✭ 234 (-56.42%)
Mutual labels:  ai, ml
Polyaxon
Machine Learning Platform for Kubernetes (MLOps tools for experimentation and automation)
Stars: ✭ 2,966 (+452.33%)
Mutual labels:  ai, ml
Depthai
DepthAI Python API utilities, examples, and tutorials.
Stars: ✭ 203 (-62.2%)
Mutual labels:  ai, ml
Awesome Mlops
A curated list of references for MLOps
Stars: ✭ 7,119 (+1225.7%)
Mutual labels:  ai, ml
Atari Model Zoo
A binary release of trained deep reinforcement learning models trained in the Atari machine learning benchmark, and a software release that enables easy visualization and analysis of models, and comparison across training algorithms.
Stars: ✭ 198 (-63.13%)
Mutual labels:  ai, deep-reinforcement-learning
Mmlspark
Simple and Distributed Machine Learning
Stars: ✭ 2,899 (+439.85%)
Mutual labels:  ai, ml
Csinva.github.io
Slides, paper notes, class notes, blog posts, and research on ML 📉, statistics 📊, and AI 🤖.
Stars: ✭ 342 (-36.31%)
Mutual labels:  ai, ml
Pwnagotchi
(⌐■_■) - Deep Reinforcement Learning instrumenting bettercap for WiFi pwning.
Stars: ✭ 4,678 (+771.14%)
Mutual labels:  ai, deep-reinforcement-learning

Foundation: An Economic Simulation Framework

This repo contains an implementation of Foundation, a framework for flexible, modular, and composable environments that model socio-economic behaviors and dynamics in a society with both agents and governments.

Foundation provides a Gym-style API:

  • reset: resets the environment's state and returns the observation.
  • step: advances the environment by one timestep, and returns the tuple (observation, reward, done, info).

This simulation can be used in conjunction with reinforcement learning to learn optimal economic policies, as detailed in:

The AI Economist: Improving Equality and Productivity with AI-Driven Tax Policies, Stephan Zheng, Alexander Trott, Sunil Srinivasa, Nikhil Naik, Melvin Gruesbeck, David C. Parkes, Richard Socher.

If you use this code in your research, please cite us using this BibTeX entry:

@misc{2004.13332,
  Author = {Stephan Zheng, Alexander Trott, Sunil Srinivasa, Nikhil Naik, Melvin Gruesbeck, David C. Parkes, Richard Socher},
  Title = {The AI Economist: Improving Equality and Productivity with AI-Driven Tax Policies},
  Year = {2020},
  Eprint = {arXiv:2004.13332},
}

For more information and context, check out:

Simulation Card: Ethics Review and Intended Use

Please see our Simulation Card for a review of the intended use and ethical review of our framework.

Join us on Slack

If you're interested in extending this framework, discussing machine learning for economics, and collaborating on research project:

Installation Instructions

To get started, you'll need to have Python 3.6+ installed.

Using pip

Simply use the Python package manager:

pip install ai-economist

Installing from Source

  1. Clone this repository to your local machine:

    git clone www.github.com/salesforce/ai-economist
    
  2. Create a new conda environment (named "ai-economist" below - replace with anything else) and activate it

    conda create --name ai-economist python=3.6
    conda activate ai-economist
    
  3. Either

    a) Edit the PYTHONPATH to include the ai-economist directory

    export PYTHONPATH=<local path to ai-economist>:$PYTHONPATH
    

    OR

    b) Install as an editable Python package

    cd ai-economist
    pip install -e .
    

Useful tip: for quick access, add the following to your ~/.bashrc or ~/.bash_profile:

alias aiecon="conda activate ai-economist; cd <local path to ai-economist>"

You can then simply run aiecon once to activate the conda environment.

Testing your Install

To test your installation, try running:

conda activate ai-economist
python -c "import ai_economist"

Getting Started

Tutorials

To familiarize yourself with Foundation, check out the tutorials in the tutorials folder. You can run these notebooks interactively in your browser on Google Colab.

To run these notebooks locally, you need Jupyter. See https://jupyter.readthedocs.io/en/latest/install.html for installation instructions and (https://jupyter-notebook.readthedocs.io/en/stable/ for examples of how to work with Jupyter.

Structure of the Code

The simulation is located in the ai_economist/foundation folder.

The code repository is organized into the following components:

Component Description
base Contains base classes to can be extended to define Agents, Components and Scenarios.
agents Agents represent economic actors in the environment. Currently, we have mobile Agents (representing workers) and a social planner (representing a government).
entities Endogenous and exogenous components of the environment. Endogenous entities include labor, while exogenous entity includes landmarks (such as Water and Grass) and collectible Resources (such as Wood and Stone).
components Components are used to add some particular dynamics to an environment. They also add action spaces that define how Agents can interact with the environment via the Component.
scenarios Scenarios compose Components to define the dynamics of the world. It also computes rewards and exposes state for visualization.

Releases and Contributing

  • Please let us know if you encounter any bugs by filing a Github issue.
  • We appreciate all your contributions. If you plan to contribute new Components, Scenarios Entities, or anything else, please see our contribution guidelines.

Changelog

Current version: v1.1.1

For the complete release history, see CHANGELOG.md.

License

Foundation and the AI Economist are released under the BSD-3 License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].