rgp: R genetic programming framework

RGP is a simple modular Genetic Programming (GP) system build in pure R. In addition to general GP tasks, the system supports Symbolic Regression by GP through the familiar R model formula interface. GP individuals are represented as R expressions, an (optional) type system enables domain-specific function sets containing functions of diverse domain- and range types. A basic set of genetic operators for variation (mutation and crossover) and selection is provided.

Install the latest version of this package by entering the following in R:
AuthorOliver Flasch, Olaf Mersmann, Thomas Bartz-Beielstein, Joerg Stork, Martin Zaefferer
Date of publication2014-08-08 14:05:23
MaintainerOliver Flasch <oliver.flasch@fh-koeln.de>

View on CRAN

Man pages

arity: Determine the number of arguments of a function

arity.primitive: Determine the number of arguments of a primitive function

booleanFunctionManipulation: Tools for manipulating boolean functions

breeding: Breeding of GP individuals

buildingBlocks: Support for GP buidling blocks

buildingBlockTags: Building block tags

customDist: A 'dist' function that supports custom metrics

dataDrivenGeneticProgramming: Data-driven untyped standard genetic programming

defaultGPFunctionAndConstantSets: Default function- and constant factory sets for Genetic...

do.call.ignore.unused.arguments: A variant of do.call that ignores unused arguments

embedDataFrame: Embed columns in a data frame

evolutionRestartConditions: Evolution restart conditions

evolutionRestartStrategies: Evolution restart strategies

evolutionStopConditions: Evolution stop conditions

exprChildrenOrEmptyList: Return the Children of an Expression or the Empty List if...

expressionComplexityMeasures: Complexity measures for R functions and expressions

expressionComposing: Functions for decomposing and recombining R expressions

expressionCounts: Upper bounds for expression tree search space sizes

expressionCrossover: Random crossover (recombination) of functions and expressions

expressionMutation: Random mutation of functions and expressions

expressionNames: Functions for handling R symbols / names

expressionSimilarityMeasures: Similarity and Distance Measures for R Functions and...

expressionTransformation: Common higher-order functions for transforming R expressions

exprLabel: Return the "label" at the Root Node of an Expression Tree

exprToPlotmathExpr: Convert any expression to an expression that is plottable by...

extractAttributes: Extract a given attribute of all objects in a list and tag...

formatSeconds: Format time and data values into human-readable character...

funcToPlotmathExpr: Convert a function to an expression plottable by plotmath

geneticProgramming: Standard typed and untyped genetic programming

gpIndividualVisualization: Visualization of functions and expressions as trees

gridDesign: Create a regular grid design matrix

individualAnalysis: Functions for analysing GP individuals

inversePermutation: Calculate the inverse of a permutation

is.sType: Check if an object is an sType

iterate: Repeatedly apply a function

joinElites: Join elite lists

latinHypercubeDesign: Create a latin hypercube design (LHD)

lispLists: Functions for Lisp-like list processing

listSplittingAndGrouping: Splitting and grouping of lists

mae: Mean absolute error (MAE)

makeAgeFitnessComplexityParetoGpSearchHeuristic: Age Fitness Complexity Pareto GP Search Heuristic for RGP

makeArchiveBasedParetoTournamentSearchHeuristic: Archive-based Pareto Tournament Search Heuristic for RGP

makeClosure: Create a new R closure given a function body expression and...

makeCommaEvolutionStrategySearchHeuristic: Comma Evolution Strategy Search Heuristic for RGP

makeFunctionFitnessFunction: Create a fitness function from a reference function of one...

makeNaryFunctionFitnessFunction: Create a fitness function from a n-ary reference function

makeRegressionFitnessFunction: Create a fitness function for symbolic regression

makeSeSymbolicFitnessFunction: Create a fitness function based on symbolic squared error...

makeTinyGpSearchHeuristic: Tiny GP Search Heuristic for RGP

mse: Mean squared error (MSE)

multiNicheGeneticProgramming: Cluster-based multi-niche genetic programming

multiNicheSymbolicRegression: Symbolic regression via multi-niche standard genetic...

new.alist: Create a new function argument list from a list or vector of...

new.function: Create a new function stub

nmse: Normalized mean squared error (NMSE)

nondeterministicRanking: Create a nondeterministic ranking

normalize: Normalize a vector into the interval [0, 1]

normalizedDesign: Create a normalized design matrix

orderByParetoMeasure: Rearrange points via an arbitrary Pareto-based ranking

paretoFrontKneeIndex: Find the knee of a two dimensional pareto front

paretoSorting: Rearrange points via Pareto-based rankings

plotFunction3d: Plot a 2D function as a 3D surface

