original_docstring: 
      Apply mutation function to percentage of the population
      
docstring: Apply mutation function to percentage of the population
docstring_tokens: Apply mutation function to percentage of the population
code: def pop_mutation(pop, mut_fun, mut_perc):
      """
      Apply mutation function to percentage of the population
      """
      sel = np.random.choice(len(pop), int(len(pop) * mut_perc), replace = False)
      pop[sel] = np.apply_along_axis(mut_fun, 1, pop[sel])
      return pop
code_tokens: def pop_mutation ( pop , mut_fun , mut_perc ) : sel = np . random . choice ( len ( pop ) , int ( len ( pop ) * mut_perc ) , replace = False ) pop [ sel ] = np . apply_along_axis ( mut_fun , 1 , pop [ sel ] ) return pop
short_docstring: Apply mutation function to percentage of the population
short_docstring_tokens: Apply mutation function to percentage of the population
comment: """
      Apply mutation function to percentage of the population
      """