Representation Learning for Chemical Activity Predictions