Skip to content

Commit

Permalink
Merge pull request #45 from OvertureMaps/add-confidence-to-sources
Browse files Browse the repository at this point in the history
Add confidence to sources
  • Loading branch information
aluwihar authored Sep 7, 2023
2 parents 90020fd + 400031d commit d3ea409
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
23 changes: 23 additions & 0 deletions counterexamples/buildings/bad-confidence-in-source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
id: overture:buildings:footprint:1234
type: Feature
geometry:
type: Polygon
coordinates: [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]]
properties:
# Custom user properties.
extFoo: I am a customer user property.
extBar: Me too!
# Overture properties
theme: buildings
type: building
version: 1
updateTime: "2023-02-22T23:55:01-08:00"
height: 21.34
sources:
- property: ""
dataset: microsoftMLBuildings,
confidence: 100
- property: /properties/height
dataset: metaLidarExtractions,
confidence: -1
6 changes: 4 additions & 2 deletions examples/buildings/building-polygon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ properties:
class: civic
sources:
- property: ""
dataset: microsoftMLBuildings
dataset: microsoftMLBuildings,
confidence: 1
- property: /properties/height
dataset: metaLidarExtractions
dataset: metaLidarExtractions,
confidence: 0.95
5 changes: 5 additions & 0 deletions schema/defs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ description: Common schema definitions shared by all themes
recordId:
type: string
description: Refers to the specific record within the dataset that was used.
confidence:
description: If the source data has a confidence value, especially for ml-derived data, record that here.
type: number
minimum: 0
maximum: 1
theme:
description: Top-level Overture theme this feature belongs to
type: string
Expand Down

0 comments on commit d3ea409

Please sign in to comment.