plotFunctions: Show an overlayed plot of multiple functions

plotParetoFront: Plot a GP Pareto Front

plotPopulationFitnessComplexity: Fitness/Complexity plot for populations

popfitness: Calculate the fitness value of each individual in a...

populationClustering: Clustering Populations for Niching

populationCreation: Classes for populations of individuals represented as...

predict.symbolicRegressionModel: Predict method for symbolic regression models

print.sType: Prints a sType and returns it invisible.

randelt: Choose a random element from a list or vector

randomExpressionChilds: Select random childs or subtrees of an expression

randomExpressionCreation: Creates an R expression by random growth

randomExpressionCreationTyped: Creates an R expression by random growth respecting type...

randomFunctionCreation: Creates an R function with a random expression as its body

randomFunctionCreationTyped: Creates a well-typed R function with a random expression as...

randterminalTyped: Create a random terminal node

rangeTypeOfType: Return the range type if t is a function type, otherwise just...

rgp-package: The RGP package

rgpTestingAndBenchmarking: Utility functions for testing and benchmarking the RGP system

r_mae: R version of Mean absolute error (MAE)

rmse: Root mean squared error (RMSE)

rsquared: Coefficient of determination (R^2)

r_sse: R version of Sum squared error (SSE)

r_ssse: R version of Scaled sum squared error (sSSE)

safeGPfunctions: Some simple arithmetic and logic functions for use in GP...

searchSpaceDefinition: Functions for defining the search space for Genetic...

selectionFunctions: GP selection functions

seSymbolic: Symbolic squared error (SE)

seSymbolicFunction: Symbolic squared error function (SE)

smse: Scaled mean squared error (SMSE)

sortBy: Sort a vector or list by the result of applying a function

sortByRange: Tabulate a list of functions or input variables by the range...

sortByRanking: Sort a vector or list via a given ranking

sortByType: Tabulate a list of functions or input variables by their...

sortingAlgorithms: Sorting algorithms for vectors and lists

sse: Sum squared error (SSE)

ssse: Scaled sum squared error (sSSE)

sTypeConstructors: Type constructors for types in the Rsymbolic type system

sTypeInference: Inference of sTypes

subDataFrame: Select a continuous subframe of a data frame

summary.geneticProgrammingResult: Summary reports of genetic programming run result objects

symbolicRegression: Symbolic regression via untyped standard genetic programming

tabulateFunction: Tabulate an n-ary function

variablePresenceMaps: Variable Presence Maps


