original_docstring: Parameter updation.
  
          Variables:
              coef_*: the result of partial differentiation over squared loss.
              nabra_*: the result of partial differentiation over loss function.
          
docstring: Parameter updation.
  Variables:
  coef_*: the result of partial differentiation over squared loss.
  nabra_*: the result of partial differentiation over loss function.
docstring_tokens: Parameter updation . Variables : coef_ * : the result of partial differentiation over squared loss . nabra_ * : the result of partial differentiation over loss function .
code: def _update_params(self,
                         err: DTYPE,
                         eind: int,
                         cinds: List[int],
                         x: np.ndarray,
                         d: List[np.ndarray],
                         ps: np.ndarray) -> None:
          """Parameter updation.
  
          Variables:
              coef_*: the result of partial differentiation over squared loss.
              nabra_*: the result of partial differentiation over loss function.
          """
          # convert list of ndarray to 2-d ndarray
          darr: np.ndarray = np.array(d, dtype=DTYPE)
          # w
          nabra_w = np.multiply(err, x) + np.multiply(self.l2_w, self.w)
          # u
          coef_u = Diff.p_Iec_u(eind, cinds, self.Ve, self.Vc, darr, ps)
          nabra_u = np.multiply(err, coef_u) + np.multiply(self.l2_u, self.u)
          # Ve
          coef_Ve = Diff.p_Iec_ve(cinds, self.Vc, ps) + Diff.Ief_ve(x, self.Vf)
          nabra_Ve = np.multiply(err, coef_Ve) + np.multiply(self.l2_V, self.Ve[eind])
          # Vf
          coef_Vf = Diff.Ief_vf(eind, x, self.Ve) + Diff.Iff_vf(x, self.Vf)
          nabra_Vf = np.multiply(err, coef_Vf) + np.multiply(self.l2_V, self.Vf)
          # Vc & update
          for proba, cind in zip(ps, cinds):
              coef_Vc = Diff.p_Iec_vc(eind, self.Ve, proba)
              nabra_Vc = np.multiply(err, coef_Vc) + np.multiply(self.l2_V, self.Vc[cind])
              self.Vc[cind] -= np.multiply(self.eta, nabra_Vc)
          # update other params
          self.b -= self.eta * err * DTYPE(1.)
          self.w -= np.multiply(self.eta, nabra_w)
          self.u -= np.multiply(self.eta, nabra_u)
          self.Ve[eind] -= np.multiply(self.eta, nabra_Ve)
          self.Vf -= np.multiply(self.eta, nabra_Vf)
code_tokens: def _update_params ( self , err : DTYPE , eind : int , cinds : List [ int ] , x : np . ndarray , d : List [ np . ndarray ] , ps : np . ndarray ) -> None : darr : np . ndarray = np . array ( d , dtype = DTYPE ) nabra_w = np . multiply ( err , x ) + np . multiply ( self . l2_w , self . w ) coef_u = Diff . p_Iec_u ( eind , cinds , self . Ve , self . Vc , darr , ps ) nabra_u = np . multiply ( err , coef_u ) + np . multiply ( self . l2_u , self . u ) coef_Ve = Diff . p_Iec_ve ( cinds , self . Vc , ps ) + Diff . Ief_ve ( x , self . Vf ) nabra_Ve = np . multiply ( err , coef_Ve ) + np . multiply ( self . l2_V , self . Ve [ eind ] ) coef_Vf = Diff . Ief_vf ( eind , x , self . Ve ) + Diff . Iff_vf ( x , self . Vf ) nabra_Vf = np . multiply ( err , coef_Vf ) + np . multiply ( self . l2_V , self . Vf ) for proba , cind in zip ( ps , cinds ) : coef_Vc = Diff . p_Iec_vc ( eind , self . Ve , proba ) nabra_Vc = np . multiply ( err , coef_Vc ) + np . multiply ( self . l2_V , self . Vc [ cind ] ) self . Vc [ cind ] -= np . multiply ( self . eta , nabra_Vc ) self . b -= self . eta * err * DTYPE ( 1. ) self . w -= np . multiply ( self . eta , nabra_w ) self . u -= np . multiply ( self . eta , nabra_u ) self . Ve [ eind ] -= np . multiply ( self . eta , nabra_Ve ) self . Vf -= np . multiply ( self . eta , nabra_Vf )
short_docstring: Parameter updation.
short_docstring_tokens: Parameter updation .
comment: """Parameter updation.
  
          Variables:
              coef_*: the result of partial differentiation over squared loss.
              nabra_*: the result of partial differentiation over loss function.
          """$SEP$# convert list of ndarray to 2-d ndarray$SEP$# w$SEP$# u$SEP$# Ve$SEP$# Vf$SEP$# Vc & update$SEP$# update other params