(self, force=False)
Initialize the essential attributes of the layer such as: outputs and activations. This function is automatically called before train/test etc...
Initialize the essential attributes of the layer such as: outputs and activations. This function is automatically called before train/test etc...
Initialize the essential attributes of the layer such as : outputs and activations . This function is automatically called before train / test etc ...
def initParameters(self, force=False) :
        """Initialize the essential attributes of the layer such as: outputs and activations. This function is automatically called before train/test etc..."""
        if force :
            self._initStatus = 0

        if ( self._initStatus == 0) or self._mustInit :
            self.logEvent("%s: initParameters" % (self.name))
            self.logEvent("%s: _whateverFirstInit" % (self.name))
            self._whateverFirstInit()
            self.logEvent("%s: setInputs" % (self.name))
            self.setInputs()
            self.logEvent("%s: _initParameters" % (self.name))
            self._initParameters()
            self.logEvent("%s: _parametersSanityCheck" % (self.name))
            self._parametersSanityCheck()
            self._initStatus = 1
def initParameters ( self , force = False ) : if force : self . _initStatus = 0 if ( self . _initStatus == 0 ) or self . _mustInit : self . logEvent ( "%s: initParameters" % ( self . name ) ) self . logEvent ( "%s: _whateverFirstInit" % ( self . name ) ) self . _whateverFirstInit ( ) self . logEvent ( "%s: setInputs" % ( self . name ) ) self . setInputs ( ) self . logEvent ( "%s: _initParameters" % ( self . name ) ) self . _initParameters ( ) self . logEvent ( "%s: _parametersSanityCheck" % ( self . name ) ) self . _parametersSanityCheck ( ) self . _initStatus = 1