machine learning optimization using genetic algorithm