MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/data/augmentation.py:180–184  ·  view source on GitHub ↗
(self, probability: float = 0.5, sl: float = 0.02, sh: float = 0.4, r1: float = 0.3)

Source from the content-addressed store, hash-verified

178
179class RandomErasing:
180 def __init__(self, probability: float = 0.5, sl: float = 0.02, sh: float = 0.4, r1: float = 0.3):
181 self.probability = probability
182 self.sl = sl
183 self.sh = sh
184 self.r1 = r1
185
186 def __call__(self, img):
187 if random.uniform(0, 1) >= self.probability:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected