module documentation
Base evaluation methods.
Class |
|
Base class for evaluation results that expose classification metrics like P/R/F1 and confusion matrices. |
Class |
|
Base class for evaluation methods. |
Class |
|
Base class for configuring evaluation methods. |
Class |
|
Base class for evaluation results. |
Function | get |
Returns the view into the given collection specified by the subset definition. |
Variable | foo |
Undocumented |
Variable | foue |
Undocumented |
Variable | logger |
Undocumented |
Function | _compute |
Undocumented |
Function | _compute |
Undocumented |
Function | _compute |
Undocumented |
Function | _parse |
Undocumented |
Function | _print |
Undocumented |
Returns the view into the given collection specified by the subset definition.
Example subset definitions:
# Subset defined by a saved view subset_def = { "type": "view", "view": "night_view", } # Subset defined by a sample field value subset_def = { "type": "sample", "field": "timeofday", "value": "night", } # Subset defined by a sample field expression subset_def = { "type": "field", "expr": F("uniqueness") > 0.75, } # Subset defined by a label attribute value subset_def = { "type": "attribute", "field": "type", "value": "sedan", } # Subset defined by a label expression bbox_area = F("bounding_box")[2] * F("bounding_box")[3] subset_def = { "type": "attribute", "expr": (0.05 <= bbox_area) & (bbox_area <= 0.5), } # Compound subset defined by a sample field value + sample expression subset_def = [ { "type": "field", "field": "timeofday", "value": "night", }, { "type": "field", "expr": F("uniqueness") > 0.75, }, ] # Compound subset defined by a sample field value + label expression bbox_area = F("bounding_box")[2] * F("bounding_box")[3] subset_def = [ { "type": "field", "field": "timeofday", "value": "night", }, { "type": "attribute", "expr": (0.05 <= bbox_area) & (bbox_area <= 0.5), }, ] # Compound subset defined by a saved view + label attribute value subset_def = [ { "type": "view", "view": "night_view", }, { "type": "attribute", "field": "type", "value": "sedan", } ]
Parameters | |
sample | a
fiftyone.core.collections.SampleCollection |
gt | the ground truth field |
subset | a dict or list of dicts defining the subset. See above for syntax and examples |
Returns | |
a fiftyone.core.view.DatasetView |