\%->\% Man page
\%::\% Man page
AllExpressionNodes Man page
andStopCondition Man page
AnyExpressionNode Man page
arithmeticFunctionSet Man page
arity Man page
arity.primitive Man page
booleanFunctionAsList Man page
breed Man page
buildingBlock Man page
buildingBlockq Man page
buildingBlockTag Man page
buildingBlockTag<- Man page
calculateSTypeRecursive Man page
c.constantFactorySet Man page
c.functionSet Man page
c.inputVariableSet Man page
commonSubexpressions Man page
configureSTypeInference Man page
constantFactorySet Man page
contains Man page
crossover Man page
crossoverexpr Man page
crossoverexprFast Man page
crossoverexprTwoPoint Man page
crossoverexprTyped Man page
crossoverTyped Man page
customDist Man page
dataDrivenGeneticProgramming Man page
differingSubexpressions Man page
do.call.ignore.unused.arguments Man page
embedDataFrame Man page
evaluationsPerSecondBenchmark Man page
expLogFunctionSet Man page
exprChildrenOrEmptyList Man page
exprCount Man page
exprDepth Man page
expressionGraph Man page
exprLabel Man page
exprLeaves Man page
exprShapesOfDepth Man page
exprShapesOfMaxDepth Man page
exprShapesOfMaxSize Man page
exprShapesOfSize Man page
exprSize Man page
exprsOfDepth Man page
exprsOfMaxDepth Man page
exprsOfMaxSize Man page
exprsOfSize Man page
exprToGraph Man page
exprToIgraph Man page
exprToPlotmathExpr Man page
exprVisitationLength Man page
extractAttributes Man page
extractLeafSymbols Man page
fastExprVisitationLength Man page
fastFuncVisitationLength Man page
fastMakePopulation Man page
fifth Man page
first Man page
flatten Man page
FlattenExpression Man page
formatSeconds Man page
fourth Man page
funcCount Man page
funcDepth Man page
funcLeaves Man page
funcSize Man page
functionSet Man page
functionVariablePresenceMap Man page
funcToIgraph Man page
funcToPlotmathExpr Man page
funcVisitationLength Man page
geneticProgramming Man page
getPw Man page
getSTypeFromFormalsStack Man page
gridDesign Man page
groupListConsecutive Man page
groupListDistributed Man page
hasBuildingBlockTag Man page
hasPw Man page
hasStype Man page
ifPositive Man page
ifThenElse Man page
inputVariableSet Man page
inputVariablesOfIndividual Man page
insertionSort Man page
integerToLogicals Man page
intersperse Man page
inversePermutation Man page
is.atom Man page
is.composite Man page
is.empty Man page
is.sType Man page
iterate Man page
joinElites Man page
latinHypercubeDesign Man page
ln Man page
mae Man page
makeAgeFitnessComplexityParetoGpSearchHeuristic Man page
makeArchiveBasedParetoTournamentSearchHeuristic Man page
makeBooleanFitnessFunction Man page
makeClosure Man page
makeCommaEvolutionStrategySearchHeuristic Man page
makeComplexityTournamentSelection Man page
makeEmptyRestartCondition Man page
makeEvaluationsStopCondition Man page
makeFitnessDistributionRestartCondition Man page
makeFitnessStagnationRestartCondition Man page
makeFitnessStopCondition Man page
makeFunctionFitnessFunction Man page
makeHierarchicalClusterFunction Man page
makeLocalRestartStrategy Man page
makeMultiObjectiveTournamentSelection Man page
makeNaryFunctionFitnessFunction Man page
makePopulation Man page
makeRegressionFitnessFunction Man page
makeSeSymbolicFitnessFunction Man page
makeStepLimitRestartCondition Man page
makeStepsStopCondition Man page
makeTimeStopCondition Man page
makeTinyGpSearchHeuristic Man page
makeTournamentSelection Man page
makeTypedPopulation Man page
MapExpressionLeafs Man page
MapExpressionNodes Man page
MapExpressionSubtrees Man page
mse Man page
multiNicheGeneticProgramming Man page
multiNicheSymbolicRegression Man page
mutateChangeDeleteInsert Man page
mutateChangeLabel Man page
mutateDeleteInsert Man page
mutateDeleteSubtree Man page
mutateFunc Man page
mutateFuncFast Man page
mutateFuncTyped Man page
mutateInsertSubtree Man page
mutateNumericConst Man page
mutateNumericConstFast Man page
mutateNumericConstTyped Man page
mutateSubtree Man page
mutateSubtreeFast Man page
mutateSubtreeTyped Man page
NCSdist Man page
new.alist Man page
new.function Man page
nmse Man page
nondeterministicRanking Man page
normalize Man page
normalizedDesign Man page
normalizedNumberOfCommonSubexpressions Man page
normalizedSizeWeightedNumberOfCommonSubexpressions Man page
normInducedFunctionDistance Man page
normInducedTreeDistance Man page
notStopCondition Man page
numberOfCommonSubexpressions Man page
numberOfDifferentBits Man page
numberOfDifferingSubexpressions Man page
orderByParetoCrowdingDistance Man page
orderByParetoHypervolumeContribution Man page
orderByParetoMeasure Man page
orStopCondition Man page
paretoFrontKneeIndex Man page
plotFunction3d Man page
plotFunctions Man page
plotParetoFront Man page
plotPopulationFitnessComplexity Man page
popfitness Man page
populationVariablePresenceMap Man page
positive Man page
predict.symbolicRegressionModel Man page
print.population Man page
print.sType Man page
pw Man page
randchild Man page
randelt Man page
randexprFull Man page
randexprGrow Man page
randexprTypedFull Man page
randexprTypedGrow Man page
randfunc Man page
randfuncRampedHalfAndHalf Man page
randfuncTyped Man page
randfuncTypedRampedHalfAndHalf Man page
randsubtree Man page
randterminalTyped Man page
rangeTypeOfType Man page
replaceSubtreeAt Man page
rest Man page
rgpBenchmark Man page
rgp-package Man page
r_mae Man page
rmse Man page
rsquared Man page
r_sse Man page
r_ssse Man page
safeDivide Man page
safeLn Man page
safeSqroot Man page
second Man page
seSymbolic Man page
seSymbolicFunction Man page
setSTypeOnFormalsStack Man page
sizeWeightedNumberOfCommonSubexpressions Man page
sizeWeightedNumberOfDifferingSubexpressions Man page
smse Man page
SNCSdist Man page
sObject Man page
sortBy Man page
sortByRange Man page
sortByRanking Man page
sortByType Man page
splitList Man page
sse Man page
ssse Man page
st Man page
sType Man page
sTypeq Man page
subDataFrame Man page
subexpressions Man page
subtreeAt Man page
subtrees Man page
summary.geneticProgrammingResult Man page
summary.population Man page
symbolicRegression Man page
tabulateFunction Man page
third Man page
toName Man page
trivialMetric Man page
typedGeneticProgramming Man page


