Giter VIP home page Giter VIP logo

misinfo_spread's Introduction

misinfo_spread

Replication code for XXX <-- enter paper reference here

Things to do

See outstanding tasks in TODO.md.

Contents

These are the main contents of this repository:

  • data - place input data here;
  • experiments - place working code here;
  • output - Outputs and plot files (may go anytime);
  • README.md - This file;
  • simulator - R scripts for monte carlo simulation of the various versions of the model;
  • replication - replication code;

Installation

These steps assume you are using Anaconda Python as your python distribution, which comes with the conda package manager installed.

  1. Open the terminal and clone this repository from github:

    git clone [email protected]:tambu85/misinfo_spread.git
    

    This assumes you have configured authentication to Github via SSH.

  2. Enter into the folder misinfo_spread:

    cd misinfo_spread
    
  3. Create a virtual environment and install the required dependencies (see environment.yml). With this can be achieved by running:

    conda env create -n misinfo_spread --file environment.yml
    
  4. Activate the environment you have just created:

    conda activate misinfo_spread
    
  5. Install pip, either via conda (conda install pip) or its default installation methods.

  6. Install the package as an editable install:

    pip install -e .
    

misinfo_spread's People

Contributors

glciampaglia avatar tambu85 avatar

Watchers

 avatar  avatar

misinfo_spread's Issues

Cannot run the model

I have tried to follow the instructions in the README file but I could not get the model to run. I have set num_iterations = 2 in hoax_spread_main.R, I have created the plots and results folder, and then I did the following:

> setwd(".")
> source("./hoax_spread_main.R")
[1] 1
Error in file(filename, "r", encoding = encoding) : 
  cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
  cannot open file 'fun_create_graph_with_gul_sk.R': No such file or directory
> 

Are you sure you included all files?

Also, can you please give more meaningful names to the files? From what I understood in the README the script that needed to be launched was spreading_hoax.R but it seems instead that the one that runs the simulation is hoax_spread_main.R. You could call the files with the functions of the model model_functions.R and the script with the parameter declarations launch_simulation.R.

Thanks!

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.