toolbox.map(toolbox.evaluate, zip(invalid_ind, [True]*len(invalid_ind)))Will pass a tuple like
(individual, bool) to evaluate for each individual. To be clear
[True]*len(invalid_ind) is creating a list of True with same length as
invalid_ind to easily pair via zip. To explain,
python's zip function "Make(s) an iterator that aggregates elements from each of the iterables.". You can also '
unzip',
zip(*) , which is handy in python for returning values in a similar fashion.
To call a single item, you will need to pass a single tuple/item for the input, for example:
toolbox.evaluate( (hallofame[0], True) )