mapbox / gabbar

Guarding OpenStreetMap from harmful edits using machine learning
MIT License
19 stars 7 forks source link

Much cleaner command for gabbar #28

Closed bkowshik closed 7 years ago

bkowshik commented 7 years ago

Example

$ gabbar 47734592
{"prediction": "good", "timestamp": "2017-04-26 01:05:00.441977", "version": "0.2.4"}
bkowshik commented 7 years ago

All features used by the model now part of the prediction, thank you @geohacker

$ gabbar 47734592
{
    "changeset": "47734592",
    "features": {
        "aerialway": 0,
        "aeroway": 0,
        "amenity": 1,
        "barrier": 0,
        "bbox_area": 0,
        "boundary": 0,
        "building": 0,
        "changeset_editor": "iD",
        "changeset_editor_JOSM": 0,
        "changeset_editor_MAPS.ME": 0,
        "changeset_editor_Merkaartor": 0,
        "changeset_editor_OsmAnd": 0,
        "changeset_editor_Potlatch": 0,
        "changeset_editor_Redaction bot": 0,
        "changeset_editor_Vespucci": 0,
        "changeset_editor_gnome": 0,
        "changeset_editor_iD": 1,
        "changeset_editor_other": 0,
        "changeset_id": "47734592",
        "craft": 0,
        "emergency": 0,
        "feature_version_high": 0,
        "feature_version_low": 0,
        "feature_version_medium": 0,
        "feature_version_new": 1,
        "features_created": 1,
        "features_deleted": 0,
        "features_modified": 0,
        "geological": 0,
        "geometry_modifications": 0,
        "highway": 0,
        "historic": 0,
        "landuse": 0,
        "leisure": 0,
        "man_made": 0,
        "military": 0,
        "natural": 0,
        "node_count": 1,
        "office": 0,
        "place": 0,
        "power": 0,
        "property_modifications": 0,
        "public_transport": 0,
        "railway": 0,
        "relation_count": 0,
        "route": 0,
        "shop": 0,
        "sport": 0,
        "tourism": 0,
        "user_changesets": 1,
        "user_features": 1,
        "user_first_edit": "1492071806",
        "user_id": 5662807,
        "user_name": "Bhuvan Anand",
        "waterway": 0,
        "way_count": 0
    },
    "prediction": "good",
    "timestamp": "2017-04-28 14:17:53.485951",
    "version": "0.2.4"
}