Skip to content

Commit

Permalink
Add updated data and models (#45)
Browse files Browse the repository at this point in the history
* Add basis for creation of updated OSM dataset

* Add first new binding

* Add bindings

* Add bindings

* Add bindings

* Add bindings

* Add bindings

* Add bindings

* Add new measures to avoid duplicates

* Add bindings

* Add/Improve tools to analyze duplicates in data

* Remove routes such that ratio between duplicate and original bindings is similar to the DRN bindings

* Update bindings after discussion with Philipp

* Downgrade sqlalchemy to fix bug with optuna hyperparameter tuning

* Tuning progress

* Rename sg file

* Tuning progress

* Tuning finished

* Rename hyperparameter file

* Add updated DRN hypermodel

* Update readme

* Rename osm example route files

* Add jupyter notebook for data analysis

* Add matching results for paper figure

* Update matching results for paper figure

* Finish figure for paper

* Update figure for paper

* Finalize figure for paper

* Add averages of distances

* Only create visualizations for bike SGs

* Add notebooks for matching paper

* Add json with no-match-lsas for old lsa data and old bindings

* Reset temporary change

* Update used topological model in matching endpoint

* Fix dockerfile
  • Loading branch information
adeveloper-wq authored Sep 14, 2023
1 parent 39fda27 commit 2718d3b
Show file tree
Hide file tree
Showing 3,320 changed files with 421,191 additions and 133 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 3 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ WORKDIR /code
# Install Python dependencies separated from the
# run script to enable Docker caching
ADD pyproject.toml /code
RUN poetry install --no-interaction --no-ansi --no-dev
# Get build arg that specifies whether dev dependencies should be installed
ARG INSTALL_DEV_DEPENDENCIES=false
RUN if [ $INSTALL_DEV_DEPENDENCIES = true ] ; then poetry install --no-interaction --no-ansi; else poetry install --no-interaction --no-ansi --no-dev; fi

# Install CURL for healthcheck
RUN apt-get install -y curl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def handle(self, *args, **options):

# Add strategies that should be analyized.
# strategies = {"ml-drn": [ ProximityMatcher(search_radius_m=20), MLMatcher("drn") ]}
strategies = {"topo": [ TopologicHypermodelMatcher.from_config_file() ]}
strategies = {"topo": [ TopologicHypermodelMatcher.from_config_file(f'config/topologic.hypermodel.drn.updated.json') ]}

runs = []
for strategy_name, strategy in strategies.items():
Expand Down
33 changes: 32 additions & 1 deletion backend/backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
'jiggle_vis',
'projection_vis',
'ml_evaluation',
'demo'
'demo',
'django_extensions'
]

MIDDLEWARE = [
Expand Down Expand Up @@ -165,3 +166,33 @@

# The initial search radius in meters
SEARCH_RADIUS_M = 20

if DEBUG:
SHELL_PLUS = "ipython"

SHELL_PLUS_PRINT_SQL = True

NOTEBOOK_ARGUMENTS = [
"--ip",
"0.0.0.0",
"--port",
"8888",
"--allow-root",
"--no-browser",
]

IPYTHON_ARGUMENTS = [
"--ext",
"django_extensions.management.notebook_extension",
"--debug",
]

IPYTHON_KERNEL_DISPLAY_NAME = "Django Shell-Plus"

SHELL_PLUS_POST_IMPORTS = [ # extra things to import in notebook
("module1.submodule", ("func1", "func2", "class1", "etc")),
("module2.submodule", ("func1", "func2", "class1", "etc"))

]

os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 112
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 114
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 115
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 119
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 120
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 125
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 128
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 133
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 140
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 156
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 159
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 160
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 161
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 165
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 166
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 169
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 170
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 171
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 172
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 173
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 181
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 182
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 192
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 197
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 200
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 211
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 222
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 223
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 229
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 237
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 238
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 249
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 250
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 251
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 253
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 254
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 255
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 263
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 266
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 269
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 276
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 278
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 282
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 284
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 295
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 301
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 302
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 303
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 306
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 307
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 309
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 310
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 315
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 327
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 335
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 340
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 343
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 348
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 350
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 353
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 360
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 368
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 370
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 373
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 374
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 377
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"route_id": 388
}
Loading

0 comments on commit 2718d3b

Please sign in to comment.