inst/unittests/runner.r inst/unittests/runit-gp.r
R/stypes.r R/plot_utils.r R/recombination.r R/niching.r R/search_space.r R/test_utils.r R/creation.r R/population.r R/expression_utils.r R/building_blocks.r R/complexity.r R/data_driven_gp.r R/similarity.r R/breeding.r R/design_of_experiments.r R/data_utils.r R/search_heuristics.r R/symbolic_regression.r R/selection.r R/individual.r R/list_utils.r R/evolution.r R/time_utils.r R/fitness.r R/function_utils.r R/mutation.r R/pareto_utils.r R/rgp.r
man/orderByParetoMeasure.Rd man/summary.geneticProgrammingResult.Rd man/seSymbolic.Rd man/makeSeSymbolicFitnessFunction.Rd man/new.function.Rd man/makeTinyGpSearchHeuristic.Rd man/exprLabel.Rd man/do.call.ignore.unused.arguments.Rd man/sortingAlgorithms.Rd man/makeCommaEvolutionStrategySearchHeuristic.Rd man/rgpTestingAndBenchmarking.Rd man/subDataFrame.Rd man/rmse.Rd man/arity.primitive.Rd man/r_sse.Rd man/multiNicheSymbolicRegression.Rd man/tabulateFunction.Rd man/dataDrivenGeneticProgramming.Rd man/populationCreation.Rd man/expressionCrossover.Rd man/plotParetoFront.Rd man/exprToPlotmathExpr.Rd man/gpIndividualVisualization.Rd man/expressionSimilarityMeasures.Rd man/expressionTransformation.Rd man/randomExpressionChilds.Rd man/new.alist.Rd man/populationClustering.Rd man/mae.Rd man/randterminalTyped.Rd man/paretoSorting.Rd man/randomFunctionCreationTyped.Rd man/exprChildrenOrEmptyList.Rd man/formatSeconds.Rd man/individualAnalysis.Rd man/gridDesign.Rd man/expressionNames.Rd man/randelt.Rd man/normalizedDesign.Rd man/latinHypercubeDesign.Rd man/funcToPlotmathExpr.Rd man/r_mae.Rd man/expressionCounts.Rd man/defaultGPFunctionAndConstantSets.Rd man/randomExpressionCreation.Rd man/variablePresenceMaps.Rd man/expressionComposing.Rd man/makeFunctionFitnessFunction.Rd man/selectionFunctions.Rd man/smse.Rd man/sortByRanking.Rd man/searchSpaceDefinition.Rd man/is.sType.Rd man/buildingBlockTags.Rd man/makeAgeFitnessComplexityParetoGpSearchHeuristic.Rd man/symbolicRegression.Rd man/extractAttributes.Rd man/r_ssse.Rd man/inversePermutation.Rd man/sse.Rd man/iterate.Rd man/randomExpressionCreationTyped.Rd man/ssse.Rd man/seSymbolicFunction.Rd man/listSplittingAndGrouping.Rd man/evolutionRestartStrategies.Rd man/joinElites.Rd man/nondeterministicRanking.Rd man/randomFunctionCreation.Rd man/plotFunction3d.Rd man/paretoFrontKneeIndex.Rd man/expressionComplexityMeasures.Rd man/evolutionStopConditions.Rd man/sTypeConstructors.Rd man/makeNaryFunctionFitnessFunction.Rd man/customDist.Rd man/nmse.Rd man/normalize.Rd man/buildingBlocks.Rd man/multiNicheGeneticProgramming.Rd man/mse.Rd man/rangeTypeOfType.Rd man/arity.Rd man/plotFunctions.Rd man/makeRegressionFitnessFunction.Rd man/sortByType.Rd man/evolutionRestartConditions.Rd man/booleanFunctionManipulation.Rd man/embedDataFrame.Rd man/rgp-package.Rd man/popfitness.Rd man/geneticProgramming.Rd man/plotPopulationFitnessComplexity.Rd man/predict.symbolicRegressionModel.Rd man/lispLists.Rd man/rsquared.Rd man/expressionMutation.Rd man/sortBy.Rd man/safeGPfunctions.Rd man/sTypeInference.Rd man/sortByRange.Rd man/breeding.Rd man/makeClosure.Rd man/print.sType.Rd man/makeArchiveBasedParetoTournamentSearchHeuristic.Rd
Spark Online Training by Edureka

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.