Fast and adaptive protein structure representations for machine learning