Interaction – interaction module

In this module, you will find the funcionality for the Interactive mode. When you enter in the Interactive Mode, Pyevolve will automatic import this module and exposes to you in the name space called “it”.

To use this mode, the parameter interactiveMode must be enabled in the GSimpleGA.GSimpleGA.

Interaction.getPopScores(population, fitness=False)

Returns a list of population scores

Example:
>>> lst = Interaction.getPopScores(population)
Parameters:
  • population – population object (GPopulation.GPopulation)
  • fitness – if is True, the fitness score will be used, otherwise, the raw.
Return type:

list of population scores

Interaction.plotHistPopScore(population, fitness=False)

Population score distribution histogram

Example:
>>> Interaction.plotHistPopScore(population)
Parameters:
  • population – population object (GPopulation.GPopulation)
  • fitness – if is True, the fitness score will be used, otherwise, the raw.
Return type:

None

Interaction.plotPopScore(population, fitness=False)

Plot the population score distribution

Example:
>>> Interaction.plotPopScore(population)
Parameters:
  • population – population object (GPopulation.GPopulation)
  • fitness – if is True, the fitness score will be used, otherwise, the raw.
Return type:

None


Recent Blog Posts

Previous topic

Util – utility module

Next topic

DBAdapters – database adapters for statistics

This Page