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

Method __init__

monai/auto3dseg/analyzer.py:322–329  ·  view source on GitHub ↗
(self, image_key: str, label_key: str, stats_name: str = DataStatsKeys.FG_IMAGE_STATS)

Source from the content-addressed store, hash-verified

320 """
321
322 def __init__(self, image_key: str, label_key: str, stats_name: str = DataStatsKeys.FG_IMAGE_STATS):
323 self.image_key = image_key
324 self.label_key = label_key
325
326 report_format = {ImageStatsKeys.INTENSITY: None}
327
328 super().__init__(stats_name, report_format)
329 self.update_ops(ImageStatsKeys.INTENSITY, SampleOperations())
330
331 @torch.no_grad()
332 def __call__(self, data: Mapping) -> dict:

Callers

nothing calls this directly

Calls 3

SampleOperationsClass · 0.90
update_opsMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected