The whole stacktrace looks like this:
TypeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_22208\1574861451.py in <module>
16 on_generation=callback_generation)
17
---> 18 ga_instance.run()
19
20 ga_instance.plot_fitness()
D:\Anaconda\lib\site-packages\pygad\pygad.py in run(self)
1833 raise TypeError("The output of the mutation step is expected to be of type (numpy.ndarray) but {last_generation_offspring_mutation_type} found.".format(last_generation_offspring_mutation_type=type(self.last_generation_offspring_mutation)))
1834 else:
-> 1835 self.last_generation_offspring_mutation = self.mutation(self.last_generation_offspring_crossover)
1836
1837 if self.last_generation_offspring_mutation.shape != (self.num_offspring, self.num_genes):
D:\Anaconda\lib\site-packages\pygad\utils\mutation.py in adaptive_mutation(self, offspring)
466 else:
467 # When the attribute 'gene_space' does not exist (i.e. None), the mutation values are selected randomly based on the continuous range specified by the 2 attributes 'random_mutation_min_val' and 'random_mutation_max_val'.
--> 468 offspring = self.adaptive_mutation_probs_randomly(offspring)
469
470 return offspring