Modern machine-learning tools for crystallography