Skip to content

jsvir/lstg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Local Stochastic Gates Model Example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages