MCPcopy Create free account
hub / github.com/amazon-science/patchcore-inspection / __init__

Method __init__

src/patchcore/sampler.py:17–20  ·  view source on GitHub ↗
(self, percentage: float)

Source from the content-addressed store, hash-verified

15
16class BaseSampler(abc.ABC):
17 def __init__(self, percentage: float):
18 if not 0 < percentage < 1:
19 raise ValueError("Percentage value not in (0, 1).")
20 self.percentage = percentage
21
22 @abc.abstractmethod
23 def run(

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected