Giter Club home page Giter Club logo

mapsimilaritypython's Introduction

MapSimilarityPython

An app for calculating parameters for cities such as "average street length" or "average distance between buildings", and then allowing to calculate similarity for cities and whole regions. For assessing similarity Euclidean distance, and silhouette score are used. Multidimensional parameters calculated for the cities are reduced to two dimensions in order to plot them, or to one dimension to colour the contours of the cities on the map, with similar colors denoting similar cities. Dimensions are reduced using PCA algorithm.

example_calculations

  • functions.py and graphFunctions.py - contain functions for calculating parameters for a given city
  • experiments.py - groups functions into "profiles" that can be used to better understand similarities or differences between cities
  • scores.py - calculates parameters for given cities and citeria using multiple threads. Output is returned as a DataFrame
  • pca.py - contains functions for PCA algorithm
  • svm.py - contains functions for SVM algorithm. It was used to validate if SVM algorithm would be able to distinguish compared regions.
  • similarity.py - contains functions for calculating similarity based on different metrics and for calculating silhouette score.
  • cities_similarity_app.ipynb - Jupyter file for running comparison experiments
  • docker-compose.yml - docker compose file for setting up local OpenStreetMap database, Overpass API and the app.

On the two dimensional plot each point is a different city. Points with the same colour are from the same region. england_france_plot england_france_map

mapsimilaritypython's People

Contributors

brestmoor avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.