Learning Deep Architectures for AI