nz.co.jedsimson.lgp.core.evolution.fitness

Package nz.co.jedsimson.lgp.core.evolution.fitness

Types

Evaluation

data class Evaluation<TProgram, TOutput : Output<TProgram>>

An evaluation of a program on a set of fitness cases.

FitnessCase

data class FitnessCase<out TData>

A case to evaluate a programs fitness on.

FitnessContext

abstract class FitnessContext<TData, TOutput : Output<TData>> : Module

Provides a way to map a program to fitness cases using a given fitness function.

FitnessEvaluator

class FitnessEvaluator<TData, TOutput : Output<TData>>

Provides a way to evaluate the fitness of a program.

FitnessFunction

abstract class FitnessFunction<TData, TOutput : Output<TData>>

Provides the functionality to compute the fitness of an individual program on a set of input-output examples.

FitnessFunctions

object FitnessFunctions

A collection of standard fitness functions.

MultipleOutputFitnessContext

class MultipleOutputFitnessContext<TData> : FitnessContext<TData, Multiple<TData>>

Facilitates fitness evaluation for programs which have multiple outputs.

SingleOutputFitnessContext

class SingleOutputFitnessContext<TData> : FitnessContext<TData, Single<TData>>

Facilitates fitness evaluation for programs which have a single output.

Type Aliases

FitnessFunctionProvider

typealias FitnessFunctionProvider<TData, TOutput> = () -> FitnessFunction<TData, TOutput>

A function that provides a FitnessFunction implementation on request.

MultipleOutputFitnessFunction

typealias MultipleOutputFitnessFunction<TData> = FitnessFunction<TData, Multiple<TData>>

A FitnessFunction for lgp.core.program.Programs with multiple outputs.

SingleOutputFitnessFunction

typealias SingleOutputFitnessFunction<TData> = FitnessFunction<TData, Single<TData>>

A FitnessFunction for lgp.core.program.Programs with a single output.