Coder Social home page Coder Social logo

gos's People

Contributors

anaribeiros avatar carlcolglazier avatar chowington avatar johare2 avatar mclay1 avatar mcrawf2023 avatar paulrbrenner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gos's Issues

trouble running code for first time

I successfully installed numpy, pandas, and python 3, but I am having trouble navigating to gosdemo/gos. I was able to use command line to navigate to the GOS folder and can see requirements.txt, but I cant execute steps 2 or 4 on the migration example. I keep getting the error "command not found". The same error comes up when I try to install plotly. Is there something else I need to download?

Hard-coded file paths.

In the macro migration example:

%cd ~/research/migration/GOS/

and

def file_path(name):
    """
    Shortcut function to get the relative path to the directory
    which contains the data.
    """
    return "./examples/multiscale-migration/data/%s" % name

m.readshapefile('./gos/World/World', 'world',drawbounds=False)

These will not work on a fresh install of GOS.

installing pandas while using CRC machine

I am working on going through the steps in the GOS read me while using the CRC machine and am coming across errors while executing migration.py and VizDemo.py because pandas will not properly install. I use the command pip3 install numpy pandas and an error message came up saying permission denied: '/opt/crc/p/python/3.6.0/gcc/6.2.0/lib/python3.6/site-packages/pandas'

Some countries unexpectedly not getting neighbors.

It seems that some neighboring countries are not being assigned. For example, the border between Sweden and Norway does not show up.

t = neighbors()
t["neighbors"]["Norway"]
nan
t["neighbors"]["Sweden"]
Sweden    Finland
Name: neighbors, dtype: object

Here the border between Sweden and Finland appears in the model, but the border between Sweden and Norway does not.

I looked at the source for the data, Neighbors.csv and is shows the following for Norway and Sweden:

NO,578,Norway,5147790,,nb nn,se,UTC+2 UTC+1
SE,752,Sweden,9723810,FI,sv,en fi,UTC+2 UTC+1

The issue seem to be with the data itself, which is missing some borders.

Repository lacks a README.

The README should contain:

  • Brief introduction to the directory.
  • Documentation on how to install all requirements for running software in the directory.
  • Information on how to set up a project using GOS in Jupyter.
  • Some nice graphs.

Use brain drain as a factor in the migration score.

From @johare2:

The brain drain part made it so that the top x% of a country was more likely to move, and this motivation was multiplied by a number inversely proportional to the country's mean income. So the top performing individuals in very poor countries are the most tempted by brain drain.

More documentation for the macro migration example.

The example could be a useful resource for showing what GOS does and how it simplifies the process of creating global models; however, the notebook in its current status doesn't accomplish this as well as it could.

Migration scores should be generated iteratively.

Instead of creating the migration scores for each agent at initialization, it makes more sense to calculate these score separately. This would allow the score to be updated as the program iterates through simulations.

Neighborhoods need to be added.

The paper describes each country as having a set of neighborhoods which contain agents. These need to be added to have the model in the program match the paper.

Modifying code using CRC machine

I was able to run the visualization by editing the local code on my computer, but when I commented out the basemap import on the master branch of GitHub and re cloned the files onto the CRC machine, it did not sync with the cloned files on the machine. Is there a better way to edit the code when using the CRC machine?

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.