How molecules are encoded for machine learning — from SMILES strings and fingerprints to molecular graphs and learned embeddings.