Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mapbox/gabbar
Guarding OpenStreetMap from harmful edits using machine learning
https://github.com/mapbox/gabbar
banished jupyter-notebook machine-learning openstreetmap scikit-learn vandalism
Last synced: 2 months ago
JSON representation
Guarding OpenStreetMap from harmful edits using machine learning
- Host: GitHub
- URL: https://github.com/mapbox/gabbar
- Owner: mapbox
- License: mit
- Created: 2017-01-30T16:48:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-22T18:05:29.000Z (about 5 years ago)
- Last Synced: 2024-10-01T14:59:28.448Z (3 months ago)
- Topics: banished, jupyter-notebook, machine-learning, openstreetmap, scikit-learn, vandalism
- Language: Jupyter Notebook
- Homepage:
- Size: 13 MB
- Stars: 19
- Watchers: 99
- Forks: 7
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gabbar
![](https://img.shields.io/pypi/v/gabbar.svg)
![](https://img.shields.io/circleci/project/github/mapbox/gabbar.svg)**EXPERIMENTAL: UNDER DEVELOPMENT**
Guarding OpenStreetMap from invalid or suspicious edits, Gabbar is an alpha package of a pre-trained binary problematic/not problematic classifier that was trained on manually labelled changesets from OpenStreetMap.
![](https://cloud.githubusercontent.com/assets/2899501/22643796/0a4a7878-ec86-11e6-9a97-fc63db1caab7.jpg)
https://en.wikipedia.org/wiki/Gabbar_Singh_(character)
## Installation
```bash
pip install gabbar
```## Setup
```bash
# Setup a virtual environment with Python 3.
mkvirtualenv --python=$(which python3) gabbar_py3# Install in locally editable (``-e``) mode.
pip install -e .[test]# Install node dependencies.
npm install
```## Prediction
```bash
# A prediction of "-1" represents that this feature is an anomaly (outlier).
gabbar 49172351
[
{
"attributes": {
"action_create": 0,
"action_delete": 0,
"action_modify": 1,
"area_of_feature_bbox": 109591.9146,
"feature_name_touched": 0,
"feature_version": 17,
"highway_tag_created": 41,
"highway_tag_deleted": 0,
"highway_value_difference": 0,
"length_of_longest_segment": 0.1577,
"primary_tags_difference": 1
},
"changeset_id": "49172351",
"feature_id": "124863896",
"feature_type": "way",
"prediction": -1,
"score": -0.1493,
"timestamp": "2017-07-10 10:33:02.925012",
"version": "0.6.2"
}
]
```## Testing
```bash
npm test
```## Hyperlinks
- [Validating and protecting OpenStreetMap](https://www.mapbox.com/blog/validating-osm/)
- [Preparing accurate history and caching changesets](https://www.openstreetmap.org/user/geohacker/diary/40846)
- [An open database of inconsistent edits observed on OSM from OSMCha](http://www.openstreetmap.org/user/manoharuss/diary/40118)