MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / evaluate

Method evaluate

monai/auto3dseg/operations.py:144–152  ·  view source on GitHub ↗

Applies the callables to the data, and convert the numerics to list or Python numeric types (int/float). Args: data: input data

(self, data: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

142 }
143
144 def evaluate(self, data: Any, **kwargs: Any) -> dict:
145 """
146 Applies the callables to the data, and convert the numerics to list or Python
147 numeric types (int/float).
148
149 Args:
150 data: input data
151 """
152 return {k: v(data[k], **kwargs).tolist() for k, v in self.data.items() if (callable(v) and k in data)}

Callers 1

Calls

no outgoing calls

Tested by 1