2017-10-18 18:28:42 +00:00
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T12:41:48.007238Z",
"start_time": "2017-10-19T14:41:47.980725+02:00"
}
},
"source": [
"# Soil Tutorial"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-02T16:44:14.120953Z",
"start_time": "2017-07-02T18:44:14.117152+02:00"
}
},
"source": [
"## Introduction"
]
},
{
"cell_type": "markdown",
"metadata": {
"cell_style": "center",
"collapsed": true
},
"source": [
"This notebook is an introduction to the soil agent-based social network simulation framework.\n",
"In particular, we will focus on a specific use case: studying the propagation of news in a social network.\n",
"\n",
"The steps we will follow are:\n",
"\n",
"* Modelling the behavior of agents\n",
"* Running the simulation using different configurations\n",
"* Analysing the results of each simulation"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-03T13:38:48.052876Z",
"start_time": "2017-07-03T15:38:48.044762+02:00"
}
},
"source": [
"But before that, let's import the soil module and networkx."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-03T10:58:13.451481Z",
"start_time": "2017-11-03T11:58:12.643469+01:00"
2017-10-18 18:28:42 +00:00
}
},
2023-03-23 13:49:09 +00:00
"outputs": [],
2017-10-18 18:28:42 +00:00
"source": [
"import soil\n",
"import networkx as nx\n",
" \n",
"%load_ext autoreload\n",
"%autoreload 2\n",
"\n",
2023-03-23 13:49:09 +00:00
"%matplotlib inline\n",
2017-10-18 18:28:42 +00:00
"# To display plots in the notebooed_"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-03T13:41:19.788717Z",
"start_time": "2017-07-03T15:41:19.785448+02:00"
}
},
"source": [
"## Basic concepts"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"There are three main elements in a soil simulation:\n",
" \n",
"* The network topology. A simulation may use an existing NetworkX topology, or generate one on the fly\n",
"* Agents. There are two types: 1) network agents, which are linked to a node in the topology, and 2) environment agents, which are freely assigned to the environment.\n",
"* The environment. It assigns agents to nodes in the network, and stores the environment parameters (shared state for all agents).\n",
"\n",
"Soil is based on ``simpy``, which is an event-based network simulation library.\n",
"Soil provides several abstractions over events to make developing agents easier.\n",
"This means you can use events (timeouts, delays) in soil, but for the most part we will assume your models will be step-based.\n"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-02T15:55:12.933978Z",
"start_time": "2017-07-02T17:55:12.930860+02:00"
}
},
"source": [
"## Modeling behaviour"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-03T13:49:31.269687Z",
"start_time": "2017-07-03T15:49:31.257850+02:00"
}
},
"source": [
"Our first step will be to model how every person in the social network reacts when it comes to news.\n",
"We will follow a very simple model (a finite state machine).\n",
"\n",
"There are two types of people, those who have heard about a newsworthy event (infected) or those who have not (neutral).\n",
"A neutral person may heard about the news either on the TV (with probability **prob_tv_spread**) or through their friends.\n",
"Once a person has heard the news, they will spread it to their friends (with a probability **prob_neighbor_spread**).\n",
"Some users do not have a TV, so they only rely on their friends.\n",
"\n",
"The spreading probabilities will change over time due to different factors.\n",
"We will represent this variance using an environment agent."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Network Agents"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-03T14:03:07.171127Z",
"start_time": "2017-07-03T16:03:07.165779+02:00"
}
},
"source": [
2020-10-19 11:14:48 +00:00
"A basic network agent in Soil would typically inherit from ``soil.agents.NetworkAgent``, and define its behaviour in every step of the simulation by implementing a ``run(self)`` method.\n",
2017-10-18 18:28:42 +00:00
"The most important attributes of the agent are:\n",
"\n",
2020-10-19 11:14:48 +00:00
"* ``agent.state``, a dictionary with the state of the agent. This tate will be saved in every step of the simulation. It can be accessed from the agent as well:\n",
2017-10-18 18:28:42 +00:00
"```py\n",
2020-10-19 11:14:48 +00:00
"a = soil.agents.NetworkAgent(env=env)\n",
"agent.state['hours_of_sleep'] = 10\n",
"# is the same as\n",
2017-10-18 18:28:42 +00:00
"a['hours_of_sleep'] = 10\n",
"```\n",
" The state of the agent is stored in every step of the simulation:\n",
" ```py\n",
" print(a['hours_of_sleep', 10]) # hours of sleep before step #10\n",
" print(a[None, 0]) # whole state of the agent before step #0\n",
" ```\n",
"\n",
"* ``agent.env``, a reference to the environment. Most commonly used to get access to the environment parameters and the topology:\n",
" ```py\n",
" a.env.G.nodes() # Get all nodes ids in the topology\n",
" a.env['minimum_hours_of_sleep']\n",
"\n",
" ```\n",
"\n",
"Since our model is a finite state machine, we will be basing it on ``soil.agents.FSM``.\n",
"\n",
2020-10-19 11:14:48 +00:00
"Agents that inherit from ``soil.agents.FSM`` do not need to specify a ``step`` method.\n",
"Instead, we describe each finite state with a function.\n",
"To change to another state, a function may return the new state, or the ``id`` of a state.\n",
"If no state is returned, the state remains unchanged.\n",
"\n",
"The current state of the agent can be checked with ``agent.state['id']``. That state id can be used to look for other networks in that specific state\n",
"\n",
"\n",
"Our agent will have of two states, ``neutral`` (default) and ``infected``.\n",
2017-10-18 18:28:42 +00:00
"\n",
"Here's the code:"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-03T10:58:16.051690Z",
"start_time": "2017-11-03T11:58:16.006044+01:00"
2020-10-19 11:14:48 +00:00
}
2017-10-18 18:28:42 +00:00
},
"outputs": [],
"source": [
"import random\n",
"\n",
"class NewsSpread(soil.agents.FSM):\n",
" @soil.agents.default_state\n",
" @soil.agents.state\n",
" def neutral(self):\n",
" r = random.random()\n",
2023-03-23 13:49:09 +00:00
" if self['has_tv'] and r <= self.env['prob_tv_spread']:\n",
2017-10-18 18:28:42 +00:00
" return self.infected\n",
" return\n",
" \n",
" @soil.agents.state\n",
" def infected(self):\n",
" prob_infect = self.env['prob_neighbor_spread']\n",
" for neighbor in self.get_neighboring_agents(state_id=self.neutral.id):\n",
" r = random.random()\n",
" if r < prob_infect:\n",
2023-03-23 13:49:09 +00:00
" neighbor.set_state(self.infected.id)\n",
2017-10-18 18:28:42 +00:00
" return\n",
" "
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-02T12:22:53.931963Z",
"start_time": "2017-07-02T14:22:53.928340+02:00"
}
},
"source": [
"### Environment agents"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Environment agents allow us to control the state of the environment.\n",
"In this case, we will use an environment agent to simulate a very viral event.\n",
"\n",
"When the event happens, the agent will modify the probability of spreading the rumor."
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-03T10:58:17.653736Z",
"start_time": "2017-11-03T11:58:17.612944+01:00"
2020-10-19 11:14:48 +00:00
}
2017-10-18 18:28:42 +00:00
},
"outputs": [],
"source": [
"NEIGHBOR_FACTOR = 0.9\n",
"TV_FACTOR = 0.5\n",
2020-10-19 11:14:48 +00:00
"\n",
"\n",
"class NewsEnvironmentAgent(soil.agents.NetworkAgent):\n",
2017-10-18 18:28:42 +00:00
" def step(self):\n",
" if self.now == self['event_time']:\n",
" self.env['prob_tv_spread'] = 1\n",
" self.env['prob_neighbor_spread'] = 1\n",
" elif self.now > self['event_time']:\n",
" self.env['prob_tv_spread'] = self.env['prob_tv_spread'] * TV_FACTOR\n",
" self.env['prob_neighbor_spread'] = self.env['prob_neighbor_spread'] * NEIGHBOR_FACTOR"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-02T11:23:18.052235Z",
"start_time": "2017-07-02T13:23:18.047452+02:00"
}
},
"source": [
"### Testing the agents"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-02T16:14:54.572431Z",
"start_time": "2017-07-02T18:14:54.564095+02:00"
}
},
"source": [
"Feel free to skip this section if this is your first time with soil."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Testing agents is not easy, and this is not a thorough testing process for agents.\n",
"Rather, this section is aimed to show you how to access internal pats of soil so you can test your agents."
]
},
{
"cell_type": "markdown",
"metadata": {
"cell_style": "split"
},
"source": [
"First of all, let's check if our network agent has the states we would expect:"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-03T10:58:19.781155Z",
"start_time": "2017-11-03T11:58:19.754362+01:00"
2017-10-18 18:28:42 +00:00
},
"cell_style": "split"
},
"outputs": [
{
"data": {
"text/plain": [
2020-10-19 11:14:48 +00:00
"{'neutral': <function __main__.NewsSpread.neutral(self)>,\n",
" 'infected': <function __main__.NewsSpread.infected(self)>}"
2017-10-18 18:28:42 +00:00
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"NewsSpread.states"
]
},
{
"cell_type": "markdown",
"metadata": {
"cell_style": "split"
},
"source": [
"Now, let's run a simulation on a simple network. It is comprised of three nodes:\n"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-03T10:58:20.791777Z",
"start_time": "2017-11-03T11:58:20.565173+01:00"
2017-10-18 18:28:42 +00:00
},
"cell_style": "split",
"scrolled": false
},
"outputs": [
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAgMAAAGFCAYAAABg2vAPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAgpUlEQVR4nO3df3BU9cHv8feGpeRiCJgHISLoE0jHEmxF7TxoFQU09kK5autzx/qrOgMUUKEtvagI/XlhtFdnOhVbiITetmNttSpt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wy7DiSJPUrRVEGSkpKeOqppxg4cCCXXXYZra2tYUeSJKnfKIoyADBq1Ch+/OMfc/jwYaZMmRJ2HEmS+o2iKQMA1113HZdffjnPP/883/nOd8KOI0lSv9A3v1rYC8lkkpNPPpl3332X5557jrPPPjvsSJIkhaJ/f7WwF0pKStiyZQuxWIyLL76Yo0ePhh1JkqQ+rejKAMD48eO5++67OXDgAJ/73OfCjiNJUp9WlGUAYNGiRUyePJknnniCVatWhR1HkqQ+q2jLAMDGjRspLy9nwYIFNDY2hh1HkqQ+qajLQGlpKb/73e9IJpNMnjyZZDIZdiRJkvqcoi4DAOeddx633XYbb7/9Ntdcc03YcSRJ6nOKvgwA3HnnnXzyk5/koYce4pFHHgk7jiRJfUokygDAtm3bKC0t5dprr+Wdd94JO44kSX1GZMrAsGHD+NWvfuXjjiVJOk5kygDAzJkzufHGG/nrX//KwoULw44jSVKfEKkyALB27VpOO+00Vq5cyZYtW8KOI0lS6CJXBjoedxyPx5k5c6aPO5YkRV7kygDA6NGjqa+v59ChQ0ybNi3sOJIkhSqSZQDghhtuYObMmfzpT39i+fL
2017-10-18 18:28:42 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2017-10-18 18:28:42 +00:00
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"G = nx.Graph()\n",
"G.add_edge(0, 1)\n",
"G.add_edge(0, 2)\n",
"G.add_edge(2, 3)\n",
"G.add_node(4)\n",
"pos = nx.spring_layout(G)\n",
"nx.draw_networkx(G, pos, node_color='red')\n",
"nx.draw_networkx(G, pos, nodelist=[0], node_color='blue')"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-03T11:53:30.997756Z",
"start_time": "2017-07-03T13:53:30.989609+02:00"
},
"cell_style": "split"
},
"source": [
"Let's run a simple simulation that assigns a NewsSpread agent to all the nodes in that network.\n",
"Notice how node 0 is the only one with a TV."
]
},
2020-10-19 11:14:48 +00:00
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
2023-03-23 13:49:09 +00:00
"<module 'soil.agents' from '/mnt/data/home/j/git/lab.gsi/soil/soil/soil/agents/__init__.py'>"
2020-10-19 11:14:48 +00:00
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import importlib\n",
"importlib.reload(soil.agents)"
]
},
2017-10-18 18:28:42 +00:00
{
"cell_type": "code",
2018-05-04 08:01:49 +00:00
"execution_count": 7,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-03T10:58:55.517768Z",
"start_time": "2017-11-03T11:58:55.424083+01:00"
2017-10-18 18:28:42 +00:00
},
"cell_style": "split"
},
2023-03-23 13:49:09 +00:00
"outputs": [],
2017-10-18 18:28:42 +00:00
"source": [
2023-03-23 13:49:09 +00:00
"env_params = {\n",
" 'prob_tv_spread': 0,\n",
" 'prob_neighbor_spread': 0\n",
"}\n",
2017-10-18 18:28:42 +00:00
"\n",
"MAX_TIME = 100\n",
"EVENT_TIME = 10\n",
"\n",
2018-12-04 08:54:29 +00:00
"sim = soil.Simulation(topology=G,\n",
2020-10-19 11:14:48 +00:00
" num_trials=1,\n",
" max_time=MAX_TIME,\n",
" environment_agents=[{'agent_type': NewsEnvironmentAgent,\n",
" 'state': {\n",
" 'event_time': EVENT_TIME\n",
" }}],\n",
" network_agents=[{'agent_type': NewsSpread,\n",
" 'weight': 1}],\n",
" states={0: {'has_tv': True}},\n",
" default_state={'has_tv': False},\n",
" environment_params=env_params)\n",
"env = sim.run_simulation(dry_run=True)[0]"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "markdown",
"metadata": {
"cell_style": "split"
},
"source": [
"Now we can access the results of the simulation and compare them to our expected results"
]
},
{
"cell_type": "code",
2018-05-04 08:01:49 +00:00
"execution_count": 8,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-03T10:59:01.577474Z",
"start_time": "2017-11-03T11:59:01.414215+01:00"
2017-10-18 18:28:42 +00:00
},
"cell_style": "split",
"scrolled": false
},
2020-10-19 11:14:48 +00:00
"outputs": [],
2017-10-18 18:28:42 +00:00
"source": [
"agents = list(env.network_agents)\n",
"\n",
"# Until the event, all agents are neutral\n",
"for t in range(10):\n",
" for a in agents:\n",
2023-03-23 13:49:09 +00:00
" assert a['state_id', t] == a.neutral.id\n",
" \n",
2017-10-18 18:28:42 +00:00
"# After the event, the node with a TV is infected, the rest are not\n",
2023-03-23 13:49:09 +00:00
"assert agents[0]['has_tv']\n",
"assert agents[0]['state_id', 11] == NewsSpread.infected.id\n",
"assert not agents[2]['has_tv']\n",
"assert agents[2]['state_id', 11] == NewsSpread.neutral.id\n",
2017-10-18 18:28:42 +00:00
"\n",
"\n",
"# At the end, the agents connected to the infected one will probably be infected, too.\n",
2023-03-23 13:49:09 +00:00
"assert agents[1]['state_id', MAX_TIME] == NewsSpread.infected.id\n",
"assert agents[2]['state_id', MAX_TIME] == NewsSpread.infected.id\n",
2017-10-18 18:28:42 +00:00
"\n",
"# But the node with no friends should not be affected\n",
2023-03-23 13:49:09 +00:00
"assert agents[4]['state_id', MAX_TIME] == NewsSpread.neutral.id\n",
2017-10-18 18:28:42 +00:00
" "
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-02T16:41:09.110652Z",
"start_time": "2017-07-02T18:41:09.106966+02:00"
},
"cell_style": "split"
},
"source": [
"Lastly, let's see if the probabilities have decreased as expected:"
]
},
{
"cell_type": "code",
2020-10-19 11:14:48 +00:00
"execution_count": 9,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-01T14:07:55.288616Z",
"start_time": "2017-11-01T15:07:55.241116+01:00"
2017-10-18 18:28:42 +00:00
},
2020-10-19 11:14:48 +00:00
"cell_style": "split"
2017-10-18 18:28:42 +00:00
},
"outputs": [],
"source": [
"assert abs(env.environment_params['prob_neighbor_spread'] - (NEIGHBOR_FACTOR**(MAX_TIME-1-10))) < 10e-4\n",
"assert abs(env.environment_params['prob_tv_spread'] - (TV_FACTOR**(MAX_TIME-1-10))) < 10e-6"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Running the simulation"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-03T11:20:28.566944Z",
"start_time": "2017-07-03T13:20:28.561052+02:00"
},
"cell_style": "split"
},
"source": [
"To run a simulation, we need a configuration.\n",
"Soil can load configurations from python dictionaries as well as JSON and YAML files.\n",
"For this demo, we will use a python dictionary:"
]
},
{
"cell_type": "code",
2020-10-19 11:14:48 +00:00
"execution_count": 10,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-01T14:07:57.008940Z",
"start_time": "2017-11-01T15:07:56.966433+01:00"
2017-10-18 18:28:42 +00:00
},
2020-10-19 11:14:48 +00:00
"cell_style": "split"
2017-10-18 18:28:42 +00:00
},
"outputs": [],
"source": [
"config = {\n",
" 'name': 'ExampleSimulation',\n",
" 'max_time': 20,\n",
" 'interval': 1,\n",
" 'num_trials': 1,\n",
" 'network_params': {\n",
" 'generator': 'complete_graph',\n",
" 'n': 500,\n",
" },\n",
" 'network_agents': [\n",
" {\n",
" 'agent_type': NewsSpread,\n",
" 'weight': 1,\n",
" 'state': {\n",
" 'has_tv': False\n",
" }\n",
" },\n",
" {\n",
" 'agent_type': NewsSpread,\n",
" 'weight': 2,\n",
" 'state': {\n",
" 'has_tv': True\n",
" }\n",
" }\n",
" ],\n",
" 'environment_agents':[\n",
" {'agent_type': NewsEnvironmentAgent,\n",
" 'state': {\n",
" 'event_time': 10\n",
" }\n",
" }\n",
" ],\n",
" 'states': [ {'has_tv': True} ],\n",
" 'environment_params':{\n",
" 'prob_tv_spread': 0.01,\n",
" 'prob_neighbor_spread': 0.5\n",
" }\n",
"}"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-03T11:57:34.219618Z",
"start_time": "2017-07-03T13:57:34.213817+02:00"
},
"cell_style": "split"
},
"source": [
"Let's run our simulation:"
]
},
{
"cell_type": "code",
2020-10-19 11:14:48 +00:00
"execution_count": 11,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-01T14:08:34.312637Z",
"start_time": "2017-11-01T15:07:57.774458+01:00"
2017-10-18 18:28:42 +00:00
},
2020-10-19 11:14:48 +00:00
"cell_style": "split"
2017-10-18 18:28:42 +00:00
},
2023-03-23 13:49:09 +00:00
"outputs": [],
2017-10-18 18:28:42 +00:00
"source": [
2020-10-19 11:14:48 +00:00
"soil.simulation.run_from_config(config, dry_run=True)"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-03T12:03:32.183588Z",
"start_time": "2017-07-03T14:03:32.167797+02:00"
},
"cell_style": "split",
"collapsed": true
},
"source": [
"In real life, you probably want to run several simulations, varying some of the parameters so that you can compare and answer your research questions.\n",
"\n",
"For instance:\n",
" \n",
"* Does the outcome depend on the structure of our network? We will use different generation algorithms to compare them (Barabasi-Albert and Erdos-Renyi)\n",
"* How does neighbor spreading probability affect my simulation? We will try probability values in the range of [0, 0.4], in intervals of 0.1."
]
},
{
"cell_type": "code",
2020-10-19 11:14:48 +00:00
"execution_count": 12,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-01T14:10:38.099667Z",
"start_time": "2017-11-01T15:10:06.008314+01:00"
2017-10-18 18:28:42 +00:00
},
"cell_style": "split",
"scrolled": true
},
2023-03-23 13:49:09 +00:00
"outputs": [],
2017-10-18 18:28:42 +00:00
"source": [
"network_1 = {\n",
" 'generator': 'erdos_renyi_graph',\n",
" 'n': 500,\n",
" 'p': 0.1\n",
"}\n",
"network_2 = {\n",
" 'generator': 'barabasi_albert_graph',\n",
" 'n': 500,\n",
" 'm': 2\n",
"}\n",
"\n",
"\n",
"for net in [network_1, network_2]:\n",
" for i in range(5):\n",
" prob = i / 10\n",
" config['environment_params']['prob_neighbor_spread'] = prob\n",
" config['network_params'] = net\n",
" config['name'] = 'Spread_{}_prob_{}'.format(net['generator'], prob)\n",
2020-10-19 11:14:48 +00:00
" s = soil.simulation.run_from_config(config, exporters=['default', 'csv'])"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-03T11:05:18.043194Z",
"start_time": "2017-07-03T13:05:18.034699+02:00"
},
2018-05-04 08:01:49 +00:00
"cell_style": "center"
2017-10-18 18:28:42 +00:00
},
"source": [
2020-10-19 11:14:48 +00:00
"The results are conveniently stored in sqlite (history of agent and environment state) and the configuration is saved in a YAML file.\n",
2018-05-04 08:01:49 +00:00
"\n",
"You can also export the results to GEXF format (dynamic network) and CSV using .`run_from_config(config, dump=['gexf', 'csv'])` or the command line flags `--graph --csv`."
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2020-10-19 11:14:48 +00:00
"execution_count": 13,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
2018-05-04 08:01:49 +00:00
"end_time": "2017-11-01T14:05:56.404540Z",
"start_time": "2017-11-01T15:05:56.122876+01:00"
2017-10-18 18:28:42 +00:00
},
"cell_style": "split",
"scrolled": true
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[01;34msoil_output\u001b[00m\r\n",
"├── \u001b[01;34mSpread_barabasi_albert_graph_prob_0.0\u001b[00m\r\n",
"│ ├── \u001b[01;34mbackup\u001b[00m\r\n",
2023-03-23 13:49:09 +00:00
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0.dumped.yml@2023-03-23_12.57.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0.dumped.yml@2023-03-23_14.06.30\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0.dumped.yml@2023-03-23_14.19.33\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0.dumped.yml@2023-03-23_14.30.56\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0.sqlite@2023-03-23_12.57.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0.sqlite@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0.sqlite@2023-03-23_14.19.33\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0.sqlite@2023-03-23_14.30.56\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.csv@2023-03-23_12.57.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.csv@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.csv@2023-03-23_14.19.33\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.csv@2023-03-23_14.30.56\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.sqlite@2023-03-23_12.57.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.sqlite@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.sqlite@2023-03-23_14.19.33\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.sqlite@2023-03-23_14.30.56\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.stats.csv@2023-03-23_12.57.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.stats.csv@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.stats.csv@2023-03-23_14.19.33\r\n",
"│ │ └── Spread_barabasi_albert_graph_prob_0.0_trial_0.stats.csv@2023-03-23_14.30.56\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.0.dumped.yml\r\n",
2023-03-23 13:49:09 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.0.sqlite\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.csv\r\n",
"│ ├── Spread_barabasi_albert_graph_prob_0.0_trial_0.sqlite\r\n",
2023-03-23 13:49:09 +00:00
"│ └── Spread_barabasi_albert_graph_prob_0.0_trial_0.stats.csv\r\n",
2020-10-19 11:14:48 +00:00
"├── \u001b[01;34mSpread_barabasi_albert_graph_prob_0.1\u001b[00m\r\n",
"│ ├── \u001b[01;34mbackup\u001b[00m\r\n",
2023-03-23 13:49:09 +00:00
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1.dumped.yml@2023-03-23_12.57.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1.dumped.yml@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1.dumped.yml@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1.dumped.yml@2023-03-23_14.30.56\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1.sqlite@2023-03-23_12.57.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1.sqlite@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1.sqlite@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1.sqlite@2023-03-23_14.30.56\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.csv@2023-03-23_12.57.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.csv@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.csv@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.csv@2023-03-23_14.30.56\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.sqlite@2023-03-23_12.57.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.sqlite@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.sqlite@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.sqlite@2023-03-23_14.30.56\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.stats.csv@2023-03-23_12.57.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.stats.csv@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.stats.csv@2023-03-23_14.19.34\r\n",
"│ │ └── Spread_barabasi_albert_graph_prob_0.1_trial_0.stats.csv@2023-03-23_14.30.56\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.1.dumped.yml\r\n",
2023-03-23 13:49:09 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.1.sqlite\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.csv\r\n",
"│ ├── Spread_barabasi_albert_graph_prob_0.1_trial_0.sqlite\r\n",
2023-03-23 13:49:09 +00:00
"│ └── Spread_barabasi_albert_graph_prob_0.1_trial_0.stats.csv\r\n",
2020-10-19 11:14:48 +00:00
"├── \u001b[01;34mSpread_barabasi_albert_graph_prob_0.2\u001b[00m\r\n",
"│ ├── \u001b[01;34mbackup\u001b[00m\r\n",
2023-03-23 13:49:09 +00:00
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2.dumped.yml@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2.dumped.yml@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2.dumped.yml@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2.dumped.yml@2023-03-23_14.30.56\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2.sqlite@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2.sqlite@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2.sqlite@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2.sqlite@2023-03-23_14.30.57\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.csv@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.csv@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.csv@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.csv@2023-03-23_14.30.57\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.sqlite@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.sqlite@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.sqlite@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.sqlite@2023-03-23_14.30.57\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.stats.csv@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.stats.csv@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.stats.csv@2023-03-23_14.19.34\r\n",
"│ │ └── Spread_barabasi_albert_graph_prob_0.2_trial_0.stats.csv@2023-03-23_14.30.57\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.2.dumped.yml\r\n",
2023-03-23 13:49:09 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.2.sqlite\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.csv\r\n",
"│ ├── Spread_barabasi_albert_graph_prob_0.2_trial_0.sqlite\r\n",
2023-03-23 13:49:09 +00:00
"│ └── Spread_barabasi_albert_graph_prob_0.2_trial_0.stats.csv\r\n",
2020-10-19 11:14:48 +00:00
"├── \u001b[01;34mSpread_barabasi_albert_graph_prob_0.3\u001b[00m\r\n",
"│ ├── \u001b[01;34mbackup\u001b[00m\r\n",
2023-03-23 13:49:09 +00:00
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3.dumped.yml@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3.dumped.yml@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3.dumped.yml@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3.dumped.yml@2023-03-23_14.30.57\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3.sqlite@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3.sqlite@2023-03-23_14.06.32\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3.sqlite@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3.sqlite@2023-03-23_14.30.57\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.csv@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.csv@2023-03-23_14.06.32\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.csv@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.csv@2023-03-23_14.30.57\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.sqlite@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.sqlite@2023-03-23_14.06.31\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.sqlite@2023-03-23_14.19.34\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.sqlite@2023-03-23_14.30.57\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.stats.csv@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.stats.csv@2023-03-23_14.06.32\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.stats.csv@2023-03-23_14.19.34\r\n",
"│ │ └── Spread_barabasi_albert_graph_prob_0.3_trial_0.stats.csv@2023-03-23_14.30.57\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.3.dumped.yml\r\n",
2023-03-23 13:49:09 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.3.sqlite\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.csv\r\n",
"│ ├── Spread_barabasi_albert_graph_prob_0.3_trial_0.sqlite\r\n",
2023-03-23 13:49:09 +00:00
"│ └── Spread_barabasi_albert_graph_prob_0.3_trial_0.stats.csv\r\n",
2020-10-19 11:14:48 +00:00
"├── \u001b[01;34mSpread_barabasi_albert_graph_prob_0.4\u001b[00m\r\n",
"│ ├── \u001b[01;34mbackup\u001b[00m\r\n",
2023-03-23 13:49:09 +00:00
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4.dumped.yml@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4.dumped.yml@2023-03-23_14.06.32\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4.dumped.yml@2023-03-23_14.19.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4.dumped.yml@2023-03-23_14.30.57\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4.sqlite@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4.sqlite@2023-03-23_14.06.32\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4.sqlite@2023-03-23_14.19.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4.sqlite@2023-03-23_14.30.57\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.csv@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.csv@2023-03-23_14.06.32\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.csv@2023-03-23_14.19.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.csv@2023-03-23_14.30.57\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.sqlite@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.sqlite@2023-03-23_14.06.32\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.sqlite@2023-03-23_14.19.35\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.sqlite@2023-03-23_14.30.57\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.stats.csv@2023-03-23_12.57.36\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.stats.csv@2023-03-23_14.06.32\r\n",
"│ │ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.stats.csv@2023-03-23_14.19.35\r\n",
"│ │ └── Spread_barabasi_albert_graph_prob_0.4_trial_0.stats.csv@2023-03-23_14.30.57\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.4.dumped.yml\r\n",
2023-03-23 13:49:09 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.4.sqlite\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.csv\r\n",
"│ ├── Spread_barabasi_albert_graph_prob_0.4_trial_0.sqlite\r\n",
2023-03-23 13:49:09 +00:00
"│ └── Spread_barabasi_albert_graph_prob_0.4_trial_0.stats.csv\r\n",
2020-10-19 11:14:48 +00:00
"├── \u001b[01;34mSpread_erdos_renyi_graph_prob_0.0\u001b[00m\r\n",
"│ ├── \u001b[01;34mbackup\u001b[00m\r\n",
2023-03-23 13:49:09 +00:00
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0.dumped.yml@2023-03-23_12.57.26\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0.dumped.yml@2023-03-23_14.06.21\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0.dumped.yml@2023-03-23_14.19.24\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0.dumped.yml@2023-03-23_14.30.47\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0.sqlite@2023-03-23_12.57.26\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0.sqlite@2023-03-23_14.06.22\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0.sqlite@2023-03-23_14.19.25\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0.sqlite@2023-03-23_14.30.47\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.csv@2023-03-23_12.57.26\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.csv@2023-03-23_14.06.22\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.csv@2023-03-23_14.19.25\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.csv@2023-03-23_14.30.47\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.sqlite@2023-03-23_12.57.26\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.sqlite@2023-03-23_14.06.22\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.sqlite@2023-03-23_14.19.25\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.sqlite@2023-03-23_14.30.47\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.stats.csv@2023-03-23_12.57.26\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.stats.csv@2023-03-23_14.06.22\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.stats.csv@2023-03-23_14.19.25\r\n",
"│ │ └── Spread_erdos_renyi_graph_prob_0.0_trial_0.stats.csv@2023-03-23_14.30.47\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.0.dumped.yml\r\n",
2023-03-23 13:49:09 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.0.sqlite\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.csv\r\n",
"│ ├── Spread_erdos_renyi_graph_prob_0.0_trial_0.sqlite\r\n",
2023-03-23 13:49:09 +00:00
"│ └── Spread_erdos_renyi_graph_prob_0.0_trial_0.stats.csv\r\n",
2020-10-19 11:14:48 +00:00
"├── \u001b[01;34mSpread_erdos_renyi_graph_prob_0.1\u001b[00m\r\n",
"│ ├── \u001b[01;34mbackup\u001b[00m\r\n",
2023-03-23 13:49:09 +00:00
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1.dumped.yml@2023-03-23_12.57.28\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1.dumped.yml@2023-03-23_14.06.24\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1.dumped.yml@2023-03-23_14.19.26\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1.dumped.yml@2023-03-23_14.30.49\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1.sqlite@2023-03-23_12.57.28\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1.sqlite@2023-03-23_14.06.24\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1.sqlite@2023-03-23_14.19.27\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1.sqlite@2023-03-23_14.30.49\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.csv@2023-03-23_12.57.28\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.csv@2023-03-23_14.06.24\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.csv@2023-03-23_14.19.27\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.csv@2023-03-23_14.30.49\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.sqlite@2023-03-23_12.57.28\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.sqlite@2023-03-23_14.06.24\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.sqlite@2023-03-23_14.19.27\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.sqlite@2023-03-23_14.30.49\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.stats.csv@2023-03-23_12.57.28\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.stats.csv@2023-03-23_14.06.24\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.stats.csv@2023-03-23_14.19.27\r\n",
"│ │ └── Spread_erdos_renyi_graph_prob_0.1_trial_0.stats.csv@2023-03-23_14.30.49\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.1.dumped.yml\r\n",
2023-03-23 13:49:09 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.1.sqlite\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.csv\r\n",
"│ ├── Spread_erdos_renyi_graph_prob_0.1_trial_0.sqlite\r\n",
2023-03-23 13:49:09 +00:00
"│ └── Spread_erdos_renyi_graph_prob_0.1_trial_0.stats.csv\r\n",
2020-10-19 11:14:48 +00:00
"├── \u001b[01;34mSpread_erdos_renyi_graph_prob_0.2\u001b[00m\r\n",
"│ ├── \u001b[01;34mbackup\u001b[00m\r\n",
2023-03-23 13:49:09 +00:00
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2.dumped.yml@2023-03-23_12.57.30\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2.dumped.yml@2023-03-23_14.06.26\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2.dumped.yml@2023-03-23_14.19.28\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2.dumped.yml@2023-03-23_14.30.51\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2.sqlite@2023-03-23_12.57.31\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2.sqlite@2023-03-23_14.06.26\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2.sqlite@2023-03-23_14.19.29\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2.sqlite@2023-03-23_14.30.51\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.csv@2023-03-23_12.57.31\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.csv@2023-03-23_14.06.26\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.csv@2023-03-23_14.19.29\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.csv@2023-03-23_14.30.51\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.sqlite@2023-03-23_12.57.31\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.sqlite@2023-03-23_14.06.26\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.sqlite@2023-03-23_14.19.29\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.sqlite@2023-03-23_14.30.51\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.stats.csv@2023-03-23_12.57.31\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.stats.csv@2023-03-23_14.06.26\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.stats.csv@2023-03-23_14.19.29\r\n",
"│ │ └── Spread_erdos_renyi_graph_prob_0.2_trial_0.stats.csv@2023-03-23_14.30.51\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.2.dumped.yml\r\n",
2023-03-23 13:49:09 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.2.sqlite\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.csv\r\n",
"│ ├── Spread_erdos_renyi_graph_prob_0.2_trial_0.sqlite\r\n",
2023-03-23 13:49:09 +00:00
"│ └── Spread_erdos_renyi_graph_prob_0.2_trial_0.stats.csv\r\n",
2020-10-19 11:14:48 +00:00
"├── \u001b[01;34mSpread_erdos_renyi_graph_prob_0.3\u001b[00m\r\n",
"│ ├── \u001b[01;34mbackup\u001b[00m\r\n",
2023-03-23 13:49:09 +00:00
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3.dumped.yml@2023-03-23_12.57.32\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3.dumped.yml@2023-03-23_14.06.28\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3.dumped.yml@2023-03-23_14.19.31\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3.dumped.yml@2023-03-23_14.30.53\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3.sqlite@2023-03-23_12.57.33\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3.sqlite@2023-03-23_14.06.28\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3.sqlite@2023-03-23_14.19.31\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3.sqlite@2023-03-23_14.30.53\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.csv@2023-03-23_12.57.33\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.csv@2023-03-23_14.06.28\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.csv@2023-03-23_14.19.31\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.csv@2023-03-23_14.30.53\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.sqlite@2023-03-23_12.57.33\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.sqlite@2023-03-23_14.06.28\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.sqlite@2023-03-23_14.19.31\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.sqlite@2023-03-23_14.30.53\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.stats.csv@2023-03-23_12.57.33\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.stats.csv@2023-03-23_14.06.28\r\n",
"│ │ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.stats.csv@2023-03-23_14.19.31\r\n",
"│ │ └── Spread_erdos_renyi_graph_prob_0.3_trial_0.stats.csv@2023-03-23_14.30.53\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.3.dumped.yml\r\n",
2023-03-23 13:49:09 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.3.sqlite\r\n",
2020-10-19 11:14:48 +00:00
"│ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.csv\r\n",
"│ ├── Spread_erdos_renyi_graph_prob_0.3_trial_0.sqlite\r\n",
2023-03-23 13:49:09 +00:00
"│ └── Spread_erdos_renyi_graph_prob_0.3_trial_0.stats.csv\r\n",
2020-10-19 11:14:48 +00:00
"└── \u001b[01;34mSpread_erdos_renyi_graph_prob_0.4\u001b[00m\r\n",
" ├── \u001b[01;34mbackup\u001b[00m\r\n",
2023-03-23 13:49:09 +00:00
" │ ├── Spread_erdos_renyi_graph_prob_0.4.dumped.yml@2023-03-23_12.57.34\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4.dumped.yml@2023-03-23_14.06.30\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4.dumped.yml@2023-03-23_14.19.33\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4.dumped.yml@2023-03-23_14.30.55\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4.sqlite@2023-03-23_12.57.35\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4.sqlite@2023-03-23_14.06.30\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4.sqlite@2023-03-23_14.19.33\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4.sqlite@2023-03-23_14.30.56\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.csv@2023-03-23_12.57.35\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.csv@2023-03-23_14.06.30\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.csv@2023-03-23_14.19.33\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.csv@2023-03-23_14.30.56\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.sqlite@2023-03-23_12.57.35\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.sqlite@2023-03-23_14.06.30\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.sqlite@2023-03-23_14.19.33\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.sqlite@2023-03-23_14.30.56\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.stats.csv@2023-03-23_12.57.35\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.stats.csv@2023-03-23_14.06.30\r\n",
" │ ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.stats.csv@2023-03-23_14.19.33\r\n",
" │ └── Spread_erdos_renyi_graph_prob_0.4_trial_0.stats.csv@2023-03-23_14.30.56\r\n",
2020-10-19 11:14:48 +00:00
" ├── Spread_erdos_renyi_graph_prob_0.4.dumped.yml\r\n",
2023-03-23 13:49:09 +00:00
" ├── Spread_erdos_renyi_graph_prob_0.4.sqlite\r\n",
2020-10-19 11:14:48 +00:00
" ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.csv\r\n",
" ├── Spread_erdos_renyi_graph_prob_0.4_trial_0.sqlite\r\n",
2023-03-23 13:49:09 +00:00
" └── Spread_erdos_renyi_graph_prob_0.4_trial_0.stats.csv\r\n",
2020-10-19 11:14:48 +00:00
"\r\n",
2023-03-23 13:49:09 +00:00
"20 directories, 250 files\r\n"
2020-10-19 11:14:48 +00:00
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
2023-03-23 13:49:09 +00:00
"1.3M\tsoil_output/Spread_barabasi_albert_graph_prob_0.0/backup\r\n",
"1.7M\tsoil_output/Spread_barabasi_albert_graph_prob_0.0\r\n",
"1.3M\tsoil_output/Spread_barabasi_albert_graph_prob_0.1/backup\r\n",
"1.7M\tsoil_output/Spread_barabasi_albert_graph_prob_0.1\r\n",
"1.3M\tsoil_output/Spread_barabasi_albert_graph_prob_0.2/backup\r\n",
"1.6M\tsoil_output/Spread_barabasi_albert_graph_prob_0.2\r\n",
"1.3M\tsoil_output/Spread_barabasi_albert_graph_prob_0.3/backup\r\n",
"1.7M\tsoil_output/Spread_barabasi_albert_graph_prob_0.3\r\n",
"1.3M\tsoil_output/Spread_barabasi_albert_graph_prob_0.4/backup\r\n",
"1.7M\tsoil_output/Spread_barabasi_albert_graph_prob_0.4\r\n",
"2.7M\tsoil_output/Spread_erdos_renyi_graph_prob_0.0/backup\r\n",
"3.4M\tsoil_output/Spread_erdos_renyi_graph_prob_0.0\r\n",
"2.7M\tsoil_output/Spread_erdos_renyi_graph_prob_0.1/backup\r\n",
"3.4M\tsoil_output/Spread_erdos_renyi_graph_prob_0.1\r\n",
"2.7M\tsoil_output/Spread_erdos_renyi_graph_prob_0.2/backup\r\n",
"3.4M\tsoil_output/Spread_erdos_renyi_graph_prob_0.2\r\n",
"2.7M\tsoil_output/Spread_erdos_renyi_graph_prob_0.3/backup\r\n",
"3.4M\tsoil_output/Spread_erdos_renyi_graph_prob_0.3\r\n",
"2.7M\tsoil_output/Spread_erdos_renyi_graph_prob_0.4/backup\r\n",
"3.4M\tsoil_output/Spread_erdos_renyi_graph_prob_0.4\r\n"
2020-10-19 11:14:48 +00:00
]
}
],
2017-10-18 18:28:42 +00:00
"source": [
"!tree soil_output\n",
"!du -xh soil_output/*"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-02T10:40:14.384177Z",
"start_time": "2017-07-02T12:40:14.381885+02:00"
}
},
"source": [
"## Analysing the results"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Loading data"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Once the simulations are over, we can use soil to analyse the results.\n",
"\n",
"Soil allows you to load results for specific trials, or for a set of trials if you specify a pattern. The specific methods are:\n",
"\n",
"* `analysis.read_data(<directory pattern>)` to load all the results from a directory. e.g. `read_data('my_simulation/')`. For each trial it finds in each folder matching the pattern, it will return the dumped configuration for the simulation, the results of the trial, and the configuration itself. By default, it will try to load data from the sqlite database. \n",
"* `analysis.read_csv(<csv_file>)` to load all the results from a CSV file. e.g. `read_csv('my_simulation/my_simulation_trial0.environment.csv')`\n",
"* `analysis.read_sql(<sqlite_file>)` to load all the results from a sqlite database . e.g. `read_sql('my_simulation/my_simulation_trial0.db.sqlite')`"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-07-03T14:44:30.978223Z",
"start_time": "2017-07-03T16:44:30.971952+02:00"
}
},
"source": [
"Let's see it in action by loading the stored results into a pandas dataframe:"
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 14,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T15:57:43.662893Z",
"start_time": "2017-10-19T17:57:43.632252+02:00"
},
2020-10-19 11:14:48 +00:00
"cell_style": "center"
2017-10-18 18:28:42 +00:00
},
"outputs": [],
"source": [
2020-10-19 11:14:48 +00:00
"from soil import analysis\n",
"import pandas as pd"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 15,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T15:57:44.101253Z",
"start_time": "2017-10-19T17:57:44.039710+02:00"
},
"scrolled": true
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead tr th {\n",
" text-align: left;\n",
" }\n",
"\n",
" .dataframe thead tr:last-of-type th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr>\n",
" <th>key</th>\n",
" <th>SEED</th>\n",
2023-03-23 13:49:09 +00:00
" <th colspan=\"9\" halign=\"left\">alive</th>\n",
2020-10-19 11:14:48 +00:00
" <th>...</th>\n",
2023-03-23 13:49:09 +00:00
" <th colspan=\"10\" halign=\"left\">state_id</th>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
" <th>agent_id</th>\n",
" <th>env</th>\n",
" <th>0</th>\n",
" <th>1</th>\n",
" <th>10</th>\n",
" <th>100</th>\n",
" <th>101</th>\n",
2023-03-23 13:49:09 +00:00
" <th>102</th>\n",
" <th>103</th>\n",
" <th>104</th>\n",
" <th>105</th>\n",
2020-10-19 11:14:48 +00:00
" <th>...</th>\n",
2023-03-23 13:49:09 +00:00
" <th>90</th>\n",
" <th>91</th>\n",
" <th>92</th>\n",
" <th>93</th>\n",
2020-10-19 11:14:48 +00:00
" <th>94</th>\n",
" <th>95</th>\n",
" <th>96</th>\n",
" <th>97</th>\n",
" <th>98</th>\n",
" <th>99</th>\n",
" </tr>\n",
" <tr>\n",
" <th>t_step</th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>0.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>1.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>2.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>3.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>4.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>5.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>infected</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>6.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>infected</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>7.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>infected</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>8.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>infected</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>9.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>infected</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>10.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>11.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>12.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>13.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>14.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>15.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>16.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>17.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>18.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>19.0</th>\n",
2020-10-19 11:14:48 +00:00
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
2023-03-23 13:49:09 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" </tbody>\n",
"</table>\n",
2023-03-23 13:49:09 +00:00
"<p>20 rows × 2507 columns</p>\n",
2020-10-19 11:14:48 +00:00
"</div>"
],
"text/plain": [
2023-03-23 13:49:09 +00:00
"key SEED alive \\\n",
"agent_id env 0 1 10 \n",
"t_step \n",
"0.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"1.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"2.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"3.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"4.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"5.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"6.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"7.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"8.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"9.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"10.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"11.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"12.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"13.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"14.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"15.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"16.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"17.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"18.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"19.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"key ... state_id \\\n",
"agent_id 100 101 102 103 104 105 ... 90 91 \n",
"t_step ... \n",
"0.0 True True True True True True ... neutral neutral \n",
"1.0 True True True True True True ... neutral neutral \n",
"2.0 True True True True True True ... neutral neutral \n",
"3.0 True True True True True True ... neutral neutral \n",
"4.0 True True True True True True ... neutral neutral \n",
"5.0 True True True True True True ... neutral neutral \n",
"6.0 True True True True True True ... neutral neutral \n",
"7.0 True True True True True True ... neutral neutral \n",
"8.0 True True True True True True ... neutral neutral \n",
"9.0 True True True True True True ... neutral neutral \n",
"10.0 True True True True True True ... neutral neutral \n",
"11.0 True True True True True True ... infected infected \n",
"12.0 True True True True True True ... infected infected \n",
"13.0 True True True True True True ... infected infected \n",
"14.0 True True True True True True ... infected infected \n",
"15.0 True True True True True True ... infected infected \n",
"16.0 True True True True True True ... infected infected \n",
"17.0 True True True True True True ... infected infected \n",
"18.0 True True True True True True ... infected infected \n",
"19.0 True True True True True True ... infected infected \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"key \\\n",
"agent_id 92 93 94 95 96 97 \n",
"t_step \n",
"0.0 neutral neutral neutral neutral neutral neutral \n",
"1.0 neutral neutral neutral neutral neutral neutral \n",
"2.0 neutral neutral neutral neutral neutral neutral \n",
"3.0 neutral neutral neutral neutral neutral neutral \n",
"4.0 neutral neutral neutral neutral neutral neutral \n",
"5.0 neutral neutral neutral neutral neutral infected \n",
"6.0 neutral neutral neutral neutral neutral infected \n",
"7.0 neutral neutral neutral neutral neutral infected \n",
"8.0 neutral neutral neutral neutral neutral infected \n",
"9.0 neutral neutral neutral neutral neutral infected \n",
"10.0 neutral neutral neutral neutral neutral infected \n",
"11.0 infected infected infected neutral infected infected \n",
"12.0 infected infected infected infected infected infected \n",
"13.0 infected infected infected infected infected infected \n",
"14.0 infected infected infected infected infected infected \n",
"15.0 infected infected infected infected infected infected \n",
"16.0 infected infected infected infected infected infected \n",
"17.0 infected infected infected infected infected infected \n",
"18.0 infected infected infected infected infected infected \n",
"19.0 infected infected infected infected infected infected \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"key \n",
"agent_id 98 99 \n",
"t_step \n",
"0.0 neutral neutral \n",
"1.0 neutral neutral \n",
"2.0 neutral neutral \n",
"3.0 neutral neutral \n",
"4.0 neutral neutral \n",
"5.0 neutral neutral \n",
"6.0 neutral neutral \n",
"7.0 neutral neutral \n",
"8.0 neutral neutral \n",
"9.0 neutral neutral \n",
"10.0 neutral neutral \n",
"11.0 infected infected \n",
"12.0 infected infected \n",
"13.0 infected infected \n",
"14.0 infected infected \n",
"15.0 infected infected \n",
"16.0 infected infected \n",
"17.0 infected infected \n",
"18.0 infected infected \n",
"19.0 infected infected \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"[20 rows x 2507 columns]"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"execution_count": 15,
2020-10-19 11:14:48 +00:00
"metadata": {},
"output_type": "execute_result"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2020-10-19 11:14:48 +00:00
"df = analysis.read_csv('soil_output/Spread_barabasi_albert_graph_prob_0.0/Spread_barabasi_albert_graph_prob_0.0_trial_0.csv')\n",
2017-10-18 18:28:42 +00:00
"df"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
2020-10-19 11:14:48 +00:00
"Soil can also process the data for us and split the results into environment attributes and agent attributes:"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 16,
2020-10-19 11:14:48 +00:00
"metadata": {},
2018-05-04 08:01:49 +00:00
"outputs": [],
2017-10-18 18:28:42 +00:00
"source": [
2020-10-19 11:14:48 +00:00
"env, agents = analysis.split_processed(df)"
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 17,
2020-10-19 11:14:48 +00:00
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead tr th {\n",
" text-align: left;\n",
" }\n",
"\n",
" .dataframe thead tr:last-of-type th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr>\n",
" <th>key</th>\n",
2023-03-23 13:49:09 +00:00
" <th colspan=\"10\" halign=\"left\">alive</th>\n",
2020-10-19 11:14:48 +00:00
" <th>...</th>\n",
2023-03-23 13:49:09 +00:00
" <th colspan=\"10\" halign=\"left\">state_id</th>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
" <th>agent_id</th>\n",
" <th>0</th>\n",
" <th>1</th>\n",
" <th>10</th>\n",
" <th>100</th>\n",
" <th>101</th>\n",
" <th>102</th>\n",
" <th>103</th>\n",
" <th>104</th>\n",
" <th>105</th>\n",
2023-03-23 13:49:09 +00:00
" <th>106</th>\n",
2020-10-19 11:14:48 +00:00
" <th>...</th>\n",
" <th>90</th>\n",
" <th>91</th>\n",
" <th>92</th>\n",
" <th>93</th>\n",
" <th>94</th>\n",
" <th>95</th>\n",
" <th>96</th>\n",
" <th>97</th>\n",
" <th>98</th>\n",
" <th>99</th>\n",
" </tr>\n",
" <tr>\n",
" <th>t_step</th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>0.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>1.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>2.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>3.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>4.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>5.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>6.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>7.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>8.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>9.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>10.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>11.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>12.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>13.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>14.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>15.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>16.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>17.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>18.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>19.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
2023-03-23 13:49:09 +00:00
"<p>20 rows × 2504 columns</p>\n",
2020-10-19 11:14:48 +00:00
"</div>"
],
"text/plain": [
2023-03-23 13:49:09 +00:00
"key alive ... \\\n",
"agent_id 0 1 10 100 101 102 103 104 105 106 ... \n",
"t_step ... \n",
"0.0 True True True True True True True True True True ... \n",
"1.0 True True True True True True True True True True ... \n",
"2.0 True True True True True True True True True True ... \n",
"3.0 True True True True True True True True True True ... \n",
"4.0 True True True True True True True True True True ... \n",
"5.0 True True True True True True True True True True ... \n",
"6.0 True True True True True True True True True True ... \n",
"7.0 True True True True True True True True True True ... \n",
"8.0 True True True True True True True True True True ... \n",
"9.0 True True True True True True True True True True ... \n",
"10.0 True True True True True True True True True True ... \n",
"11.0 True True True True True True True True True True ... \n",
"12.0 True True True True True True True True True True ... \n",
"13.0 True True True True True True True True True True ... \n",
"14.0 True True True True True True True True True True ... \n",
"15.0 True True True True True True True True True True ... \n",
"16.0 True True True True True True True True True True ... \n",
"17.0 True True True True True True True True True True ... \n",
"18.0 True True True True True True True True True True ... \n",
"19.0 True True True True True True True True True True ... \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"key state_id \\\n",
"agent_id 90 91 92 93 94 95 \n",
"t_step \n",
"0.0 neutral neutral neutral neutral neutral neutral \n",
"1.0 neutral neutral neutral neutral neutral neutral \n",
"2.0 neutral neutral neutral neutral neutral neutral \n",
"3.0 neutral neutral neutral neutral neutral neutral \n",
"4.0 neutral neutral neutral neutral neutral neutral \n",
"5.0 neutral neutral neutral neutral neutral neutral \n",
"6.0 neutral neutral neutral neutral neutral neutral \n",
"7.0 neutral neutral neutral neutral neutral neutral \n",
"8.0 neutral neutral neutral neutral neutral neutral \n",
"9.0 neutral neutral neutral neutral neutral neutral \n",
"10.0 neutral neutral neutral neutral neutral neutral \n",
"11.0 infected infected infected infected infected neutral \n",
"12.0 infected infected infected infected infected infected \n",
"13.0 infected infected infected infected infected infected \n",
"14.0 infected infected infected infected infected infected \n",
"15.0 infected infected infected infected infected infected \n",
"16.0 infected infected infected infected infected infected \n",
"17.0 infected infected infected infected infected infected \n",
"18.0 infected infected infected infected infected infected \n",
"19.0 infected infected infected infected infected infected \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"key \n",
"agent_id 96 97 98 99 \n",
"t_step \n",
"0.0 neutral neutral neutral neutral \n",
"1.0 neutral neutral neutral neutral \n",
"2.0 neutral neutral neutral neutral \n",
"3.0 neutral neutral neutral neutral \n",
"4.0 neutral neutral neutral neutral \n",
"5.0 neutral infected neutral neutral \n",
"6.0 neutral infected neutral neutral \n",
"7.0 neutral infected neutral neutral \n",
"8.0 neutral infected neutral neutral \n",
"9.0 neutral infected neutral neutral \n",
"10.0 neutral infected neutral neutral \n",
"11.0 infected infected infected infected \n",
"12.0 infected infected infected infected \n",
"13.0 infected infected infected infected \n",
"14.0 infected infected infected infected \n",
"15.0 infected infected infected infected \n",
"16.0 infected infected infected infected \n",
"17.0 infected infected infected infected \n",
"18.0 infected infected infected infected \n",
"19.0 infected infected infected infected \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"[20 rows x 2504 columns]"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"execution_count": 17,
2020-10-19 11:14:48 +00:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2017-10-18 18:28:42 +00:00
"agents"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-18T14:01:00.669671Z",
"start_time": "2017-10-18T16:01:00.635624+02:00"
}
},
"source": [
2020-10-19 11:14:48 +00:00
"The index of the results are the simulation step. Hence, we can access the state of the simulation at a given step (e.g., 13): "
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 18,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T15:57:47.132212Z",
"start_time": "2017-10-19T17:57:47.084737+02:00"
},
"scrolled": true
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
"text/plain": [
"agent_id\n",
"0 infected\n",
"1 infected\n",
"10 infected\n",
"100 infected\n",
"101 infected\n",
" ... \n",
2023-03-23 13:49:09 +00:00
"95 infected\n",
2020-10-19 11:14:48 +00:00
"96 infected\n",
"97 infected\n",
"98 infected\n",
"99 infected\n",
2023-03-23 13:49:09 +00:00
"Name: 13.0, Length: 500, dtype: object"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"execution_count": 18,
2020-10-19 11:14:48 +00:00
"metadata": {},
"output_type": "execute_result"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2023-03-23 13:49:09 +00:00
"agents.loc[13, 'state_id']"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
2020-10-19 11:14:48 +00:00
"Or, we can perform more complex tasks such as showing the agents that have changed their state between two simulation steps (2 and 1):"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 19,
2020-10-19 11:14:48 +00:00
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
2023-03-23 13:49:09 +00:00
"2"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"execution_count": 19,
2020-10-19 11:14:48 +00:00
"metadata": {},
"output_type": "execute_result"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2023-03-23 13:49:09 +00:00
"(agents.loc[2]['state_id'] != agents.loc[1]['state_id']).sum()"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"To focus on specific agents, we can swap the levels of the index:"
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 20,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T15:57:49.046261Z",
"start_time": "2017-10-19T17:57:49.019721+02:00"
},
"scrolled": true
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead tr th {\n",
" text-align: left;\n",
" }\n",
"\n",
" .dataframe thead tr:last-of-type th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr>\n",
" <th>agent_id</th>\n",
" <th>0</th>\n",
" <th>1</th>\n",
" <th>10</th>\n",
" <th>100</th>\n",
" <th>101</th>\n",
" <th>102</th>\n",
" <th>103</th>\n",
" <th>104</th>\n",
" <th>105</th>\n",
2023-03-23 13:49:09 +00:00
" <th>106</th>\n",
2020-10-19 11:14:48 +00:00
" <th>...</th>\n",
" <th>90</th>\n",
" <th>91</th>\n",
" <th>92</th>\n",
" <th>93</th>\n",
" <th>94</th>\n",
" <th>95</th>\n",
" <th>96</th>\n",
" <th>97</th>\n",
" <th>98</th>\n",
" <th>99</th>\n",
" </tr>\n",
" <tr>\n",
" <th>key</th>\n",
2023-03-23 13:49:09 +00:00
" <th>alive</th>\n",
" <th>alive</th>\n",
" <th>alive</th>\n",
" <th>alive</th>\n",
" <th>alive</th>\n",
" <th>alive</th>\n",
" <th>alive</th>\n",
" <th>alive</th>\n",
" <th>alive</th>\n",
" <th>alive</th>\n",
2020-10-19 11:14:48 +00:00
" <th>...</th>\n",
2023-03-23 13:49:09 +00:00
" <th>state_id</th>\n",
" <th>state_id</th>\n",
" <th>state_id</th>\n",
" <th>state_id</th>\n",
" <th>state_id</th>\n",
" <th>state_id</th>\n",
" <th>state_id</th>\n",
" <th>state_id</th>\n",
" <th>state_id</th>\n",
" <th>state_id</th>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
" <th>t_step</th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>0.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>1.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>2.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>3.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>4.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>5.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>6.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>7.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>8.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>9.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>10.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>11.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>12.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>13.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>14.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>15.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>16.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>17.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>18.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>19.0</th>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
2023-03-23 13:49:09 +00:00
"<p>20 rows × 2504 columns</p>\n",
2020-10-19 11:14:48 +00:00
"</div>"
],
"text/plain": [
2023-03-23 13:49:09 +00:00
"agent_id 0 1 10 100 101 102 103 104 105 106 ... \\\n",
"key alive alive alive alive alive alive alive alive alive alive ... \n",
"t_step ... \n",
"0.0 True True True True True True True True True True ... \n",
"1.0 True True True True True True True True True True ... \n",
"2.0 True True True True True True True True True True ... \n",
"3.0 True True True True True True True True True True ... \n",
"4.0 True True True True True True True True True True ... \n",
"5.0 True True True True True True True True True True ... \n",
"6.0 True True True True True True True True True True ... \n",
"7.0 True True True True True True True True True True ... \n",
"8.0 True True True True True True True True True True ... \n",
"9.0 True True True True True True True True True True ... \n",
"10.0 True True True True True True True True True True ... \n",
"11.0 True True True True True True True True True True ... \n",
"12.0 True True True True True True True True True True ... \n",
"13.0 True True True True True True True True True True ... \n",
"14.0 True True True True True True True True True True ... \n",
"15.0 True True True True True True True True True True ... \n",
"16.0 True True True True True True True True True True ... \n",
"17.0 True True True True True True True True True True ... \n",
"18.0 True True True True True True True True True True ... \n",
"19.0 True True True True True True True True True True ... \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"agent_id 90 91 92 93 94 95 \\\n",
"key state_id state_id state_id state_id state_id state_id \n",
"t_step \n",
"0.0 neutral neutral neutral neutral neutral neutral \n",
"1.0 neutral neutral neutral neutral neutral neutral \n",
"2.0 neutral neutral neutral neutral neutral neutral \n",
"3.0 neutral neutral neutral neutral neutral neutral \n",
"4.0 neutral neutral neutral neutral neutral neutral \n",
"5.0 neutral neutral neutral neutral neutral neutral \n",
"6.0 neutral neutral neutral neutral neutral neutral \n",
"7.0 neutral neutral neutral neutral neutral neutral \n",
"8.0 neutral neutral neutral neutral neutral neutral \n",
"9.0 neutral neutral neutral neutral neutral neutral \n",
"10.0 neutral neutral neutral neutral neutral neutral \n",
"11.0 infected infected infected infected infected neutral \n",
"12.0 infected infected infected infected infected infected \n",
"13.0 infected infected infected infected infected infected \n",
"14.0 infected infected infected infected infected infected \n",
"15.0 infected infected infected infected infected infected \n",
"16.0 infected infected infected infected infected infected \n",
"17.0 infected infected infected infected infected infected \n",
"18.0 infected infected infected infected infected infected \n",
"19.0 infected infected infected infected infected infected \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"agent_id 96 97 98 99 \n",
"key state_id state_id state_id state_id \n",
"t_step \n",
"0.0 neutral neutral neutral neutral \n",
"1.0 neutral neutral neutral neutral \n",
"2.0 neutral neutral neutral neutral \n",
"3.0 neutral neutral neutral neutral \n",
"4.0 neutral neutral neutral neutral \n",
"5.0 neutral infected neutral neutral \n",
"6.0 neutral infected neutral neutral \n",
"7.0 neutral infected neutral neutral \n",
"8.0 neutral infected neutral neutral \n",
"9.0 neutral infected neutral neutral \n",
"10.0 neutral infected neutral neutral \n",
"11.0 infected infected infected infected \n",
"12.0 infected infected infected infected \n",
"13.0 infected infected infected infected \n",
"14.0 infected infected infected infected \n",
"15.0 infected infected infected infected \n",
"16.0 infected infected infected infected \n",
"17.0 infected infected infected infected \n",
"18.0 infected infected infected infected \n",
"19.0 infected infected infected infected \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"[20 rows x 2504 columns]"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"execution_count": 20,
2020-10-19 11:14:48 +00:00
"metadata": {},
"output_type": "execute_result"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2020-10-19 11:14:48 +00:00
"agents.swaplevel(axis=1)"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T10:35:40.140920Z",
"start_time": "2017-10-19T12:35:40.106265+02:00"
}
},
"source": [
"### Plotting data"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you don't want to work with pandas, you can also use some pre-defined functions from soil to conveniently plot the results:"
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 21,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T15:57:52.271094Z",
"start_time": "2017-10-19T17:57:51.102434+02:00"
2020-10-19 11:14:48 +00:00
}
2018-05-04 08:01:49 +00:00
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAHHCAYAAACV96NPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGo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LykJ6ejj59+kAQBPz2228AgBs3buDEiROIjo6GwWBweD8dOnSo1rlQq9X4+9//Lj7XaDT4+9//jrS0NBw7dgwAoFKpxGvsVqsVt27dQlFREXr06FHujIHRo0eX+R+2s/sYOXIkGjVqJD7v2bMnevXq5fA/u5LnzGg0Ij09Hb179wYAh336+fnh8OHDSE5OrvqJqYKq/JtV5k4/W4Ig4Ouvv8bw4cMhCILDz1BUVBSysrLKnLvo6GiHdtWExWLBzp07MXLkSISFhYnLW7VqhaFDh5b7mn79+pX7s1iyTRkZGcjKykLfvn3L/bevye9c3759cfPmTWRnZ1ftTZZQctq3vcfKbDZj586dDtuV/vm2/16OHz8e/v7+4vIuXbpg0KBB5fZGxMTEODy3D8x3pueioKAAWq22zHL7mJ/KLjXa11X39VQ3GFAIAHDvvffim2++QUZGBo4cOYKZM2ciJycHjz/+uHhNGUC5I+HbtGmD/Pz8MtPxmjdv7vD8woULEAQBrVu3RlBQkMPX2bNnHQbkJiYmin/g9Ho9goKC0K9fPwBAVlYWAODq1asVtqlt27b
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2023-03-23 13:49:09 +00:00
"analysis.plot_all('soil_output/Spread_barabasi_albert_graph_prob_0.0/', analysis.get_count, 'state_id');"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 22,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T15:57:57.982007Z",
"start_time": "2017-10-19T17:57:52.273160+02:00"
},
"scrolled": false
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAA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DX6+nbty+3bt0yPry9valevbrJ6Q07Ozvj85SUFG7dukWLFi1QFIXDhw8DcOPGDY4cOUJoaCguLi4m+1O7du3HOhaWlpb85z//Mb62trbmP//5DzExMYSHhwOg1WqN59j1ej2xsbFkZ2fTpEmTPK8Y6N27d67/YRd0HT179qRixYrG182aNSM4OJi1a9cap917zNLT07l16xbNmzcHMFmnq6sr+/bt4/r16/k/MPmQn3+zh3nUZ0tRFP744w+6d++Ooigmn6FOnTqRkJCQ69iFhoaa1FUYOp2OzZs307NnT5MOk9WqVaNLly55LtO6des8P4v31hQXF0dCQgItW7bM89++ML9zLVu25Pbt2yQmJuZvJ+9x72XfOS1WmZmZbN682WS++z/fOb+XgwYNws3NzTi9fv36dOjQweQzm2PEiBEmr3M65uc174OkpaVhY2OTa3pOn5/8nmpct24da9euZfr06fj5+ZGSkpLvGkTRkoAiAGjatCkrVqwgLi6O/fv3M27cOJKSkujTp4/xnDKQZ0/4GjVqkJqays2bN02mV65c2eT1uXPnUBSF6tWr4+HhYfI4deqUSYfciIgI4x84R0dHPDw8aN26NQAJCQkAXLly5YE11axZ87GOg4+PT67OvDVq1AAwudxw/vz51K9fH1tbW9zd3fHw8GDNmjXG2u51/3F4nHU86LjfW1NsbCxvv/02Xl5
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
2023-03-23 13:49:09 +00:00
}
],
"source": [
"analysis.plot_all('soil_output/Spread_barabasi_albert_graph_prob_0.3/', analysis.get_count, 'state_id');"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"You can use wildcards in the results path:"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {
"scrolled": false
},
"outputs": [
2020-10-19 11:14:48 +00:00
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGg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Op3JvK+//rrJ6xUrVqDX6+nbty+3bt0yPry9valevbrJ6Q07Ozvj85SUFG7dukWLFi1QFIXDhw8DcOPGDY4cOUJoaCguLi4m+1O7du3HOhaWlpb85z//Mb62trbmP//5DzExMYSHhwOg1WqN59j1ej2xsbFkZ2fTpEmTPK8Y6N27d67/YRd0HT179qRixYrG182aNSM4OJi1a9cap917zNLT07l16xbNmzcHMFmnq6sr+/bt4/r16/k/MPmQn3+zh3nUZ0tRFP744w+6d++Ooigmn6FOnTqRkJCQ69iFhoaa1FUYOp2OzZs307NnT5MOk9WqVaNLly55LtO6des8P4v31hQXF0dCQgItW7bM89++ML9zLVu25Pbt2yQmJuZvJ+9x72XfOS1WmZmZbN682WS++z/fOb+XgwYNws3NzTi9fv36dOjQweQzm2PEiBEmr3M65uc174OkpaVhY2OTa3pOn5/8nmpct24da9euZfr06fj5+ZGSkpLvGkTRkoAiAGjatCkrVqwgLi6O/fv3M27cOJKSkujTp4/xnDKQZ0/4GjVqkJqays2bN02mV65c2eT1uXPnUBSF6tWr4+HhYfI4deqUSYfciIgI4x84R0dHPDw8aN26NQAJCQkAXLly5YE11axZ87GOg4+PT67OvDVq1AAwudxw/vz51K9fH1tbW9zd3fHw8GDNmjXG2u51/3F4nHU86LjfW1NsbCxvv/02Xl5
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAHHCAYAAACV96NPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAAB/uElEQVR4nO3dd3gU5drH8e9m0zs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2NnZ4e3tzSOPPGLSFF6SPijmfM+K8qCfLYCrV68yatQofHx8sLOzo2nTpvznP/8x2Wbr1q1oNBpWrFjBu+++S61atXB0dGT27Nk89dRTADz88MNoNBo0Gg1bt24tdo1bt26lbdu22NvbU79+fb7++uv79qv5/vvvadq0KXZ2dqxbtw6ATz/9lE6dOuHp6YmDgwNt2rThp59+KnCs4v7O5bl16xYjRozA3d0dNzc3Ro4cSUZGRrFfGxi+987Ozly4cIE+ffrg5OSEv78/77//PoqiGLe73883wF9//UXXrl1xcnLC3d2dgQMHcurUqUKPefPmTYYOHYqrqyuenp68/vrrZGZmmlX3Tz/9hI+PD4MHDzYu8/LyYujQofz2229kZWUVaz/vvPMOjRs35vnnnzfr+KLsSQuKIDAwkD179nDixIkHdhLdtm0bP/zwA6+99hp2dnbMnz+fvn37sn///gLPfeqpp2jYsCEzZsww/mGbPn067733HkOHDuXFF1/kxo0bzJkzh4ceeogjR44YQ9LKlSvJyMhg7NixeHp6sn//fubMmcOVK1dYuXKl8RgbNmxgyJAhhISEMHPmTBISEhg5ciS1a9cu0XuRlJTEo48+ytChQ3n22Wf58ccfGTt2LLa2towaNQqAlJQUvv32W5599lnGjBlDamoqixYtok+fPuzfv59WrVqZ7HPx4sVkZmby0ksvYWdnh4eHh9n7+O9//0tqaioRERFkZmby5Zdf0qNHD44fP46Pjw8AGzdu5MKFC4wcORJfX19OnjzJwoULOXnyJHv37jV+gL788sv89NNPjBs3jpCQEBISEti5cyenTp2idevWJXrfoPjfs6IU52crLi6Ojh07Gj+4vby8WLt2LaNHjyYlJYXx48eb7PODDz7A1taWN998k6ysLHr37s1rr73G7Nmz+de//kVwcDCA8euDHDlyhL59++Ln58e0adPQ6XS8//77eHl5Fbr9X3/9xY8//si4ceOoWbOmMfR9+eWXPP744wwbNozs7GxWrFjBU089xerVq+nfv7/Z70ueoUOHUrduXWbOnMnhw4f59ttv8fb25qOPPirW68uj0+no27cvHTt25OOPP2bdunVMmTKF3Nxc3n//fZNtC/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vXrhX/jSmG4nzP7udBP1uKovDzzz8zYMAAFEUx+Rnq06cPycnJBd678PBwk7pKQ6fTsWnTJgYNGoS/v79xeYMGDejXr1+hz+nWrVuhP4v5a0pKSiI5OZmuXbsW+r0vze9c165dSUhIICUlpXgvMp/8w77zWqyys7PZtGmTyXb3/nzn/V6OGDECDw8P4/IWLVrwyCOPmPzM5omIiDB5/OqrrwIUum1Rbt++jZ2dXYHleX1+HnSqccmSJRw/ftzs1iZRfiSgCADatWvHL7/8QlJSEvv372fSpEmkpqby5JNPGs8pAzRs2LDAcxs1akRGRgY3btwwWV63bl2Tx+fOnUNRFBo2bIiXl5fJ7dSpUyYdcmNiYox/4JydnfHy8qJbt24AJCcnA3Dp0qUia2rcuHGJ3gd/f/8CnXkbNWoEYDLqY+nSpbRo0QJ7e3s8PT3x8vLizz//NNaW373vQ0n2UdT7nr+mxMREXn/9dXx8fHBwcMDLy8t47Pz7/Pjjjzlx4gQBAQG0b9+eqVOncuHChaLflGIqzvfsfh7
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAHHCAYAAACV96NPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAAByLklEQVR4nO3deXwTZf4H8E+OJmmbNqU3Bcp9H1JAoCiiXAURQVBWZaUIi7tYVGRBxR9XdaGKoAICirIFRRbFA1cE5BAQuQVhgSKXQKGlrYXebZI2md8faYamF02vmYTP+/Xqq8nMZObJ0DYfnnme7ygEQRBAREREJCNKqRtAREREVBoDChEREckOAwoRERH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Kq/JtV5k4/W4Ig4Ouvv8bw4cMhCILDz1BUVBSysrLKnLvo6GiHdtWExWLBzp07MXLkSISFhYnLW7VqhaFDh5b7mn79+pX7s1iyTRkZGcjKykLfvn3L/bevye9c3759cfPmTWRnZ1ftTZZQctq3vcfKbDZj586dDtuV/vm2/16OHz8e/v7+4vIuXbpg0KBB5fZGxMTEODy3D8x3pueioKAAWq22zHL7mJ/KLjXa11X39VQ3GFAIAHDvvffim2++QUZGBo4cOYKZM2ciJycHjz/+uHhNGUC5I+HbtGmD/Pz8MtPxmjdv7vD8woULEAQBrVu3RlBQkMPX2bNnHQbkJiYmin/g9Ho9goKC0K9fPwBAVlYWAODq1asVtqlt27b
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAHHCAYAAACV96NPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAACE/UlEQVR4nOzdd3hTdfvH8XeaNt2DbgpdbMreLdPBFBEExYFahuiDBQcPqDw/RVABFyqILEVAAVEUUZGNbMoesmdLWW0Z3bvJ+f0RGgkt0ELbk7T367py0ZycnNw5pOTD93yHRlEUBSGEEEIIC2KjdgFCCCGEELeSgCKEEEIIiyMBRQghhBAWRwKKEEIIISyOBBQhhBBCWBwJKEIIIYSwOBJQhBBCCGFxJKAIIYQQwuJIQBFCCCGExZGAIiqkgQMHEhISUqLnPPDAAzRs2LBsCrpHsbGxaDQaPvvss3J93Xs5f8U1btw4NBqN2TaNRsPw4cPL5PUqg4JzevXqVbVLKRFrrVuUDw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Pm5sbXl5evPbaa2RnZ5eo7l9++QU/Pz/69u1r2ubj40P//v35/fffycnJuePz/fz8cHR0LNFrirIlLSiC4OBgoqOjOXz48F07iW7atImffvqJV199FXt7e6ZPn0737t3ZtWtXoec++eST1K5dm4kTJ5r+YZswYQLvvvsu/fv358UXX+TKlSt89dVXdOzYkf3795tC0pIlS8jMzGTYsGF4eXmxa9cuvvrqKy5cuMCSJUtMr7FmzRr69etHWFgYkyZN4tq1awwaNIjq1avf07lISkrikUceoX///jzzzDP8/PPPDBs2DJ1Ox+DBgwFITU3l22+/5ZlnnmHo0KGkpaUxZ84cunXrxq5du2jatKnZMefOnUt2djYvvfQS9vb2eHp6lvgY33//PWlpaURFRZGdnc2UKVN46KGHOHToEH5+fgCsXbuWs2fPMmjQIPz9/Tly5AizZ8/myJEj7Nixw/QF+p///IdffvmF4cOHExYWxrVr19i6dSvHjh2jefPm93TeoPh/Z7dTnM9WQkIC4eHhpi9uHx8fVq5cyZAhQ0hNTeX11183O+YHH3yATqdj1KhR5OTk0LVrV1599VWmTp3K//73P+rXrw9g+vNu9u/fT/fu3alatSrjx49Hr9fz/vvv4+PjU+T+f//9Nz///DPDhw/H29vbFPqmTJnCY489xoABA8jNzWXx4sU8+eSTLF++nJ49e5b4vBTo378/oaGhTJo0iX379vHtt9/i6+vLxx9/XKz3V0Cv19O9e3fCw8P55JNPWLVqFe+99x75+fm8//77ZvsW9flet24dPXr0oEaNGowbN46srCy++uor2rVrx759+wqF3/79+xMSEsKkSZPYsWMHU6dOJSkpie+//77YNe/fv5/mzZtjY2P+/+7WrVsze/ZsTp48SaNGjUp0HoTKFFHprVmzRtFqtYpWq1UiIiKUN998U1m9erWSm5trth+gAMqePXtM286dO6c4ODgojz/+uGnbe++9pwDKM888Y/b82NhYRavVKhMmTDDbfujQIcXW1tZse2ZmZqE6J02apGg0GuXcuXOmbU2bNlWqVq2qJCcnm70fQAkODi7ReejUqZMCKJMnTzZty8nJUZo2bar4+vqazkd+fr6Sk5N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WtW/eezkNAQEChzrx16tQBMBv1MX/+fBo3boyDgwNeXl74+Pjw119/mWq72a3n4V6OcbvzfnNN169f57XXXjNdS/fx8TG99s3H/OSTTzh8+DCBgYG0bt2acePGcfbs2duflGIqzt/Zndzts3XlyhWSk5OZPXt2oc/PoEGDgMKdum937u9FYmIiWVlZ1Kp
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAHHCAYAAACV96NPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAACJz0lEQVR4nOzdd3wT9R/H8Ve6d0s3hULZUGbZZSqyywaRoZQhKtaBCD/FHzJUQBF+KiAgioACsmQoe8gG2bvsVVZbSid0J/f7IzYQy+i+pv08H48+SO4ul3eOpPn07js0iqIoCCGEEEIUImZqBxBCCCGE+DcpUIQQQghR6EiBIoQQQohCRwoUIYQQQhQ6UqAIIYQQotCRAkUIIYQQhY4UKEIIIYQodKRAEUIIIUShIwWKEEIIIQodKVBEkTRw4ED8/Pyy9ZgXXniBGjVq5E+gHLp+/ToajYapU6cW6PPm5Phl1fjx49FoNEbLNBoN77zzTr48X3GQcUyjoqLUjpItpppbFAwpUAQAp0+fplevXpQtWxYbGxtKlSpFmzZtmDFjhtrRhMhToaGhjB8/nuvXr6sdReSx2NhY3njjDTw8PLC3t+fFF1/k2LFjz32cTqdjwYIFdOnSBV9fX+zt7alRowZffPEFycnJBZBcPIkUKIL9+/dTv359Tp48ydChQ5k5cyavv/46ZmZmfPfdd2rHEyr48ccfuXDhgtox8kVoa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Xl5e2Nra4uHhYXjux/c
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
}
],
"source": [
2023-03-23 13:49:09 +00:00
"analysis.plot_all('soil_output/Spread_barabasi*/', analysis.get_count, 'state_id');"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If we compare these results to those of the other graph model (a fully-connected graph), we can see a stark difference:"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 24,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T15:58:26.903783Z",
"start_time": "2017-10-19T17:57:57.983957+02:00"
},
2023-03-23 13:49:09 +00:00
"scrolled": false
2017-10-18 18:28:42 +00:00
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAHHCAYAAACV96NPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABtYklEQVR4nO3dd3hT9eI/8PdJ0ow2bTrooHQBVqAMKbs4cCAFqoKgOLhQFOF3saDABZV7mSpDhjJEXHwLCriuCopMEQHZsi5Lli0to2WV7qZtcn5/pDk03SNtTsr79Tx5kpz5OWkh737WEURRFEFEREQkIwpHF4CIiIioJAYUIiIikh0GFCIiIpIdBhQiIiKSHQYUIiIikh0GFCIiIpIdBhQiIiKSHQYUIiIikh0GFCIiIpIdBhSiMgwbNgxhYWGOLoYkLCwMw4YNc3QxZKUhfSaCIGD06NGOLka1OWu5yTkwoJBdHD9+HM888wxCQ0Oh1WrRpEkTPP7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sfkVarbbMptmS+5e3b/Hjk3NhQCG76Ny5M3744QekpaXhwIEDmDRpEjIzM/HMM89IX5YAEB4eXmrfe++9Fzk5OTZ9EQCU+jI6d+4cRFFEeHg4fH19bR6nT5+26ZCblJSEYcOGwdvbG3q9Hr6+vujRowcAID09HQCkL8WyylS8r0NVnDt3DoClD0XJsn3++ecwGo3Secu7vvLK4+vrCy8vr1LbllVGaxW39Vhvvvkm9Ho9unTpgvDwcMTFxZXqE1N
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAHHCAYAAACV96NPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAACSaElEQVR4nOzdd1QU1/vH8fey9C4Igg0sqNi7oqCxK/Yao1EsscVuNIkpliRqYkyxxBYNGms09t4LCpbYomiwiw3sFJG2O78/9ud+s7GBgkN5Xudwjjs75TPLLvs49869GkVRFIQQQgghshAztQMIIYQQQvyXFChCCCGEyHKkQBFCCCFEliMFihBCCCGyHClQhBBCCJHlSIEihBBCiCxHChQhhBBCZDlSoAghhBAiy5ECRQghhBBZjhQoQjxHjx498Pb2VjuGkbe3Nz169FA7RpaSk14TjUbDoEGD1I6Rbtk1t8gepEARGeL06dN06NABLy8vrK2tKVCgAI0aNWL69OlqRxNCZBPr16+ncuXKWFtbU7hwYcaOHUtqamq697NkyRI0Gg329vaZkFK8LeZqBxDZX2hoKPXq1aNw4cL06dMHDw8Prl+/zqFDh5g6dSqDBw9WO6LIgSIiIjAzk/9j5RRbtmyhTZs2vPPOO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nzvlpU8x/O0kXLlzY5PHT83r48KFxWffu3Xny5ImxL1BERATHjh2jW7dur5X7qWvXrmFmZvbMeRQvXvyF2zyvIHrw4AFDhw4lX7582NjY4ObmZlzvv79jePb
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAHHCAYAAACV96NPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAACG8klEQVR4nOzdd1yVdf/H8dfhsLcgQxTBvQfiwjTL3Jqae4Oz29Sy0tL7LkflqKw0y4YpuHdqmdvcE3Hh3uICnIAg65zr98fJ8+soKChwHeDzfDx4eJ1rvq/Lwzkfruv7vS6NoigKQgghhBBmxELtAEIIIYQQT5ICRQghhBBmRwoUIYQQQpgdKVCEEEIIYXakQBFCCCGE2ZECRQghhBBmRwoUIYQQQpgdKVCEEEIIYXakQBFCCCGE2ZECRYgMhISE4O/vr3YMI39/f0JCQtSOYVYK0jHRaDQMGzZM7RjZll9zi/xBChSRIyIjI+ncuTN+fn7Y2tpSvHhxmjVrxowZM9SOJoTIJ/744w9q1aqFra0tJUuWZNy4caSnp2dp2YkTJ9KuXTu8vLzQaDSMHz8+d8OKXGepdgCR/+3du5fXX3+dkiVLMmjQILy9vbl27Rr79+9n+vTpDB8+XO2IogA6e/YsFhbyN1ZBsX79ejp06MBrr73GjBkziIyM5IsvviA2Npaffvrpuct/8skneHt7ExAQwMaNG/MgschtUqCIlzZx4kRcXFwIDw/H1dXVZFpsbGyObCMxMREHB4ccWZc5ym/7l56ejl6vx9raWrU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mzotFoTDJm9Xf6eb7++msFUKKiop6aVqdOHaV+/fpZXtft27ef+v8U+ZNc4hEvrVmzZuzbt4927dpx7NgxvvrqK1q0aEHx4sWfOtUfFBREYGCg8XXJkiVp3749GzduRKfTmcz7n//8x+T177//jl6vp2vXrty5c8f44+3tTbly5di2bZtxXjs7O+NwYmIid+7coUGDBiiKYvxr7NatWxw9epTg4GBcXFxM9qdy5crZOgZHjx7l/Pnz9OzZk7t37xqzJSYm8sYbb7Bz5070ev0z92/Lli2kpqYyfPhwk7/CR4wY8dT21q1bR926dU0ufTk6OjJ48GCuXLlivPzi6urK9evXCQ8Pz9b+ZKRTp04m1/bv3bvH33//TdeuXUlISDDu8927d2nRogXnz5/nxo0bJusYPHiwyb41atQInU7H1atXAbCwsKBXr1788ccfJCQkGOdbuHAhDRo0oFSpUi+c//Hlknfeecdk/LMacT/5fwSm763k5GTu3LlD/fr1ATh8+PBT8w8dOjTD7a1bt85kfNOmTSlTpozxdfXq1XF2dubSpUuZ5stMhw4dKF68uPF13bp1qVev3lPbBBgyZIjJ63Xr1qHVann33XdNxn/44YcoisL69etNxmfndzozjy+9ZtSuyNbWNsNLs6LgkwJF5Ig6derw+++/c//+fQ4ePMiYMWNISEigc+fOxi9LgHLlyj21bPny5UlKSjJpiwA89WV0/vx5FEWhXLlyeHh4mPycPn3apEFuVFQUISEhuLm54ejoiIeHB40bNwYgLi4OwPilmFGmf7d1yIrz588DhjYUT2b77bffSElJMW43s/3LLI+HhwdFihR5at6MMlaqVMlkXR9//DGOjo7UrVuXcuXKMXTo0KfaxGTVk3kvXLiAoih8+umnT+3z40sxTzaSLlmypMnrx/t1//5947i+ffvy6NEjY1ugs2fPEhERQZ8+fV4o92NXr17FwsLiqf0oW7ZspstkVBDdu3eP9957Dy8vL+zs7PDw8DDO9+T/MTz9/1mmTBksLCy4cuWKyfgnjw0Yjs+/j01WZfZ79uQ2LS0tn7qcefXqVXx8fHBycjI
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAHHCAYAAACV96NPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAACFNklEQVR4nOzdd1gU59rH8e/SOwhSRFHsghU7xhZ775piLInRE4Mm1qg51hhLjDXGmGbUN6ZpbLG32GKv2DuKDbBSpe3O+8eGPa6gshRngftzXVzOzjwz83t2FvZ2qkZRFAUhhBBCCDNioXYAIYQQQohnSYEihBBCCLMjBYoQQgghzI4UKEIIIYQwO1KgCCGEEMLsSIEihBBCCLMjBYoQQgghzI4UKEIIIYQwO1KgCCGEEMLsSIEiRAb69u2Lv7+/2jEM/P396du3r9oxzEp+ek80Gg2DBg1SO4bJ8mpukTdIgSJyxOnTp+nWrRslSpTAzs6OokWL0rx5c+bPn692NCFEHvHXX39RvXp17OzsKF68OBMmTCA1NfWl8124cIFPPvmEatWq4ezsTJEiRWjbti1Hjx59BalFbrFSO4DI+/bv38/rr79O8eLF6d+/Pz4+Pty8eZODBw8yb948Bg8erHZEkQ9dvHgRCwv5P1Z+sWnTJjp16kTjxo2ZP38+p0+f5vPPPycqKoqFCxe+cN4ff/yRRYsW0bVrVz788EOio6P57rvvqFu3Lps3b6ZZs2avqBciJ0mBIrJtypQpuLq6cuTIEdzc3IymRUVF5cg64uPjcXR0zJFlmaO81r/U1FR0Oh02NjaqZbC1tX2l68tr2ygr1OzjiBEjqFKlClu3bsXKSv/V5OLiwtSpU/n444+pUKHCc+d96623mDhxIk5OToZx7733HgEBAUycOFEKlDxK/vshsu3q1atUrFgxXXEC4OXlZRh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1bUrRo0XS7+oODg6lRo4bhdfHixenYsSNbtmxBq9Uatf3ggw+MXq9atQqdTkePHj24f/++4cfHx4eyZcuyc+dOQ1t7e3vDcHx8PPfv36devXooimL439jdu3c5efIkffr0wdXV1ag/gYGBJr0HJ0+e5PLly7z99ts8ePDAkC0+Pp6mTZuyZ88edDrdC/u3fft2kpOTGTx4sNH/wocMGZJufRs3bqR27dpGh76cnJwYMGAA169fNxx+cXNz49atWxw5csSk/mSka9eueHp6Gl4/fPiQv//+mx49ehAbG2vo84MHD2jZsiWXL1/m9u3bRssYMGCAUd8aNGiAVqvlxo0bAFhYWNCzZ0/++usvYmNjDe1++eUX6tWrR8mSJbOcP+1wyYcffmg0/kUncT+7jcD4s5WYmMj9+/epW7cuAMePH0/XPiQkJMP1bdy40Wh8s2bNKF26tOF1lSpVcHFx4dq1a8/N9zydOnWiaNGihte1a9emTp066dYJMHDgQKPXGzduxNLSko8++sho/PDhw1EUhU2bNhmNN+V3+nnSDr1mdF6RnZ1dhodmXyQqKoq3336bkiVL8sknn5g0rzAfUqCIHFGrVi1WrVrFo0ePOHz4MGPGjCE2NpZu3boZviwBypYtm27ecuXKkZCQYHQuApDuy+jy5csoikLZsmXx9PQ0+jl//rzRCbnh4eH07dsXd3d3nJyc8PT0pFGjRgBER0cDGL4UM8r09LkOmXH58mVAfw7Fs9l+/PFHkpKSDOt9Xv+el8fT05NChQqla5tRxoCAAKNljRo1CicnJ2rXrk3ZsmUJCQlJd05MZj2b98qVKyiKwrhx49L1Oe1QzLMnSRcvXtzodVq/Hj16ZBjXu3dvnjx5YjgX6OLFixw7doxevXp
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAHHCAYAAACV96NPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAACSfElEQVR4nOzddVyV9///8cehGwQJsbA7sFGwE7trit2x0G3u45xuUxe62TmnbtbsxJ4Bit3YgViISUifc/3+OD/Pd8cERS/idb/duOnVz+tw4Ly43u/3dWkURVEQQgghhMhATNQOIIQQQgjxIilQhBBCCJHhSIEihBBCiAxHChQhhBBCZDhSoAghhBAiw5ECRQghhBAZjhQoQgghhMhwpEARQgghRIYjBYoQQgghMhwpUIR4hR49euDl5aV2DAMvLy969OihdowMJSu9JhqNhiFDhqgdI80ya26ROUiBItLF2bNnadeuHfnz58fKyorcuXPToEEDpk+frnY0IUQmsXHjRipUqICVlRX58uXju+++IyUl5a3b3b17l08++YRixYphb2+Pk5MTVapUYfHixcjTXDIvM7UDiMzv4MGD1KlTh3z58tG3b188PDy4desWhw4dYurUqQwdOlTtiCILunTpEiYm8jdWVrF161ZatWpF7dq1mT59OmfPnuXHH38kMjKS2bNnv3Hbhw8fcvv2bdq1a0e+fPlITk5m586d9OjRg0uXLjFhwoSPdBYiPUmBIt7b+PHjcXR05OjRozg5ORkti4yMTJdjPHv2DFtb23TZV0aU2c4vJSUFnU6HhYWFahksLS0/6vEy2/foXah5jiNGjKBs2bLs2LEDMzP9R5ODgwMTJkxg+PDhFC9e/LXbli1blr179xrNGzJkCM2bN2fatGn88MMPmJqafsj44gOQPz/Ee7t27RqlSpV6qTgBcHNzM/z/eXv10qVLKVasGFZWVlSsWJH9+/cbbTN27Fg0Gg3nz5+nS5cu5MiRA19fX8PyJUuWULFiRaytrXF2dqZTp07cunXLaB9BQUG0b9+efPnyYWlpSd68efnss8+Ij49/KeP69espXbo0VlZWlC5dmnXr1r3za3H48GEaN26Mo6MjNjY21KpViwMHDqT6/BRF4ccffyRPnjzY2NhQp04dQ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I//fTTl44XGBhIlSpVjJq+7Ozs6NevH2FhYYbmFycnJ27fvs3Ro0fTdD6v0rZtW1xdXQ3Tjx8/5t9//6VDhw7ExMQYzvnRo0c0atSIK1eucOfOHaN99OvXz+jc/Pz80Gq13Lx5EwATExO6du3Kxo0biYmJMay3dOlSqlevToECBd45//PmkkGDBhnNf1Mn7he/R2D83kpISODhw4dUq1YNgBMnTry0/uDBg195vMDAQKP59evXp1ChQobpsmXL4uDgwPXr11+b73VatWpF7ty5DdNVqlShatWqLx0TYODAgUbTgYGBmJqaMmzYMKP5X3zxBYqisHXrVqP5afmZfp3nTa+v6ldkZWX1yqbZV+ncuTM7d+5k2bJlhiuEqd1WZDxSoIh0UblyZdauXcuTJ084cuQIo0aNIiYmhnbt2hk+LAGKFCny0rZFixYlLi7OqC8C8NKH0ZUrV1AUhSJFiuDq6mr0deHCBaMOueHh4fTo0QNnZ2fs7OxwdXWlVq1aAERFRQEYPhRflem/fR1S48qVK4C+D8WL2f744w8SExMNx33d+b0uj6urKzly5Hhp3VdlLFGihNG+vvrqK+zs7KhSpQpFihRh8ODBL/WJSa0X8169ehVFUfj2229fOufnTTEvdpLOly+f0fTz83ry5IlhXvfu3YmPjzf0Bbp06RLHjx+nW7d
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
2023-03-23 13:49:09 +00:00
}
],
"source": [
"analysis.plot_all('soil_output/Spread_erdos*', analysis.get_count, 'state_id');"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The previous cells were using the `count_value` function for aggregation. There's another function to plot numeral values:"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {
"scrolled": false
},
"outputs": [
2020-10-19 11:14:48 +00:00
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAA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zp07iIiIwJgxY2Bvb69zPE2bNtXrNYiIiMC1a9fw4osv4u7du9rYsrKy8Oyzz+LQoUPQaDTlHt9ff/2F/Px8vPXWWzp/XU+ZMqXE/nbs2IE2bdro/LVnY2OD8ePHIyYmRnsJxcHBATdv3sSpU6f0Op7SDB48GC4uLtqf7927h7///hvDhg1DZmam9pjv3r2Lnj174tq1a7h165bONsaPH69zbJ07d4ZarUZsbCwAQC6XY9SoUfj999+RmZmpbffzzz+jQ4cO8PPzq3T8xZc8Hu7KB1DuAOtHzxGg+97Kzc1FSkoK2rVrBwA4c+ZMifYTJ04sdX87duzQWd69e3f4+/trf27ZsiXs7Oxw48aNMuMry8CBA+Hl5aX9uU2bNmjbtm2JfQLAhAkTdH7esWMHFAoFJk2apLP87bffhhACO3fu1Fmuz2e6LMWXT0sbB2RhYVHq5dVH1y9r3Ye3T8aDyQhVSuvWrfHbb78hNTUVJ0+exKxZs5CZmYkhQ4ZovxgBICAgoMS6DRs2RHZ2ts7YAQAlvniuXbsGIQQCAgLg4uKi87h8+bLOYNm4uDiMHTsWjo6OsLGxgYuLC7p06QIASE9PBwDtF2BpMT08NqEirl27BqBozMOjsX333XfIy8vT7res4ysrHhcXF9SpU6dE29JiLO6mLt7WjBkzYGNjgzZt2iAgIAATJ04sMYaloh6NNyoqCkIIzJ49u8QxF19OeXQ
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAiMAAAHHCAYAAABtF1i4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpA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dux9//BHt2rVDQEBAheMvvuTxxhtv6C1/1ADrh88RoP/eysvLQ0pKCtq0aQMAOH36dIn248ePL3V/O3bs0FvetWtXBAYG6n5u3rw5HBwccP369TLjK0v//v3h4+Oj+7lVq1Zo3bp1iX0CwLhx4/R+3rFjBxQKBSZMmKC3/O2334YQAjt37tRbbshnuizFl09LGwdkZWVV6uXVB6nVakyePBmvv/66wZ9dMk5MRqhCWrZsiV9++QWpqak4ceIEZs6ciczMTAwaNEj3xQgAQUFBJdatX78+cnJy9MYOACjxxXP16lUIIRAUFAQ3Nze9x6VLl/QGy8bHx2P06NFwdnaGnZ0d3Nzc0KlTJwBAeno6AOi+AEuL6cGxCeVx9epVAEVjHh6O7ZtvvkF+fr5uv2UdX1nxuLm5oVatWiXalhZjo0aN9LY1ffp02NnZoVWrVggKCsL48eNLjGEpr4fjjY6OhhACs2bNKnHMxZdTHh7AXKdOHb2fi48rNTVVt2zkyJHIzc3Vjd2JiorCqVOn8NJLL1Uo7mJxcXGQy+UljqNevXplrlNa8nPv3j1
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAiMAAAHHCAYAAABtF1i4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABvXklEQVR4nO3dd3hTZfsH8G+SNulu6R6UtpSyoa1lDwFFpgzZyE+Gg1dEGRUZvgKiKChDEHGAgvqiMgVRtsgQKENo2RQKXYwu6KK7yfP7ozQSOmhK25Ok38915YKePOec++Qkzd3nPPdzZEIIASIiIiKJyKUOgIiIiG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qSz/O2334YQArt27dJZrs9nuizFl09LGwdkYWFR6uVVMn1MRkhvrVu3xq+//orU1FScPHkSs2bNQmZmJoYMGaL9YgSAgICAEus2bNgQ2dnZOmMHAJT44rl27RqEEAgICICLi4vO4/LlyzqDZePi4jB27Fg4OjrCxsYGLi4u6NKlCwAgPT0dALRfgKXF9PDYhIq4du0agKIxD4/G9u233yIvL0+737KOr6x4XFxcUKdOnRJtS4uxSZMmOtuaMWMGbGxs0KZNGwQEBGDixIklxrBU1KPxRkVFQQiB2bNnlzjm4sspjw5grlevns7PxceVmpqqXTZ69Gjk5ORox+5ERkbi9OnTeOmllyoVd7HY2FjI5fISx9GgQYMy1ykt+bl37x4mT54MNzc3WFpawsXFRdvu0XMMlDyf/v7+kMvliImJ0Vn+6GsDFL0+D782FVXW5+zRfZq
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAiMAAAHHCAYAAABtF1i4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABv/klEQVR4nO3dd3hTZfsH8G+SNulu6R6UtpSyoa1lDwFFpuwtPxkOXhFlVGT4CogLlGERcYCC+qIyBQdbZAiUIbRsCoUuRhd00d3k+f1RGokdNKXtSdLv57pyQU+ec859cpLm7nOe+zkyIYQAERERkUTkUgdAREREdRuTESIiIpIUkxEiIiKSFJMRIiIikhSTESIiIpIUkxEiIiKSFJMRIiIikhSTESIiIpIUkxEiIiKSFJMRqvMmTJgAX19fqcPQ8vX1xYQJE6QOw6CY0msik8nw2muvSR2G3ow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qR5ORkPPfcc/Dz88OsWbP0WpcMB5MR0lvbtm3x888/Iy0tDSdPnsTcuXORlZWF4cOHa78YASAgIKDUuo0bN0ZOTo7O2AEApb54rl27BiEEAgIC4OLiovO4fPmyzmDZ+Ph4TJgwAY6OjrCxsYGLiwu6desGAMjIyAAA7RdgWTE9PDahMq5duwageMzDv2P7+uuvkZ+fr91vecdXXjwuLi6oV69eqbZlxdisWTOdbc2ePRs2NjZo164dAgICMGXKlFJjWCrr3/FGR0dDCIF58+aVOuaSyyn/HsDcoEEDnZ9LjistLU2
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAiMAAAHHCAYAAABtF1i4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABwIElEQVR4nO3dd1hTZ/sH8G8SSNgge4iAiFsBcY+qlTrrqNv61tHhW2tbR62jb9Xapa2jWmuHtlr7s9ZZ7XDXOqriqIJbFGU5AFH2Jnl+fyCpKUOCwEnC93NduZST55xzn5yE3DznuZ8jE0IIEBEREUlELnUAREREVLsxGSEiIiJJMRkhIiIiSTEZISIiIkkxGSEiIiJJMRkhIiIiSTEZISIiIkkxGSEiIiJJMRkhIiIiSTEZoVpv3Lhx8PX1lToMLV9fX4wbN07qMAyKKb0mMpkMr7/+utRh6M1Y4ybjwGSE9HbhwgUMHToUPj4+sLCwgJeXF5555hmsWLFC6tCIyEj8+uuvaNWqFSwsLFCvXj3MmzcPhYWFj13vzp07+M9//oNGjRrB1tYWDg4OaNu2LdatWwfe3cR4mUkdAB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jYOjoyNsbGzg4uKCrl27AgDS0tIAQPsFWFpMj45NqIjr168DKBrz8O/Yvv32W+Tl5Wn3W9bxlRWPi4sL6tSpU6JtaTE2adJEZ1szZ86EjY0N2rZti4CAAEyaNKnEGJaK+ne8UVFREEJgzpw5JY65+HLKvwc
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2020-10-19 11:14:48 +00:00
"analysis.plot_all('soil_output/Spread_erdos*', analysis.get_value, 'prob_tv_spread');"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Manually plotting with pandas"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T11:00:37.003972Z",
"start_time": "2017-10-19T13:00:36.983128+02:00"
}
},
"source": [
"Although the simplest way to visualize the results of a simulation is to use the built-in methods in the analysis module, sometimes the setup is more complicated and we need to explore the data a little further.\n",
"\n",
"For that, we can use native pandas over the results.\n",
"\n",
"Soil provides some convenience methods to simplify common operations:\n",
"\n",
"* `analysis.split_df` to separate a history dataframe into environment and agent parameters.\n",
"* `analysis.get_count` to get a dataframe with the value counts for different attributes during the simulation.\n",
"* `analysis.get_value` to get the evolution of the value of an attribute during the simulation.\n",
"\n",
"And, as we saw earlier, `analysis.process` can turn a dataframe in canonical form into a dataframe with a column per attribute.\n"
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 26,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"soil_output/Spread_barabasi_albert_graph_prob_0.0/Spread_barabasi_albert_graph_prob_0.0.dumped.yml\r\n",
"soil_output/Spread_barabasi_albert_graph_prob_0.0/Spread_barabasi_albert_graph_prob_0.0.sqlite\r\n",
"soil_output/Spread_barabasi_albert_graph_prob_0.0/Spread_barabasi_albert_graph_prob_0.0_trial_0.csv\r\n",
"soil_output/Spread_barabasi_albert_graph_prob_0.0/Spread_barabasi_albert_graph_prob_0.0_trial_0.sqlite\r\n",
"soil_output/Spread_barabasi_albert_graph_prob_0.0/Spread_barabasi_albert_graph_prob_0.0_trial_0.stats.csv\r\n"
]
}
],
"source": [
"!ls soil_output/Spread_barabasi_albert_graph_prob_0.0/Spread_barabasi_albert_graph_prob_0*"
]
},
{
"cell_type": "code",
"execution_count": 27,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T15:59:15.791793Z",
"start_time": "2017-10-19T17:59:15.604960+02:00"
},
2020-10-19 11:14:48 +00:00
"scrolled": true
2017-10-18 18:28:42 +00:00
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead tr th {\n",
" text-align: left;\n",
" }\n",
"\n",
" .dataframe thead tr:last-of-type th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr>\n",
" <th>key</th>\n",
" <th>SEED</th>\n",
2023-03-23 13:49:09 +00:00
" <th colspan=\"9\" halign=\"left\">alive</th>\n",
2020-10-19 11:14:48 +00:00
" <th>...</th>\n",
2023-03-23 13:49:09 +00:00
" <th colspan=\"10\" halign=\"left\">state_id</th>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>dict_id</th>\n",
2020-10-19 11:14:48 +00:00
" <th>env</th>\n",
" <th>0</th>\n",
" <th>1</th>\n",
" <th>10</th>\n",
" <th>100</th>\n",
" <th>101</th>\n",
" <th>102</th>\n",
" <th>103</th>\n",
" <th>104</th>\n",
2023-03-23 13:49:09 +00:00
" <th>105</th>\n",
2020-10-19 11:14:48 +00:00
" <th>...</th>\n",
2023-03-23 13:49:09 +00:00
" <th>90</th>\n",
" <th>91</th>\n",
2020-10-19 11:14:48 +00:00
" <th>92</th>\n",
" <th>93</th>\n",
" <th>94</th>\n",
" <th>95</th>\n",
" <th>96</th>\n",
" <th>97</th>\n",
" <th>98</th>\n",
" <th>99</th>\n",
" </tr>\n",
" <tr>\n",
" <th>t_step</th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>0.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>1.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>2.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>3.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>4.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>5.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>6.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>7.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>8.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>9.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>10.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>neutral</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>neutral</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>neutral</td>\n",
" <td>neutral</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>11.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" <td>neutral</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>12.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>13.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>14.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>15.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>16.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>17.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>18.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" <tr>\n",
2023-03-23 13:49:09 +00:00
" <th>19.0</th>\n",
" <td>Spread_barabasi_albert_graph_prob_0.0_trial_0</td>\n",
" <td>True</td>\n",
2020-10-19 11:14:48 +00:00
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>True</td>\n",
" <td>...</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2023-03-23 13:49:09 +00:00
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
" <td>infected</td>\n",
2020-10-19 11:14:48 +00:00
" </tr>\n",
" </tbody>\n",
"</table>\n",
2023-03-23 13:49:09 +00:00
"<p>20 rows × 3008 columns</p>\n",
2020-10-19 11:14:48 +00:00
"</div>"
],
"text/plain": [
2023-03-23 13:49:09 +00:00
"key SEED alive \\\n",
"dict_id env 0 1 10 \n",
2020-10-19 11:14:48 +00:00
"t_step \n",
2023-03-23 13:49:09 +00:00
"0.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"1.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"2.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"3.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"4.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"5.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"6.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"7.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"8.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"9.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"10.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"11.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"12.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"13.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"14.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"15.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"16.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"17.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"18.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"19.0 Spread_barabasi_albert_graph_prob_0.0_trial_0 True True True \n",
"\n",
"key ... state_id \\\n",
"dict_id 100 101 102 103 104 105 ... 90 91 \n",
"t_step ... \n",
"0.0 True True True True True True ... neutral neutral \n",
"1.0 True True True True True True ... neutral neutral \n",
"2.0 True True True True True True ... neutral neutral \n",
"3.0 True True True True True True ... neutral neutral \n",
"4.0 True True True True True True ... neutral neutral \n",
"5.0 True True True True True True ... neutral neutral \n",
"6.0 True True True True True True ... neutral neutral \n",
"7.0 True True True True True True ... neutral neutral \n",
"8.0 True True True True True True ... neutral neutral \n",
"9.0 True True True True True True ... neutral neutral \n",
"10.0 True True True True True True ... neutral neutral \n",
"11.0 True True True True True True ... infected infected \n",
"12.0 True True True True True True ... infected infected \n",
"13.0 True True True True True True ... infected infected \n",
"14.0 True True True True True True ... infected infected \n",
"15.0 True True True True True True ... infected infected \n",
"16.0 True True True True True True ... infected infected \n",
"17.0 True True True True True True ... infected infected \n",
"18.0 True True True True True True ... infected infected \n",
"19.0 True True True True True True ... infected infected \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"key \\\n",
"dict_id 92 93 94 95 96 97 98 \n",
"t_step \n",
"0.0 neutral neutral neutral neutral neutral neutral neutral \n",
"1.0 neutral neutral neutral neutral neutral neutral neutral \n",
"2.0 neutral neutral neutral neutral neutral neutral neutral \n",
"3.0 neutral neutral neutral neutral neutral neutral neutral \n",
"4.0 neutral neutral neutral neutral neutral neutral neutral \n",
"5.0 neutral neutral neutral neutral neutral infected neutral \n",
"6.0 neutral neutral neutral neutral neutral infected neutral \n",
"7.0 neutral neutral neutral neutral neutral infected neutral \n",
"8.0 neutral neutral neutral neutral neutral infected neutral \n",
"9.0 neutral neutral neutral neutral neutral infected neutral \n",
"10.0 neutral neutral neutral neutral neutral infected neutral \n",
"11.0 infected infected infected neutral infected infected infected \n",
"12.0 infected infected infected infected infected infected infected \n",
"13.0 infected infected infected infected infected infected infected \n",
"14.0 infected infected infected infected infected infected infected \n",
"15.0 infected infected infected infected infected infected infected \n",
"16.0 infected infected infected infected infected infected infected \n",
"17.0 infected infected infected infected infected infected infected \n",
"18.0 infected infected infected infected infected infected infected \n",
"19.0 infected infected infected infected infected infected infected \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"key \n",
"dict_id 99 \n",
"t_step \n",
"0.0 neutral \n",
"1.0 neutral \n",
"2.0 neutral \n",
"3.0 neutral \n",
"4.0 neutral \n",
"5.0 neutral \n",
"6.0 neutral \n",
"7.0 neutral \n",
"8.0 neutral \n",
"9.0 neutral \n",
"10.0 neutral \n",
"11.0 infected \n",
"12.0 infected \n",
"13.0 infected \n",
"14.0 infected \n",
"15.0 infected \n",
"16.0 infected \n",
"17.0 infected \n",
"18.0 infected \n",
"19.0 infected \n",
2020-10-19 11:14:48 +00:00
"\n",
2023-03-23 13:49:09 +00:00
"[20 rows x 3008 columns]"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"execution_count": 27,
2020-10-19 11:14:48 +00:00
"metadata": {},
"output_type": "execute_result"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2023-03-23 13:49:09 +00:00
"df = analysis.read_sql('soil_output/Spread_barabasi_albert_graph_prob_0.0/Spread_barabasi_albert_graph_prob_0.0_trial_0.sqlite')\n",
2020-10-19 11:14:48 +00:00
"df"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's look at the evolution of agent parameters in the simulation"
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 28,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T15:59:17.153282Z",
"start_time": "2017-10-19T17:59:16.830872+02:00"
2020-10-19 11:14:48 +00:00
}
2017-10-18 18:28:42 +00:00
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Axes: xlabel='t_step'>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"execution_count": 28,
2020-10-19 11:14:48 +00:00
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAh8AAClwCAYAAADkRW44AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9e1xU1734/782lyHDbSaEm1QFooSQhFLAipimGKtiMPmQeqzGTCKkhvzSbyw1KcbUE3PUhuS01Vqbc5RaDHgEvJ2caBNNKbUZHam3hINENEYNKlrEiMhFZgCH/fuD424mEIHITXk/H495hNlr7bXfe1qcN++19t6KqqoqQgghhBD9xGmgAxBCCCHE0CLJhxBCCCH6lSQfQgghhOhXknwIIYQQol9J8iGEEEKIfiXJhxBCCCH6lSQfQgghhOhXLgMdwFe1tbXxj3/8Ay8vLxRFGehwhBBCCNENqqrS0NBAUFAQTk43rm0MuuTjH//4ByNGjBjoMIQQQgjxDVRWVjJ8+PAb9hl0yYeXlxfQHry3t/cARyOEEEKI7qivr2fEiBHa9/iNDLrk4/pUi7e3tyQfQgghxC2mO0smZMGpEEIIIfqVJB9CCCGE6FeSfAghhBCiXw26NR9CiFuf3W6ntbV1oMMQQvQynU7X5WW03SHJhxCi16iqyoULF7hy5cpAhyKE6ANOTk6Ehoai0+luahxJPoQQveZ64uHv74+7u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/nJHpAHWTq6upUQK2rqxvoUIQQPWC1WtWjR4+qVqtV29b
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2020-10-19 11:14:48 +00:00
"df.plot()"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T11:10:36.086913Z",
"start_time": "2017-10-19T13:10:36.058547+02:00"
}
},
"source": [
2023-03-23 13:49:09 +00:00
"As we can see, `event_time` and `interval` are cluttering our results, "
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 29,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T15:59:18.418348Z",
"start_time": "2017-10-19T17:59:18.143443+02:00"
2020-10-19 11:14:48 +00:00
}
2018-05-04 08:01:49 +00:00
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Axes: xlabel='t_step'>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"execution_count": 29,
2020-10-19 11:14:48 +00:00
"metadata": {},
"output_type": "execute_result"
2018-05-04 08:01:49 +00:00
},
2020-10-19 11:14:48 +00:00
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAiMAAAGwCAYAAAB7MGXBAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABziklEQVR4nO3dd3xT9ffH8VeSNt1N6aZQKHvPsgoiqEgB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7t27M3r0aO69996bXh87dmyJGy+WlbfeestyK/KND2t6L4nyY1LMA5Dj8AMnVzDlQKL5LImXqzMfDWiJVgM/7bvA7//8p2apQggrSeMNYXNlfRtvWRg9enSRk67JbcL2STGZz4wk63wIqhIIl6Pg2inwrQVAmzBfxt5Vl0/Xn+Tlnw4RXrMKVQ3yWQrhCCSMiErJ19cXX19ftcsQ1sg9M5Ku8wLfarlhJLrAKuPvqcem45c5eD6R578/yLfD26PVyuysQtg7uUwjhHAIeWdGsvQGy9kQrp0usI6zTsuHA1ri5qxj26mrLNhy+sbdCCHskIQRIYRjUMxhJFvvA761zcuu3Rw2agd4Mq13YwDeW3OMI/8llleFQohSkjAihHAMuWHE5Fql2DAC8GjbUO5tHES2UeHZZQfIyC797LtCCNuTMCKEcAia3DCCW74wEn8GTDcHDY1GwzsPNSfAy4WTl1KYuSqq/AoVQlhNwogQwjHkhhGdexUwVAedHoxZkHi+0NV9PfS8/0gLAL7afpYNxy6VW6lCCOtIGFHR1at
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2023-03-23 13:49:09 +00:00
"del df['interval']\n",
2020-10-19 11:14:48 +00:00
"del df['event_time']\n",
"df.plot()"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
2020-10-19 11:14:48 +00:00
"The `soil.analysis` module also provides convenient functions to count the number of agents in a given state:"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 30,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T15:59:51.165806Z",
"start_time": "2017-10-19T17:59:50.886780+02:00"
2020-10-19 11:14:48 +00:00
}
2018-05-04 08:01:49 +00:00
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAGwCAYAAACD0J42AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABcUUlEQVR4nO3deXhTVf4/8PdN0iRNuu9UoEVFKHsBgboPIGURYeA3bghFEWeYooMMiHyHnWFRQQVE1BksjMgwOqMwAqKAgMomsijbIGChKLRI9zZN0ib390d6b5vuaVNyk75fz5Onyc3NzblNS9+cc+7nCKIoiiAiIiJSEJWnG0BERERUFQMKERERKQ4DChERESkOAwoREREpDgMKERERKQ4DChERESkOAwoREREpjsbTDWgMu92Oq1evIjAwEIIgeLo5RERE1ACiKKKwsBCxsbFQqeruI/HKgHL16lW0adPG080gIiKiRrhy5Qpat25d5z5eGVACAwMBOE4wKCjIw60hIiKihigoKECbNm3kv+N18cqAIg3rBAUFMaAQERF5mYZMz+AkWSIiIlIcBhQiIiJSHAYUIiIiUhwGFCIiIlIcBhQiIiJSHAYUIiIiUhwGFCIiIlIcBhQiIiJSHAYUIiIiUhwGFCIiIlIclwLKvHnzIAiC061jx47y82azGampqQgPD0dAQABGjx6NrKwsp2NkZGRg2LBhMBgMiIqKwvTp01FWVuaesyEiIiKf4PJaPJ07d8auXbsqDqCpOMQLL7yAbdu24aOPPkJwcDAmT56MUaNGYf/+/QAAm82GYcOGISYmBgcOHMC1a9cwbtw4+Pn5YfHixW44HSIiIvIFLgcUjUaDmJiYatvz8/Oxdu1abNy4Ef379wcApKWlISEhAYcOHUK/fv3wxRdf4MyZM9i1axeio6PRo0cPLFy4EDNmzMC8efOg1WqbfkZERC2UKIoos4uwlNlhLb+V2e2ebhZ5KaNWg1Cj5/4uuxxQzp8/j9jYWOj1eiQlJWHJkiVo27Ytjh49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xhwLxN9T+36iWF4Qr0p1X1OV6r5SmDFlAxAdhfFKcoAb51xvm6ACtDVV9q38OKjisTGKc2paCJtdxLIvzmHN3osAgKRbw/HmE4kID+AQJJG7MKCQdxDKe0P8Q4GI2+vf324DTDmVqvn+6nhcU9E7uY5MpaJ4og0Q7eV1ZvJdbGv5cFf4bdWvZgqJ48KSXi632IrnNx3H1+cdVaAn3tsOMwZ3hEbN+SZE7sSAQr5JpQYCIh03JLj2WlF0LBxZVyXfyoFGelyYWf+cGkHluORaCiyVQ0xIHJcjULjTV/Px+/eP4ufcEuj9VHjl/3XHw91jPd0sIp/EgEJUlSAAWoPjFhjt2mud5tRUvaLpp/JVsi87bj/tqfrG5eGlXfUAExoP+Pm76wypETYf/wUvffwDzKV2tA0z4J2xvZDQqoVWsia6CVjqnuhmEUWgKKuG8FJ+sxbV/XpjVM1rKFVehoBXLbldqc2OxdvPIm3/JQDA/XdEYsVjPRBi4FAdkatY6p5IiYTytY4CY4C4u5yfE0XHPJnawoulACi+7rhdPV7L8dWOY9cUXqRQY4jgWkouMJfakPLetzic7liFfPJvbscLD94BtYpXdxE1NwYUIiUQhIpKvm37OT8nio6rkvKvVFp6oPKSBL841lISy4vlFfxS+/uotc6LP8pB5hZAH1L9KqUWvrbSrrNZOJyeA6NWjdce7YHkzjGebhJRi8GAQqR0glBegC4CiE2seR+7zTF8VG0NpUpBpijLsRxB7iXHrSH8jHVcZh1cw2XXgYA+2Pmx1ui19WQy880AgAEJ0QwnRDcZAwqRL1CpK+rJ4M6a9ykrX626psUgC68B5vyKK5JsFsdrSos
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2023-03-23 13:49:09 +00:00
"analysis.get_count(agents, 'state_id').plot();"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Dealing with bigger data"
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 31,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T16:00:18.148006Z",
"start_time": "2017-10-19T18:00:18.117654+02:00"
2020-10-19 11:14:48 +00:00
}
2017-10-18 18:28:42 +00:00
},
"outputs": [],
"source": [
"from soil import analysis"
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 32,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T16:00:18.636440Z",
"start_time": "2017-10-19T18:00:18.504421+02:00"
2020-10-19 11:14:48 +00:00
}
2017-10-18 18:28:42 +00:00
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
2023-03-23 13:49:09 +00:00
"1.1M\t../rabbits/soil_output/rabbits_example/\r\n"
2020-10-19 11:14:48 +00:00
]
}
],
2017-10-18 18:28:42 +00:00
"source": [
"!du -xsh ../rabbits/soil_output/rabbits_example/"
]
},
{
"cell_type": "markdown",
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T11:22:22.301765Z",
"start_time": "2017-10-19T13:22:22.281986+02:00"
}
},
"source": [
"If we tried to load the entire history, we would probably run out of memory. Hence, it is recommended that you also specify the attributes you are interested in."
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 33,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T16:00:25.080582Z",
"start_time": "2017-10-19T18:00:19.594165+02:00"
},
"scrolled": false
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAHHCAYAAACV96NPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZl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9+3X6vV3neNwryn+Qldp06d7nvurVu33vfMQlQW0gdFiDLm7hoTUPuU7N+/nwkTJtCsWTPs7OzQarV0794drVb72OuV1gic9u3bc/HiRdavX8/WrVv57rvvmDt3LgsXLuQ///lPga6h1Wpp3Lgxn3322QOP35sonDhxQvcBfubMGQYOHKh3fNasWUyZMoWXX36ZGTNm4OzsjImJCePHj3/ge2dqavrA+z5sv6Ioj32mx8mPY/ny5Xh6et533MxMfk2Lykl+8oUowxITE9m+fTuhoaF6HTIf1Yxy/vx5vVqYCxcuoNVq7+to+aBr/P3339jY2ODm5vbQ6z8q4XF2dmb48OEMHz6ctLQ02rdvz7Rp0wqcoNSuXZtTp07RuXPnxyZWt27dYvjw4TRo0IAnnniCjz/+mL59+9KyZUtdmZ9//pmnnnqKxYsX652blJSEq6trgWIyRGHe09q1awPg7u5Oly5dij0mIcoraeIRogzL/8v93r/UP//884ee8/XXX+u9/vLLLwHo0aOH3v4DBw7o9cO4fPky69evp1u3bg+tMQCwtbUlKSnpvv33Dnu2s7OjTp069w3HfZT+/ftz9epVvv322/uOZWRk6M0L88477xATE8P333/PZ599hq+vLyEhIXr3MzU1ve+9W7NmDVevXi1wTIYozHsaHByMg4MDs2bNIicn577jhWluE6IikBoUIcowBwcH2rdvz8cff0xOTg7VqlVj69atREVFPfScqKgonnnmGbp3786BAwdYsWIFgwYNomnTpnrlGjVqRHBwsN6QWIDQ0NBHxtS8eXMWLFjABx98QJ06dXB3d6dTp040aNCAjh070rx5c5ydnTl69Cg///xzgdb8yTdkyBB++ukn/u///o8dO3bQtm1b8vLy+Ouvv/jpp5/4448/aNGiBX/++Sfz58/n/fffJzAwEIAlS5bQsWNHpkyZwscffwxA7969mT59OsOHD+eJJ57gzJkzrFy5klq1ahU4JkMU5j11cHBgwYIFDBkyhMDAQAYMGICbmxsxMTH8/vvvtG3blq+++qpE4hWiTDPuICIhRL78YcL//vuv3v4rV64offv2VZycnBRHR0flhRdeUK5du6YAyvvvv3/f+REREcrzzz+v2NvbK1WqVFHGjh2rZGRk6F0TUMaMGaOsWLFC8fPzUywtLZWAgABlx44deuUeNMw4Li5O6dWrl2Jvb68AuiHHH3zwgdKqVSvFyclJsba2VurXr6/MnDlTb9huQWRnZysfffSR0rBhQ8XS0lKpUqWK0rx5cyU0NFRJTk5WUlJSFB8fHyUwMFDJycnRO/eNN95QTExMlAMHDiiKog4zfuutt5SqVasq1tbWStu2bZUDBw4oHTp00BsqnT/MeM2aNQ98/iNHjujtf9C/VVHe0/wYgoODFUdHR8XKykqpXbu2MmzYML1hy0JUJhpFKYZeXkIIUclpNBrGjBkjtR1CFBPpgyKEEEKIMkf6oAghSlx2djYJCQmPLOPo6HjfEGshROUlCYoQosTt37+fp5566pFllixZwrBhw0onICFEmSd9UIQQJS4xMZFjx449skzDhg2pWrVqKUUkhCjrJEERQgghRJkjnWSFEEIIUeaUyz4oWq2Wa9euYW9vX2rrjAghhBCiaBRFITU1FS8vL91K4w9TLhOUa9eu3bdomBBCCCHKh8uXL1O9evVHlimXCYq9vT2gPqCDg4ORoxFCCCFEQaSkpODt7a37HH+Ucpmg5DfrODg4SIIihBBClDMF6Z4hnWSFEEIIUeZIgiKEEEKIMkcSFCG
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2023-03-23 13:49:09 +00:00
"p = analysis.plot_all('../rabbits/soil_output/rabbits_example/', analysis.get_count, 'state_id')"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 34,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"backup\t\t\t rabbits_example.sqlite\r\n",
"rabbits_example.dumped.yml rabbits_example_trial_0.sqlite\r\n"
]
2020-10-19 11:14:48 +00:00
}
2023-03-23 13:49:09 +00:00
],
2017-10-18 18:28:42 +00:00
"source": [
2023-03-23 13:49:09 +00:00
"!ls ../rabbits/soil_output/rabbits_example"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 35,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
2023-03-23 13:49:09 +00:00
"end_time": "2017-10-19T16:00:38.434367Z",
"start_time": "2017-10-19T18:00:33.645762+02:00"
2017-10-18 18:28:42 +00:00
},
"scrolled": true
},
2023-03-23 13:49:09 +00:00
"outputs": [],
"source": [
"df = analysis.read_sql('../rabbits/soil_output/rabbits_example/rabbits_example_trial_0.sqlite', keys=['state_id', 'rabbits_alive'])"
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
2023-03-23 13:49:09 +00:00
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead tr th {\n",
" text-align: left;\n",
" }\n",
"\n",
" .dataframe thead tr:last-of-type th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr>\n",
" <th>key</th>\n",
" <th>rabbits_alive</th>\n",
" <th colspan=\"20\" halign=\"left\">state_id</th>\n",
" </tr>\n",
" <tr>\n",
" <th>dict_id</th>\n",
" <th>env</th>\n",
" <th>0</th>\n",
" <th>1</th>\n",
" <th>10</th>\n",
" <th>100</th>\n",
" <th>101</th>\n",
" <th>102</th>\n",
" <th>103</th>\n",
" <th>104</th>\n",
" <th>105</th>\n",
" <th>...</th>\n",
" <th>90</th>\n",
" <th>91</th>\n",
" <th>92</th>\n",
" <th>93</th>\n",
" <th>94</th>\n",
" <th>95</th>\n",
" <th>96</th>\n",
" <th>97</th>\n",
" <th>98</th>\n",
" <th>99</th>\n",
" </tr>\n",
" <tr>\n",
" <th>t_step</th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0.0</th>\n",
" <td>0</td>\n",
" <td>newborn</td>\n",
" <td>newborn</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>...</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2.0</th>\n",
" <td>0</td>\n",
" <td>fertile</td>\n",
" <td>fertile</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>...</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" </tr>\n",
" <tr>\n",
" <th>16.0</th>\n",
" <td>0</td>\n",
" <td>pregnant</td>\n",
" <td>fertile</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>...</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" </tr>\n",
" <tr>\n",
" <th>49.0</th>\n",
" <td>8</td>\n",
" <td>fertile</td>\n",
" <td>fertile</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>...</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" </tr>\n",
" <tr>\n",
" <th>51.0</th>\n",
" <td>8</td>\n",
" <td>fertile</td>\n",
" <td>fertile</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>...</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" <td>nan</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>739.0</th>\n",
" <td>15</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>...</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" </tr>\n",
" <tr>\n",
" <th>742.0</th>\n",
" <td>14</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>...</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" </tr>\n",
" <tr>\n",
" <th>743.0</th>\n",
" <td>12</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>...</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" </tr>\n",
" <tr>\n",
" <th>744.0</th>\n",
" <td>10</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>...</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" </tr>\n",
" <tr>\n",
" <th>751.0</th>\n",
" <td>9</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>...</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>fertile</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" <td>dead</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>326 rows × 349 columns</p>\n",
"</div>"
],
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"key rabbits_alive state_id \\\n",
"dict_id env 0 1 10 100 101 102 103 \n",
"t_step \n",
"0.0 0 newborn newborn nan nan nan nan nan \n",
"2.0 0 fertile fertile nan nan nan nan nan \n",
"16.0 0 pregnant fertile nan nan nan nan nan \n",
"49.0 8 fertile fertile nan nan nan nan nan \n",
"51.0 8 fertile fertile nan nan nan nan nan \n",
"... ... ... ... ... ... ... ... ... \n",
"739.0 15 fertile dead dead dead fertile dead fertile \n",
"742.0 14 fertile dead dead dead fertile dead fertile \n",
"743.0 12 fertile dead dead dead fertile dead fertile \n",
"744.0 10 fertile dead dead dead fertile dead fertile \n",
"751.0 9 fertile dead dead dead fertile dead fertile \n",
"\n",
"key ... \\\n",
"dict_id 104 105 ... 90 91 92 93 94 95 96 \n",
"t_step ... \n",
"0.0 nan nan ... nan nan nan nan nan nan nan \n",
"2.0 nan nan ... nan nan nan nan nan nan nan \n",
"16.0 nan nan ... nan nan nan nan nan nan nan \n",
"49.0 nan nan ... nan nan nan nan nan nan nan \n",
"51.0 nan nan ... nan nan nan nan nan nan nan \n",
"... ... ... ... ... ... ... ... ... ... ... \n",
"739.0 dead dead ... dead fertile dead dead dead fertile dead \n",
"742.0 dead dead ... dead fertile dead dead dead fertile dead \n",
"743.0 dead dead ... dead fertile dead dead dead fertile dead \n",
"744.0 dead dead ... dead fertile dead dead dead fertile dead \n",
"751.0 dead dead ... dead fertile dead dead dead fertile dead \n",
"\n",
"key \n",
"dict_id 97 98 99 \n",
"t_step \n",
"0.0 nan nan nan \n",
"2.0 nan nan nan \n",
"16.0 nan nan nan \n",
"49.0 nan nan nan \n",
"51.0 nan nan nan \n",
"... ... ... ... \n",
"739.0 dead dead dead \n",
"742.0 dead dead dead \n",
"743.0 dead dead dead \n",
"744.0 dead dead dead \n",
"751.0 dead dead dead \n",
"\n",
"[326 rows x 349 columns]"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"execution_count": 36,
2020-10-19 11:14:48 +00:00
"metadata": {},
"output_type": "execute_result"
2023-03-23 13:49:09 +00:00
}
],
"source": [
"df"
]
},
{
"cell_type": "code",
"execution_count": 37,
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T16:00:39.160418Z",
"start_time": "2017-10-19T18:00:38.436153+02:00"
2020-10-19 11:14:48 +00:00
},
2023-03-23 13:49:09 +00:00
"scrolled": true
},
"outputs": [
2020-10-19 11:14:48 +00:00
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAGwCAYAAACD0J42AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6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QQpjczJkzadOmDU2bNtXvCwkJYefOnQbn7dy5kyZNmpT6yzs8PJxvv/0WLy+vMped6NChA0OGDOHVV1812B8SEkJxcTF79uzhnnvuAeDKlSucPHmy1LNNvb298fPz459//mH48OFlik9IglLh6trX5ckWTxIdGs2hS4f48dSP/Jb4G/Hp8by7710+OPABvRr04t7692KpufP/nA1dG9K8rvmnYwshRGm0bNmS4cOHM2fOHP2+l156ifbt2zNt2jQeeeQRdu3axaeffmrUDJfhw4fz/vvvM3DgQN566y3q16/PmTNn+Omnn5g4cSL169cv1XWmT59OaGgoVlbXvgqDg4MZOHAgo0aNYv78+Tg7O/Pqq69Sr149Bg4cWOoYY2JiGDduHK6urvTt25eCggL2799PWlqaQeFRcXuSoFQSjUZDuHc44d7hvNLhFdb9s44fT/3IX6l/sT5xPesT15fqOo+HPM5/2/4XG0tZWFEIUfW99dZbfPvtt/rX4eHhfPfdd0yZMoVp06bh6+vLW2+9ZVQ3kIODA9u3b+eVV15hyJAhZGVlUa9ePXr27KlvUdm6dSv33Xcfp0+fJjAw8JbXadKkCU8//fRNU5gXLVrECy+8wIABAygsLKRr166sW7f
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2023-03-23 13:49:09 +00:00
"states = analysis.get_count(df, 'state_id')\n",
"states.plot();"
2017-10-18 18:28:42 +00:00
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 38,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T16:00:39.515032Z",
"start_time": "2017-10-19T18:00:39.162240+02:00"
2020-10-19 11:14:48 +00:00
}
2018-05-04 08:01:49 +00:00
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Axes: xlabel='t_step'>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"execution_count": 38,
2020-10-19 11:14:48 +00:00
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAGwCAYAAACD0J42AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAABhpklEQVR4nO3dd3hUddrG8e9Meg9JSIOEDqH3EpAiIB1xwbWhoqIuCCqyNvZVrCuuvYNtQVcQbKiggtSASJFQpIZOaElo6T057x8hoxEUQsqZmdyf65rLZM6ZyXPIOHPnVy2GYRiIiIiI2BGr2QWIiIiI/JECioiIiNgdBRQRERGxOwooIiIiYncUUERERMTuKKCIiIiI3VFAEREREbvjanYBl6O4uJjjx4/j5+eHxWIxuxwRERG5BIZhkJGRQWRkJFbrX7eROGRAOX78OFFRUWaXISIiIpfhyJEj1K1b9y/PcciA4ufnB5RcoL+/v8nViIiIyKVIT08nKirK9jn+VxwyoJR26/j7+yugiIiIOJhLGZ6hQbIiIiJidxRQRERExO4ooIiIiIjdccgxKCIiYp6ioiIKCgrMLkPskJubGy4uLpXyXAooIiJySQzDICkpidTUVLNLETsWGBhIeHh4hdcpU0AREZFLUhpOQkND8fb21kKZUoZhGGRnZ5OSkgJAREREhZ5PAUVERC6qqKjIFk6Cg4PNLkfslJeXFwApKSmEhoZWqLtHg2RFROSiSseceHt7m1yJ2LvS10hFxykpoIiIyCVTt45cTGW9RhRQRERExO4ooIiIiIjdUUARERH5gz59+jBp0iSzy6jRFFDE6eQWFJldgoiIVJACijiVRdtP0PKJxcxcc9DsUkREpAIUUMSpzNlwhKJig6cW7OT+uZvVmiIileK7774jICCA2bNnc+TIEa677joCAwMJCg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rJLSimoKhkBs+lBBSAf/RqSEFhMS8v2cMX8UdZsjOZhwY248Yu0bhYzx/DIiIi1adcASUlJYVbb72VEydOEBAQQJs2bVi8eLGtj+3VV1/FarUyatQo8vLyGDhwIO+8847t8S4uLixcuJDx48cTGxuLj48PY8aM4emnn67cq5Iap7T1xMVqwdvd5ZIeY7FYuLdfE7o3DuHxr7ez80Q6j329nS/ij/LeLR01u0dExEQWwwGX1UxPTycgIIC0tLQy886l5kpIymDga6sI8nFn0+PlH5RWWFTMJ+sO8/KPe8jIK6RuLS++GNed8ACFFBEoWSn84MGDNGjQAE9P/X8hf+6vXivl+fzWZoHiFGwDZD0vb2kfVxcrt/VowHf39aR+sDdHz+Yw5atfOZmhcSkiImZQQBGnkJZ96QNk/0p0sDdv3dQBiwVWJJykx3+WM+WrX0lOz62MMkVE5BIpoIhTKB2DcilTjC+mVZ0AZt3ehXZRgeQXFvPphiP0ezmOD1YfoLCouMLPLyL2b9asWectPPpHTz75JO3atfvLc2677TauueaaSqurvP5Yo9n1lMdlL3UvYk/KswbKpejdtDa9moSw8fBZ/v3dLrYcSeXZ73bxRfxRXri2DW3qBlbKzxER5/b666+X2UG9T58+tGvXjtdee80u6rFnakERh5adX0hCUka51kC5VBaLhc71g/hqfHeeH9maQG83didlcPfH8Q7zP7iInK86N6cNCAi4aEtMdbK3ev6KAoo4tKcX7GTga6t4Z8V+APw9Ky+glLJaLdzQJZqlk3sDkJSey9ls7YQsYhgG2fmFptzK80dCnz59mDhxIpMmTSIkJISBAwfyyiuv0Lp1a3x8fIiKiuKee+4hMzPzvMd+/fXXNGnSBE9PTwYOHHjBrVbeffddoqKi8Pb25rrrriMtLc127PddKrfddhtxcXG8/vrrWCwWLBYLhw4
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2020-10-19 11:14:48 +00:00
"alive = analysis.get_value(df, 'rabbits_alive', aggfunc='sum').apply(pd.to_numeric)\n",
2017-10-18 18:28:42 +00:00
"alive.plot()"
]
},
{
"cell_type": "code",
2023-03-23 13:49:09 +00:00
"execution_count": 39,
2017-10-18 18:28:42 +00:00
"metadata": {
"ExecuteTime": {
"end_time": "2017-10-19T16:00:58.815038Z",
"start_time": "2017-10-19T18:00:58.566807+02:00"
2020-10-19 11:14:48 +00:00
}
2018-05-04 08:01:49 +00:00
},
2020-10-19 11:14:48 +00:00
"outputs": [
{
"data": {
2023-03-23 13:49:09 +00:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAGwCAYAAACD0J42AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAADUIklEQVR4nOzdd1xV9f/A8de5Fy57DxFFEEVFXOBEc+TCPcvKRWX2yzRtODLNJDMbWqmVafl1m5mlJuLOvbcISoIMB0PZe9x7f39cuXrFwUWW8Hk+Hvch95zPOed9rnDv+36mpFar1QiCIAiCIFQisooOQBAEQRAE4WEiQREEQRAEodIRCYogCIIgCJWOSFAEQRAEQah0RIIiCIIgCEKlIxIUQRAEQRAqHZGgCIIgCIJQ6RhUdAAloVKpuH37NhYWFkiSVNHhCIIgCIJQDGq1mvT0dJydnZHJnlxH8lwmKLdv38bFxaWiwxAEQRAEoQRu3LhB7dq1n1jmuUxQLCwsAM0NWlpaVnA0giAIgiAUR1paGi4uLtrP8Sd5LhOUwmYdS0tLkaAIgiAIwnOmON0zRCdZQRAEQRAqHZGgCIIgCIJQ6YgERRAEQRCESue57IMiCILwvFIqleTn51d0GIJQJgwNDZHL5aVyLpGgCIIglAO1Wk1cXBwpKSkVHYoglClra2ucnJyeeZ4ykaAIgiCUg8LkxNHRE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UVFRmJubY2try+zZs2nZsiVeXl7k5uYSGBiokwQ9joeHBzExMWzYsIHWrVuzfft2Nm/erPfrMWLECPr160d
2020-10-19 11:14:48 +00:00
"text/plain": [
2023-03-23 13:49:09 +00:00
"<Figure size 640x480 with 1 Axes>"
2020-10-19 11:14:48 +00:00
]
},
2023-03-23 13:49:09 +00:00
"metadata": {},
2020-10-19 11:14:48 +00:00
"output_type": "display_data"
}
],
2017-10-18 18:28:42 +00:00
"source": [
2023-03-23 13:49:09 +00:00
"h = pd.concat([alive, states]);\n",
2017-10-18 18:28:42 +00:00
"h.plot();"
]
}
],
"metadata": {
"kernelspec": {
2023-03-23 13:49:09 +00:00
"display_name": "venv-soil",
2017-10-18 18:28:42 +00:00
"language": "python",
2023-03-23 13:49:09 +00:00
"name": "venv-soil"
2017-10-18 18:28:42 +00:00
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
2023-03-23 13:49:09 +00:00
"version": "3.8.10"
2017-10-18 18:28:42 +00:00
},
"toc": {
"colors": {
"hover_highlight": "#DAA520",
"navigate_num": "#000000",
"navigate_text": "#333333",
"running_highlight": "#FF0000",
"selected_highlight": "#FFD700",
"sidebar_border": "#EEEEEE",
"wrapper_background": "#FFFFFF"
},
"moveMenuLeft": true,
"nav_menu": {
"height": "31px",
"width": "252px"
},
"navigate_menu": true,
"number_sections": true,
"sideBar": true,
"threshold": 4,
"toc_cell": false,
"toc_position": {
"height": "867px",
"left": "0px",
"right": "1670px",
"top": "106px",
"width": "250px"
},
"toc_section_display": "block",
2018-05-04 08:01:49 +00:00
"toc_window_display": false,
2017-10-18 18:28:42 +00:00
"widenNotebook": false
}
},
"nbformat": 4,
"nbformat_minor": 2
}