|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.ObjectInstances
coser.datamodel.decisionsystem.RoughDecisionSystem
coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
coser.datamodel.decisionsystem.NominalDecisionSystem
coser.datamodel.decisionsystem.TestCostNominalDecisionSystem
coser.datamodel.decisionsystem.TestCostNominalDecisionSystemGA
public class TestCostNominalDecisionSystemGA extends TestCostNominalDecisionSystem
Summary: Test cost sensitive decision system with genetic algorithms. The
methods might be merged into TestCostDecisionSystem. They are written
independently because those programs belong to different authors.
\@INPROCEEDINGS{PanMinZhu11Genetic,
author = {Guiying Pan and Fan Min and William Zhu},
title = {A genetic algorithm to the minimal test cost reduct problem},
booktitle = {Proceedings of {IEEE} International Conference on Granular
Computing},
year = {2011},
pages = {539--544}
}
Author: Guiying Pan kentwingpan@163.com
Copyright: The source code and all documents are open and free. PLEASE keep this header while revising the program.
Organization: Lab of Granular Computing,
Zhangzhou Normal University, Fujian 363000, China.
Project: The cost-sensitive rough sets project.
Progress: Test-cost-sensitive attribute reduction based on genetic algorithms
implemented.
Written time: July 25, 2011.
Last modify time: September 2, 2011.
| 修饰符 和 类型 | 字段 和 描述 |
|---|---|
(专用软件包) long |
bestChromosome
The best fitness value of the chromosome. |
(专用软件包) double |
bestFitnessValue
The best fitness value of the group of chromosomes. |
(专用软件包) boolean[][] |
chromosomes
The population. |
(专用软件包) java.lang.String |
distributionString
The name of distribution. |
(专用软件包) java.lang.String |
GAFilename
The gred filename. |
(专用软件包) int |
generations
The max generation. |
(专用软件包) int |
numberOfChromosomes
The number of Chromosomes. |
| 从类 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem 继承的字段 |
|---|
lambda, weighting |
| 从类 coser.datamodel.decisionsystem.NominalDecisionSystem 继承的字段 |
|---|
ATTRIBUTES_COMBINATIONS, BACKTRACK, EXPONENTIAL, reductMinimalSize |
| 构造函数 和 描述 |
|---|
TestCostNominalDecisionSystemGA(TestCostNominalDecisionSystem paraDecisionSystem)
Construct the decision system. |
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
boolean[][] |
bestInsteadOfWorst(boolean[][] paraChromosomes)
The worst individual in offsprings is replaced by & the best individual in parent generation. |
double |
computeFitnessValue_FirstVersion(boolean[] paraChromosome,
int paraMaxPositiveRegion,
double paraLambda)
Compute the fitness of the given chromosome in the first version of the genetic algorithm. |
double |
computeFitnessValue_SecondVersion(boolean[] paraChromosome,
int paraMaxPositiveRegion,
double paraLambda)
Compute the fitness of the given chromosome in the second version of the genetic algorithm. |
double |
computeFitnessValue(boolean[] paraChromosome,
int paraMaxPositiveRegion)
Compute the fitness of the given chromosome. |
boolean[][] |
crossoverOperation(boolean[][] paraChromosomes)
Uniform crossover. |
long[] |
GABasedMinimalAttributeReduction()
Find a (possibly) minimal reduct using the genetic algorithm based reduction algorithm. |
long[] |
GABasedMinimalAttributeReduction(boolean[] paraAvailableAttributes)
Find a (possibly) minimal reduct using the genetic algorithm based reduction algorithm. |
void |
geneticAlgorithmBasedTCSAttributeReduction_FirstVersion(double paraLambda)
The first version of the genetic algorithm. |
void |
geneticAlgorithmBasedTCSAttributeReduction_SecondVersion(double paraLambda)
The second version of the genetic algorithm. |
boolean[] |
geneticAlgorithmBasedTCSAttributeReduction(double paraLambda,
boolean paraAlgorithm)
Find a (possibly) minimal test-cost reduct using the genetic algorithm based reduction algorithm. |
java.lang.String |
getDistributionString()
Get the distribution name in current. |
java.lang.String |
getGAFilename()
Get gred filename. |
boolean[] |
initializeChromosome(boolean[] paraAllAttributes)
Initialize a chromosome. |
boolean[][] |
initializeChromosomes(boolean[] paraAllAttributes)
Initialize a group of chromosomes. |
void |
initializePartOfChromosomesToTrue()
If no chromosome is a solution, then initialize a part of chromosomes(one tenth) to all true. |
void |
initializePopulation()
Initialize a population. |
boolean[][] |
mutationOperation(boolean[][] paraChromosomes)
Mutation operation. |
long[] |
removeRedundantReducts()
Remove redundant candidate reducts. |
int |
searchPairsOfChromosomes(boolean[] paraCheckChromosome)
Select a chromosomes for crossover. |
boolean[][] |
selectionOperation_FirstVersion(boolean[][] paraChromosomes,
int paraMaxPositiveRegion,
double paraLambda)
Select new the group of chromosomes in the first version of the genetic algorithm. |
boolean[][] |
selectionOperation_SecondVersion(boolean[][] paraChromosomes,
int paraMaxPositiveRegion,
double paraLambda)
Select new the group of chromosomes in the second version of the genetic algorithm. |
boolean[][] |
selectionOperation(boolean[][] paraChromosomes,
int paraMaxPositiveRegion)
Select new the group of chromosomes. |
void |
setDistributionString()
Set the distribution name. |
void |
setGAFilename()
Set the filename such that it can store results produced by GABasedTCSAttributeReduction. |
void |
setGeneration(int paraGenerations)
Set the number of generation. |
void |
setNumberOfChromosomes(int paraNumberOfChromosome)
Set the number of chromosome. |
| 从类 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem 继承的方法 |
|---|
computeOptimalReductBacktrack, entropyBasedLambdaWeightedReduction, isCurrentReductOptimal, optimalReductBacktrack, removeRedundantAttributes, setLambda, setWeighting, sortByTestCost, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
int numberOfChromosomes
int generations
double bestFitnessValue
long bestChromosome
boolean[][] chromosomes
java.lang.String distributionString
java.lang.String GAFilename
| 构造方法详细信息 |
|---|
public TestCostNominalDecisionSystemGA(TestCostNominalDecisionSystem paraDecisionSystem)
throws java.io.IOException,
java.lang.Exception
java.io.IOExceptionjava.lang.Exception| 方法详细信息 |
|---|
public void setNumberOfChromosomes(int paraNumberOfChromosome)
paraNumberOfChromosome - The number you need.public void setGeneration(int paraGenerations)
paraGenerations - The number you need.public void setDistributionString()
public java.lang.String getDistributionString()
public void setGAFilename()
public java.lang.String getGAFilename()
public boolean[] geneticAlgorithmBasedTCSAttributeReduction(double paraLambda,
boolean paraAlgorithm)
throws java.lang.Exception
paraLambda - The given lambda value.paraAlgorithm - Algorithms choice.java.lang.Exception
public void initializePopulation()
throws java.lang.Exception
java.lang.Exception
public boolean[] initializeChromosome(boolean[] paraAllAttributes)
throws java.lang.Exception
paraAllAttributes - All conditional attribubes.java.lang.Exception
public boolean[][] initializeChromosomes(boolean[] paraAllAttributes)
throws java.lang.Exception
paraAllAttributes - The given attributes are not core.java.lang.Exception
public void initializePartOfChromosomesToTrue()
throws java.lang.Exception
java.lang.Exception
public void geneticAlgorithmBasedTCSAttributeReduction_FirstVersion(double paraLambda)
throws java.lang.Exception
paraLambda - The given lambda value.java.lang.Exception
public boolean[][] selectionOperation_FirstVersion(boolean[][] paraChromosomes,
int paraMaxPositiveRegion,
double paraLambda)
throws java.lang.Exception
paraChromosomes - The given chromosomes.paraMaxPositiveRegion - The candinality of the positive region of the decision.paraLambda - The lambad value.java.lang.Exception
public double computeFitnessValue_FirstVersion(boolean[] paraChromosome,
int paraMaxPositiveRegion,
double paraLambda)
throws java.lang.Exception
paraChromosome - The given chromosome.paraMaxPositiveRegion - The candinality of the positive region of the decision.paraLambda - The lambad value.java.lang.Exception
public void geneticAlgorithmBasedTCSAttributeReduction_SecondVersion(double paraLambda)
throws java.lang.Exception
paraLambda - The given lambda value.java.lang.Exception
public boolean[][] selectionOperation_SecondVersion(boolean[][] paraChromosomes,
int paraMaxPositiveRegion,
double paraLambda)
throws java.lang.Exception
paraChromosomes - The given chromosomes.paraMaxPositiveRegion - The candinality of the positive region of the decision.paraLambda - The lambad value.java.lang.Exception
public double computeFitnessValue_SecondVersion(boolean[] paraChromosome,
int paraMaxPositiveRegion,
double paraLambda)
throws java.lang.Exception
paraChromosome - The given chromosome.paraMaxPositiveRegion - The candinality of the positive region of the decision.paraLambda - The lambad value.java.lang.Exception
public boolean[][] crossoverOperation(boolean[][] paraChromosomes)
throws java.lang.Exception
paraChromosomes - The given group of chromosomes.java.lang.Exception
public int searchPairsOfChromosomes(boolean[] paraCheckChromosome)
throws java.lang.Exception
paraCheckChromosome - The given checked of chromosomes.java.lang.Exception
public boolean[][] mutationOperation(boolean[][] paraChromosomes)
throws java.lang.Exception
paraChromosomes - The given chromosomes.java.lang.Exception
public long[] GABasedMinimalAttributeReduction()
throws java.lang.Exception
java.lang.Exception
public long[] GABasedMinimalAttributeReduction(boolean[] paraAvailableAttributes)
throws java.lang.Exception
paraAvailableAttributes - The available attributes.java.lang.Exception
public double computeFitnessValue(boolean[] paraChromosome,
int paraMaxPositiveRegion)
throws java.lang.Exception
paraChromosome - The given chromosomejava.lang.Exception
public boolean[][] selectionOperation(boolean[][] paraChromosomes,
int paraMaxPositiveRegion)
throws java.lang.Exception
paraChromosomes - The given chromosomes.java.lang.Exception
public long[] removeRedundantReducts()
throws java.lang.Exception
java.lang.Exception
public boolean[][] bestInsteadOfWorst(boolean[][] paraChromosomes)
throws java.lang.Exception
paraChromosomes - The given popution.java.lang.Exception
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||