Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 2.69 KB

File metadata and controls

26 lines (19 loc) · 2.69 KB

Local Stochastic Gates Model Example (Supervised)

  • Single-file python script that defines and trains Local STG NNet with Linear classifier
  • Here we use MNIST subset (first 10K samples for train set and first 1K samples for test)
  • The hyperparameters were not tuned to the best, you can try to modify LocalSTG hidden dimension (the dafault is 128), regularization loss term multiplier (the dafault is 0.5) or Trainer arguments.

Samples (Test ACC 86.5% on 1K subset):

Original Image Sparse Image

Citations: