Machine learning method speeds up discovery of green energy