class documentation
Base class for evaluation metric operators.
Method | cleanup |
Cleans up the results of the evaluation metric with the given key from the collection. |
Method | compute |
Computes the evaluation metric for the given collection. |
Method | get |
Lists the fields that were populated by the evaluation metric with the given key, if any. |
Method | get |
Defines any necessary properties to collect this evaluation metric's parameters from a user during prompting. |
Method | parse |
Performs any necessary execution-time formatting to this evaluation metric's parameters. |
Method | rename |
Performs any necessary operations required to rename this evaluation metric's key. |
Inherited from Operator
:
Method | __init__ |
Undocumented |
Method | add |
Adds secrets to the operator. |
Method | execute |
Executes the operator. |
Method | method |
Converts a method name to a URI. |
Method | resolve |
Returns the resolved forced delegation flag. |
Method | resolve |
Returns the resolved execution options. |
Method | resolve |
Returns the resolved input property. |
Method | resolve |
Returns the resolved output property. |
Method | resolve |
Returns the resolved placement of the operator. |
Method | resolve |
Returns the resolved input or output property. |
Method | to |
Returns a JSON representation of the operator. |
Instance Variable | plugin |
Undocumented |
Property | builtin |
Whether the operator is builtin. |
Property | config |
The OperatorConfig for the operator. |
Property | name |
Undocumented |
Property | uri |
The unique identifier of the operator: plugin_name/operator_name. |
Instance Variable | _builtin |
Undocumented |
Instance Variable | _plugin |
Undocumented |
Cleans up the results of the evaluation metric with the given key from the collection.
Parameters | |
samples | a fiftyone.core.collections.SampleCollection |
config | an fiftyone.core.evaluation.EvaluationMethodConfig |
eval | an evaluation key |
Computes the evaluation metric for the given collection.
Parameters | |
samples | a fiftyone.core.collections.SampleCollection |
results | an fiftyone.core.evaluation.EvaluationResults |
**kwargs | arbitrary metric-specific parameters |
Returns | |
an optional aggregate metric value to store on the results |
Lists the fields that were populated by the evaluation metric with the given key, if any.
Parameters | |
samples | a fiftyone.core.collections.SampleCollection |
config | an fiftyone.core.evaluation.EvaluationMethodConfig |
eval | an evaluation key |
Returns | |
a list of fields |
Defines any necessary properties to collect this evaluation metric's parameters from a user during prompting.
Parameters | |
ctx | an fiftyone.operators.ExecutionContext |
inputs | a fiftyone.operators.types.Property |
Performs any necessary execution-time formatting to this evaluation metric's parameters.
Parameters | |
ctx | an fiftyone.operators.ExecutionContext |
params | a params dict |
Performs any necessary operations required to rename this evaluation metric's key.
Parameters | |
samples | a fiftyone.core.collections.SampleCollection |
config | an fiftyone.core.evaluation.EvaluationMethodConfig |
eval | an evaluation key |
new | a new evaluation key |