Spaces:
Sleeping
Sleeping
Rodrigo Ferreira Rodrigues commited on
Commit ·
a2f0878
1
Parent(s): d023c7f
Updating Readme.md
Browse files
README.md
CHANGED
|
@@ -17,34 +17,48 @@ pinned: false
|
|
| 17 |
***Module Card Instructions:*** *Fill out the following subsections. Feel free to take a look at existing metric cards if you'd like examples.*
|
| 18 |
|
| 19 |
## Metric Description
|
| 20 |
-
|
| 21 |
|
| 22 |
## How to Use
|
| 23 |
-
|
| 24 |
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
-
### Inputs
|
| 28 |
-
*List all input arguments in the format below*
|
| 29 |
-
- **input_field** *(type): Definition of input, with explanation if necessary. State any default value(s).*
|
| 30 |
|
| 31 |
### Output Values
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
-
|
| 36 |
|
| 37 |
#### Values from Popular Papers
|
| 38 |
-
|
| 39 |
|
| 40 |
### Examples
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
## Limitations and Bias
|
| 44 |
-
|
| 45 |
|
| 46 |
## Citation
|
| 47 |
-
|
| 48 |
|
| 49 |
## Further References
|
| 50 |
-
*Add any useful further references.*
|
|
|
|
| 17 |
***Module Card Instructions:*** *Fill out the following subsections. Feel free to take a look at existing metric cards if you'd like examples.*
|
| 18 |
|
| 19 |
## Metric Description
|
| 20 |
+
Coordinates Accuracy aims to evaluate model performance in coordinates prediction tasks where the model has to predict a coordinate of a geographic entity in the form **(__lat__, __long__)**. It checks if the coordinates generated are inside a circle of radius __d__ and centered at gold coordinates.
|
| 21 |
|
| 22 |
## How to Use
|
| 23 |
+
This metric takes 2 mandatory arguments : `generations` (a list of string of generated coordinates), `golds` (a list of list of floats of gold coordinates)
|
| 24 |
|
| 25 |
+
```python
|
| 26 |
+
import evaluate
|
| 27 |
+
coord_acc = evaluate.load("rfr2003/coord_eval")
|
| 28 |
+
results = coord_acc.compute(generations=["(12.7, 67.8)", "(16.7, 89.6)"], golds=[[12.7, 67.8], [10.9, 80.6]], d_range=20)
|
| 29 |
+
print(results)
|
| 30 |
+
{'coord_accuracy': 0.5}
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
This metric also accepts an optional argument:
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
`d` (int): Radius of the circle. The default value is `20`.
|
| 37 |
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
### Output Values
|
| 40 |
|
| 41 |
+
This metric outputs a dictionary with the following values:
|
| 42 |
|
| 43 |
+
`coord_accuracy`: The coordinates accuracy between `generations` and `golds`, which ranges from 0.0 to 1.0.
|
| 44 |
|
| 45 |
#### Values from Popular Papers
|
| 46 |
+
|
| 47 |
|
| 48 |
### Examples
|
| 49 |
+
|
| 50 |
+
```python
|
| 51 |
+
import evaluate
|
| 52 |
+
coord_acc = evaluate.load("rfr2003/coord_eval")
|
| 53 |
+
results = coord_acc.compute(generations=["(12.7, 67.8)", "(16.7, 89.6)"], golds=[[12.7, 67.8], [10.9, 80.6]], d_range=20)
|
| 54 |
+
print(results)
|
| 55 |
+
{'coord_accuracy': 0.5}
|
| 56 |
+
```
|
| 57 |
|
| 58 |
## Limitations and Bias
|
| 59 |
+
|
| 60 |
|
| 61 |
## Citation
|
| 62 |
+
|
| 63 |
|
| 64 |
## Further References
|
|
|