Demo entry 6364676

code

   

Submitted by anonymous on May 16, 2017 at 18:18
Language: Python 3. Code size: 258 Bytes.

    def _initialize_weights(self):
        for i in range(len(self.layer_sizes) - 1):
            weights_t = np.random.randn(self.layer_sizes[i],
                                        self.layer_sizes[i + 1])
            self.weights.append(weights_t)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).