Coder Social home page Coder Social logo

opinionformation's Introduction

OpinionFormation

Project for earth dynamics lecture 2017/2018 @ Potsdam Institute for Climate Impact Research

Opinion Formation on Adaptive Voter Model (AVM)
based on ”Nonequilibrium phase transition in the coevolution of networks and opinions" by Holme, Newman (2006)

We reproduce some results of the above paper and then modify by introducing zealots as done in "Zealotry Effects on Opinion Dynamics in the Adaptive Voter Model" by Klamser, Wiedemann (2017).

C_Execute.ipynb

Executes C Program with parameters that are in the arrays of this notebook.
2nd cell does the same using multiprocessing

C Code:

Takes as arguments: NNodes, NEdges, NOpinions, phi100, MAX_ITER, ITER_Step, file name (max 20chars)
exports data into file in ./data/filename.txt
data has format
1 line parameters
(2 line: adjacency matrix "0 1 ;1 0" -> " "after every entry, ";" after each row)
3 line: opinion vector (array of length NNodes, each entry represents the opinion attribute of the node in consensus state)
4 line: connected component vector (array of length NNodes, each entry corresponds to the connected component a node belongs to)

Further Ideas

  • Upper limit for opinion changes for every node
  • Multiple Categories of Opinions, set of parameters with different weights
  • parameter that controls tendency to change opinion
  • adapt your opinion to the majority of your friends' opinions and not to a single one!

opinionformation's People

Contributors

iiitobiasiii avatar

opinionformation's Issues

process 2 problem

process2 takes random friend at sets it opinion to "my opinion" no matter whether it already is my opinion or not

should reduce computation time when solved

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.