Machine learning enabled scientists to rapidly screen thousands of molecules to find a new antibacterial compound.