Module evalfitness
[hide private]
[frames] | no frames]

Module evalfitness

source code

evalfitness

Contains methods to evaluate the fitness of a tree.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Author: by Mehdi Khoury

Version: 1.20

Copyright: (c) 2009 Mehdi Khoury under the mit license http://www.opensource.org/licenses/mit-license.html

Contact: mehdi.khoury at gmail.com

Functions [hide private]
 
EvalTreeForOneInputSet(myTree, input_set_ref)
Function used to evaluate a tree by pluggin in one set of values (one learning example)
source code
 
EvalTreeForOneListInputSet(myTree)
Function used to evaluate a tree by pluggin in one list of values (one list of data points)
source code
 
EvalTreeForOneListInputSet_tutorial8(myTree)
Function used to evaluate a tree by pluggin in one list of values (one list of data points)
source code
 
EvalTreeForOneListInputSet_tutorial9(myTree)
Function used to evaluate a tree by pluggin in one list of values (one list of data points)
source code
 
EvalTreeForAllInputSets(myTree, input_sets)
Function used to evaluate a tree by pluggin in several sets of values
source code
 
FinalFitness(intermediate_outputs)
Compute global fitness of an individual.
source code
 
FinalFitness2(intermediate_outputs)
Compute global fitness of an individual.
source code
 
FinalFitness3(intermediate_outputs)
Compute global fitness of an individual.
source code
 
FinalFitness4(intermediate_outputs)
Compute global fitness of an individual.
source code
 
FinalFitness_tutorial8(intermediate_outputs)
Compute global fitness of an individual.
source code
 
FinalFitness_tutorial9(intermediate_outputs)
Compute global fitness of an individual.
source code
Variables [hide private]
  __package__ = None
Function Details [hide private]

EvalTreeForOneInputSet(myTree, input_set_ref)

source code 

Function: EvalTreeForOneInputSet

Function used to evaluate a tree by pluggin in one set of values (one learning example)

Parameters:
  • myTree - the nested list representing a tree
  • input_set_ref - the set of values to plug into the tree
Returns:
the fitness of the tree for this set of values

EvalTreeForOneListInputSet(myTree)

source code 

Function: EvalTreeForOneInputSet

Function used to evaluate a tree by pluggin in one list of values (one list of data points)

Parameters:
  • myTree - the nested list representing a tree
Returns:
the fitness of the tree for this set of values

EvalTreeForOneListInputSet_tutorial8(myTree)

source code 

Function: EvalTreeForOneInputSet2

Function used to evaluate a tree by pluggin in one list of values (one list of data points)

Parameters:
  • myTree - the nested list representing a tree
Returns:
the fitness of the tree for this set of values

EvalTreeForOneListInputSet_tutorial9(myTree)

source code 

Function: EvalTreeForOneInputSet2

Function used to evaluate a tree by pluggin in one list of values (one list of data points)

Parameters:
  • myTree - the nested list representing a tree
Returns:
the fitness of the tree for this set of values

EvalTreeForAllInputSets(myTree, input_sets)

source code 

Function: EvalTreeForAllInputSets

Function used to evaluate a tree by pluggin in several sets of values

Parameters:
  • myTree - the nested list representing a tree
  • input_sets - the set of values to plug into the tree
Returns:
the fitnesses of the tree over several sets of values

FinalFitness(intermediate_outputs)

source code 

Function: FinalFitness

Compute global fitness of an individual. Intended when wanting to refine the fitness score.

Parameters:
  • intermediate_outputs - the fitnesses of the tree over several sets of values
Returns:
global fitness

FinalFitness2(intermediate_outputs)

source code 

Function: FinalFitness2

Compute global fitness of an individual. Intended when wanting to refine the fitness score.

Parameters:
  • intermediate_outputs - the fitnesses of the tree over several sets of values
Returns:
global fitness

FinalFitness3(intermediate_outputs)

source code 

Function: FinalFitness3

Compute global fitness of an individual. Intended when wanting to refine the fitness score.

Parameters:
  • intermediate_outputs - the fitnesses of the tree over several sets of values
Returns:
global fitness

FinalFitness4(intermediate_outputs)

source code 

Function: FinalFitness3

Compute global fitness of an individual. Intended when wanting to refine the fitness score.

Parameters:
  • intermediate_outputs - the fitnesses of the tree over several sets of values
Returns:
global fitness

FinalFitness_tutorial8(intermediate_outputs)

source code 

Function: FinalFitness3

Compute global fitness of an individual. Intended when wanting to refine the fitness score.

Parameters:
  • intermediate_outputs - the fitnesses of the tree over several sets of values
Returns:
global fitness

FinalFitness_tutorial9(intermediate_outputs)

source code 

Function: FinalFitness3

Compute global fitness of an individual. Intended when wanting to refine the fitness score.

Parameters:
  • intermediate_outputs - the fitnesses of the tree over several sets of values
Returns:
global fitness