A simple sparse auto encoder implemented via C++