Deep learning with theanets