Demo entry 3829988

Exemplo tal


Submitted by anonymous on Mar 01, 2016 at 22:29
Language: Python. Code size: 408 Bytes.

class MyPerceptronLayer(nnb.Model):

    def init_options():
        return declare_options()

    def init_params(self):
        return declare_parameters(self)

    def apply(self, prev):
        W = self.params[0]
        b = self.params[1]
        inp = prev[0]
        activation_func = self.options.get('activation_func')
        return [activation_func( + b)]

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).