|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.core.configurators.GPConfigurator
public class GPConfigurator
automatically generated, do not edit manually. run org.dllearner.scripts.ConfigJavaGenerator to update
| Constructor Summary | |
|---|---|
GPConfigurator(GP gP)
|
|
| Method Summary | |
|---|---|
boolean |
getAdc()
adc whether to use automatically defined concept (this invents new helper concepts, but enlarges the search space. |
String |
getAlgorithmType()
algorithmType algorithm type. |
double |
getCrossoverProbability()
crossoverProbability crossover probability. |
boolean |
getElitism()
elitism specifies whether to use elitism in selection. |
int |
getGenerations()
generations number of generations (only valid if a fixed number of generations is used). |
static GP |
getGP(AbstractLearningProblem learningProblem,
AbstractReasonerComponent reasoningService)
|
double |
getHillClimbingProbability()
hillClimbingProbability hill climbing probability. |
int |
getInitMaxDepth()
initMaxDepth maximum depth to use when creating the initial population. |
int |
getInitMinDepth()
initMinDepth minimum depth to use when creating the initial population. |
int |
getMaxConceptLength()
maxConceptLength maximum concept length (higher length means lowest possible fitness). |
double |
getMutationProbability()
mutationProbability mutation probability. |
int |
getNumberOfIndividuals()
numberOfIndividuals number of individuals. |
int |
getNumberOfSelectedIndividuals()
numberOfSelectedIndividuals number of selected individuals. |
int |
getPostConvergenceGenerations()
postConvergenceGenerations number of generations after which to stop if no improvement wrt. the best solution has been achieved. |
double |
getRefinementProbability()
refinementProbability refinement operator probability (values higher than 0 turn this into a hybrid GP algorithm - see publication). |
String |
getSelectionType()
selectionType selection type. |
int |
getTournamentSize()
tournamentSize tournament size (applies only to tournament selection). |
boolean |
getUseFixedNumberOfGenerations()
useFixedNumberOfGenerations specifies whether to use a fixed number of generations. |
boolean |
isReinitNecessary()
true, if this component needs reinitializsation. |
void |
setAdc(boolean adc)
|
void |
setAlgorithmType(String algorithmType)
|
void |
setCrossoverProbability(double crossoverProbability)
|
void |
setElitism(boolean elitism)
|
void |
setGenerations(int generations)
|
void |
setHillClimbingProbability(double hillClimbingProbability)
|
void |
setInitMaxDepth(int initMaxDepth)
|
void |
setInitMinDepth(int initMinDepth)
|
void |
setMaxConceptLength(int maxConceptLength)
|
void |
setMutationProbability(double mutationProbability)
|
void |
setNumberOfIndividuals(int numberOfIndividuals)
|
void |
setNumberOfSelectedIndividuals(int numberOfSelectedIndividuals)
|
void |
setPostConvergenceGenerations(int postConvergenceGenerations)
|
void |
setRefinementProbability(double refinementProbability)
|
void |
setSelectionType(String selectionType)
|
void |
setTournamentSize(int tournamentSize)
|
void |
setUseFixedNumberOfGenerations(boolean useFixedNumberOfGenerations)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GPConfigurator(GP gP)
gP - see GP| Method Detail |
|---|
public static GP getGP(AbstractLearningProblem learningProblem,
AbstractReasonerComponent reasoningService)
throws LearningProblemUnsupportedException
reasoningService - see reasoningServicelearningProblem - see learningProblem
LearningProblemUnsupportedException - seepublic String getSelectionType()
public int getTournamentSize()
public boolean getElitism()
public String getAlgorithmType()
public double getMutationProbability()
public double getCrossoverProbability()
public double getHillClimbingProbability()
public double getRefinementProbability()
public int getNumberOfIndividuals()
public int getNumberOfSelectedIndividuals()
public boolean getUseFixedNumberOfGenerations()
public int getGenerations()
public int getPostConvergenceGenerations()
public boolean getAdc()
public int getInitMinDepth()
public int getInitMaxDepth()
public int getMaxConceptLength()
public void setSelectionType(String selectionType)
selectionType - selection type.
mandatory: false| reinit necessary: true
default value: rankSelectionpublic void setTournamentSize(int tournamentSize)
tournamentSize - tournament size (applies only to tournament selection).
mandatory: false| reinit necessary: true
default value: 3public void setElitism(boolean elitism)
elitism - specifies whether to use elitism in selection.
mandatory: false| reinit necessary: true
default value: truepublic void setAlgorithmType(String algorithmType)
algorithmType - algorithm type.
mandatory: false| reinit necessary: true
default value: steadyStatepublic void setMutationProbability(double mutationProbability)
mutationProbability - mutation probability.
mandatory: false| reinit necessary: true
default value: 0.03public void setCrossoverProbability(double crossoverProbability)
crossoverProbability - crossover probability.
mandatory: false| reinit necessary: true
default value: 0.95public void setHillClimbingProbability(double hillClimbingProbability)
hillClimbingProbability - hill climbing probability.
mandatory: false| reinit necessary: true
default value: 0.0public void setRefinementProbability(double refinementProbability)
refinementProbability - refinement operator probability (values higher than 0 turn this into a hybrid GP algorithm - see publication).
mandatory: false| reinit necessary: true
default value: 0.0public void setNumberOfIndividuals(int numberOfIndividuals)
numberOfIndividuals - number of individuals.
mandatory: false| reinit necessary: true
default value: 100public void setNumberOfSelectedIndividuals(int numberOfSelectedIndividuals)
numberOfSelectedIndividuals - number of selected individuals.
mandatory: false| reinit necessary: true
default value: 92public void setUseFixedNumberOfGenerations(boolean useFixedNumberOfGenerations)
useFixedNumberOfGenerations - specifies whether to use a fixed number of generations.
mandatory: false| reinit necessary: true
default value: falsepublic void setGenerations(int generations)
generations - number of generations (only valid if a fixed number of generations is used).
mandatory: false| reinit necessary: true
default value: 20public void setPostConvergenceGenerations(int postConvergenceGenerations)
postConvergenceGenerations - number of generations after which to stop if no improvement wrt. the best solution has been achieved.
mandatory: false| reinit necessary: true
default value: 50public void setAdc(boolean adc)
adc - whether to use automatically defined concept (this invents new helper concepts, but enlarges the search space.
mandatory: false| reinit necessary: true
default value: falsepublic void setInitMinDepth(int initMinDepth)
initMinDepth - minimum depth to use when creating the initial population.
mandatory: false| reinit necessary: true
default value: 4public void setInitMaxDepth(int initMaxDepth)
initMaxDepth - maximum depth to use when creating the initial population.
mandatory: false| reinit necessary: true
default value: 6public void setMaxConceptLength(int maxConceptLength)
maxConceptLength - maximum concept length (higher length means lowest possible fitness).
mandatory: false| reinit necessary: true
default value: 75public boolean isReinitNecessary()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||