Precision and recall (precision_recall
)#
Calculate the precision/recall of an estimated segmentation compared with the true segmentation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
true_bkps |
list
|
list of the last index of each regime (true partition). |
required |
my_bkps |
list
|
list of the last index of each regime (computed partition). |
required |
margin |
int
|
allowed error (in points). |
10
|
Returns:
Name | Type | Description |
---|---|---|
tuple |
(precision, recall) |
Source code in ruptures/metrics/precisionrecall.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|