DeepArchitect: Automatically Designing and Training Deep Architectures