Coder Social home page Coder Social logo

naminggame's Introduction

NamingGame

Created by Özge Nilay Yalçın 2014 @METU

This is an example of a simple Naming Game simulation. The naming game is a specific case of language games where a population of agents tries to form a shared lexicon (Vylder and Tuyls, 2006).

Agents have knowledge about: the objects in their environment, how to send and receive signals, and the other agents in the environment.

In the agent.py file the agents are constructed with a lexicon for each agent, and functions for sending and receiving messages. game.py file has the dialog mechanism, how to select conversation partners and keeps a global lexicon file for logging and plotting purposses. simulation.py has the parameters for the simulation, number of agents in the population, number of objects etc. and plots the success rate of the dialogs with respect to the number of objects.

An important property of this specific type of language strategy the agents have, that agents do not clear their lexicons entirely after unsuccessful communication but update their inventories according to a weighted distribution. In simulation.py you can see success_delta and failure_delta parameters, and the min/max limits for the weights.

Moreover, every agent pair has equal probability of getting selected, which reflects a fully connected population.

To initiate the simulation, just run simulation.py. The logging is incomplete in this version.

Let me know if anything is unclear or if you have problems. Cheers, Nilay

Vylder, B. D. and K. Tuyls (2006). How to reach linguistic consensus:A proof of convergence for the naming game. Journal of Theoretical Biology 242(4), 818–831.

naminggame's People

Contributors

onyalcin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.