MCPcopy Index your code
hub / github.com/MingchaoZhu/DeepLearning / _init_params

Method _init_params

code/chapter6.py:96–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 self.is_initialized = False # 是否初始化, bool型变量
95
96 def _init_params(self):
97 b = np.zeros((1, self.n_out))
98 W = self.init_weights((self.n_in, self.n_out))
99 self.params = {"W": W, "b": b}
100 self.gradients = {"W": np.zeros_like(W), "b": np.zeros_like(b)}
101 self.derived_variables = {"Z": []}
102 self.is_initialized = True
103
104 def forward(self, X, retain_derived=True):
105 """

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected