Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amazon-science/patchcore-inspection
/ __init__
Method
__init__
src/patchcore/sampler.py:175–176 ·
view source on GitHub ↗
(self, percentage: float)
Source
from the content-addressed store, hash-verified
173
174
class
RandomSampler(BaseSampler):
175
def
__init__(self, percentage: float):
176
super().__init__(percentage)
177
178
def
run(
179
self, features: Union[torch.Tensor, np.ndarray]
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected