Skip to main content
. 2019 Sep 16;3(3):47. doi: 10.3390/vision3030047
Algorithm 2 Homeostatic Unsupervised Learning of Kernels: Φ=H(y;η,ηh,N0)
  • 1:

    Initialize the point nonlinear gain functions zi to similar cumulative distribution functions,

  • 2:

    Initialize N atoms Φi to random points on the M-unit sphere,

  • 3:

    forT epochs do:

  • 4:

     draw a new batch y from the database of natural images,

  • 5:

    for each data point yk do:

  • 6:

      compute the sparse representation vector using sparse coding ak=S(yk;Ψ={Φ,z,N0}),

  • 7:

      modify atoms: i,ΦiΦi+η·ak,i·(ykΦak),

  • 8:

      normalize atoms: i,ΦiΦi/||Φi||,

  • 9:

       update homeostasis functions: i,zi(·)(1ηh)·zi(·)+ηh·δ(ak,i·).