Physics-based machine learning algorithm applied to biomolecule design