|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.features.construction.ExampleSetBasedPopulation
public class ExampleSetBasedPopulation
A set of individuals. Stores generation number and best individuals.
| Field Summary | |
|---|---|
static java.util.Comparator<ExampleSetBasedIndividual> |
PERFORMANCE_COMPARATOR
|
| Constructor Summary | |
|---|---|
ExampleSetBasedPopulation()
Construct an empty generation. |
|
| Method Summary | |
|---|---|
void |
add(ExampleSetBasedIndividual individual)
Adds a single individual. |
void |
addAllIndividuals(java.util.Collection<ExampleSetBasedIndividual> newIndividuals)
Adds all individuals from the given collection. |
void |
clear()
Removes all individuals. |
boolean |
empty()
Returns true is the population contains no individuals. |
ExampleSetBasedIndividual |
get(int i)
Returns a single individual. |
ExampleSetBasedIndividual |
getBestIndividualEver()
Returns all generations' best individual. |
PerformanceVector |
getBestPerformanceEver()
Returns the best performance. |
ExampleSetBasedIndividual |
getCurrentBest()
Returns the last generation's best individual. |
PerformanceVector |
getCurrentBestPerformance()
Returns the last generation's best performance. |
int |
getGeneration()
Returns the current number of the generation. |
int |
getGenerationsWithoutImproval()
Returns the number of generations without improval. |
int |
getNumberOfIndividuals()
Returns the number of all individuals. |
void |
nextGeneration()
Increase the generation number by one. |
void |
remove(ExampleSetBasedIndividual individual)
Removes a single individual. |
void |
remove(int i)
Removes a single individual. |
void |
sort()
Sorts the individuals in ascending order according to their performance, thus the best one will be in last position. |
java.lang.String |
toString()
|
void |
updateEvaluation()
Remember the current generation's best individual and update the best individual. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Comparator<ExampleSetBasedIndividual> PERFORMANCE_COMPARATOR
| Constructor Detail |
|---|
public ExampleSetBasedPopulation()
| Method Detail |
|---|
public void clear()
public void add(ExampleSetBasedIndividual individual)
public void addAllIndividuals(java.util.Collection<ExampleSetBasedIndividual> newIndividuals)
public void remove(ExampleSetBasedIndividual individual)
public void remove(int i)
public ExampleSetBasedIndividual get(int i)
public int getNumberOfIndividuals()
public boolean empty()
public void nextGeneration()
public int getGeneration()
public int getGenerationsWithoutImproval()
public void updateEvaluation()
public PerformanceVector getBestPerformanceEver()
public ExampleSetBasedIndividual getBestIndividualEver()
public ExampleSetBasedIndividual getCurrentBest()
public PerformanceVector getCurrentBestPerformance()
public void sort()
public java.lang.String toString()
toString in class java.lang.Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||