MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / __init__

Method __init__

mla/neuralnet/layers/basic.py:113–115  ·  view source on GitHub ↗
(self, p=0.1)

Source from the content-addressed store, hash-verified

111 """Randomly set a fraction of `p` inputs to 0 at each training update."""
112
113 def __init__(self, p=0.1):
114 self.p = p
115 self._mask = None
116
117 def forward_pass(self, X):
118 assert self.p > 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected