Exponential Family Harmoniums with an Application to Information Retrieval