Learn practical skills, build real-world projects, and advance your career
!apt-get install -qq curl g++ make
!curl -L http://download.osgeo.org/libspatialindex/spatialindex-src-1.8.5.tar.gz | tar xz
import os
os.chdir('spatialindex-src-1.8.5')
!./configure
!make
!make install
!pip install rtree
!ldconfig
import pandas
import numpy
import cloudpickle as cp
from skmob.models.sts_epr import STS_epr
from urllib.request import urlopen
import matplotlib.pyplot as plt

In this example, we simulate the mobility for one month of a set of individuals in New York City using the STS-EPR generative model.

start = pandas.to_datetime('2021/04/10 00:00:00')
end = pandas.to_datetime('2021/05/10 00:00:00')

Download and load the pre-computed data to perform a simulation for New York City