|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.ObjectInstances
coser.datamodel.decisionsystem.RoughDecisionSystem
coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
coser.datamodel.decisionsystem.NominalDecisionSystem
coser.datamodel.decisionsystem.TestCostNominalDecisionSystem
coser.datamodel.decisionsystem.TestCostNominalDecisionSystemGA
coser.datamodel.decisionsystem.TestCostNominalDecisionSystemGAWithES
public class TestCostNominalDecisionSystemGAWithES extends TestCostNominalDecisionSystemGA
Summary: Test cost sensitive decision system with modified genetic
algorithms. The methods might be merged into TestCostDecisionSystem. They are
written independently because those programs belong to different authors.
\@INPROCEEDINGS{PanMinZhu11Genetic,
author = {Jiabin Liu and Fan Min and William Zhu},
title = {A modified genetic algorithm to the minimal test cost reduct
problem},
booktitle = {Proceedings of {IEEE} International Conference on Granular
Computing},
year = {2012},
pages = {539--544}
}
Author: Jiabin Liu liujb418@163.com
Copyright: The source code and all documents are open and free. PLEASE keep this header while revising the program.
Organizaion: 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: March 10, 2012.
Last modify time: March 30, 2012.
| 修饰符 和 类型 | 字段 和 描述 |
|---|---|
(专用软件包) long |
bestChromosome
The best fitness value of the chromosome. |
(专用软件包) double |
bestFitnessValue
The best fitness value of the group of chromosomes. |
(专用软件包) boolean[][] |
chromosomes
The population. |
(专用软件包) int |
d
The Haimin distatnce threshold; |
(专用软件包) 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. |
(专用软件包) double |
r
The diffusion rate; |
| 从类 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem 继承的字段 |
|---|
lambda, weighting |
| 从类 coser.datamodel.decisionsystem.NominalDecisionSystem 继承的字段 |
|---|
ATTRIBUTES_COMBINATIONS, BACKTRACK, EXPONENTIAL, reductMinimalSize |
| 构造函数 和 描述 |
|---|
TestCostNominalDecisionSystemGAWithES(TestCostNominalDecisionSystem paraDecisionSystem)
Construct the decision system. |
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
double |
computeFitnessValueOfCHC(boolean[] paraChromosome,
int paraMaxPositiveRegion,
double paraLambda)
Compute the fitness of the given chromosome |
boolean[][] |
crossoverOperationOfCHC(boolean[][] paraChromosomes,
boolean[] fitChange)
Uniform crossover. |
void |
geneticAlgorithmBasedTCSAttributeReductionOfCHC(double paraLambda)
The first version of the genetic algorithm. |
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[][] |
mutationOperationOfCHC(boolean[][] paraChromosomes,
boolean[] fitChange)
Mutation operation. |
int |
searchPairsOfChromosomes(boolean[] paraCheckChromosome)
Select a chromosomes for crossover. |
boolean[][] |
selectionOperationWheel(double[] fitness,
boolean[] fitChange)
Select new the group of chromosomes by wheel algorithm. |
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
int d
double r
java.lang.String distributionString
java.lang.String GAFilename
| 构造方法详细信息 |
|---|
public TestCostNominalDecisionSystemGAWithES(TestCostNominalDecisionSystem paraDecisionSystem)
throws java.io.IOException,
java.lang.Exception
java.io.IOExceptionjava.lang.Exception| 方法详细信息 |
|---|
public void setNumberOfChromosomes(int paraNumberOfChromosome)
TestCostNominalDecisionSystemGA 中的 setNumberOfChromosomesparaNumberOfChromosome - The number you need.public void setGeneration(int paraGenerations)
TestCostNominalDecisionSystemGA 中的 setGenerationparaGenerations - The number you need.public void setGAFilename()
TestCostNominalDecisionSystemGA 中的 setGAFilenamepublic java.lang.String getGAFilename()
TestCostNominalDecisionSystemGA 中的 getGAFilename
public void initializePopulation()
throws java.lang.Exception
TestCostNominalDecisionSystemGA 中的 initializePopulationjava.lang.Exception
public boolean[] initializeChromosome(boolean[] paraAllAttributes)
throws java.lang.Exception
TestCostNominalDecisionSystemGA 中的 initializeChromosomeparaAllAttributes - All conditional attribubes.java.lang.Exception
public boolean[][] initializeChromosomes(boolean[] paraAllAttributes)
throws java.lang.Exception
TestCostNominalDecisionSystemGA 中的 initializeChromosomesparaAllAttributes - The given attributes are not core.java.lang.Exception
public void initializePartOfChromosomesToTrue()
throws java.lang.Exception
TestCostNominalDecisionSystemGA 中的 initializePartOfChromosomesToTruejava.lang.Exception
public void geneticAlgorithmBasedTCSAttributeReductionOfCHC(double paraLambda)
throws java.lang.Exception
paraLambda - The given lambda value.java.lang.Exception
public boolean[][] selectionOperationWheel(double[] fitness,
boolean[] fitChange)
throws java.lang.Exception
fitness - The fitness of the corresponding chromosomes.fitChange - Judge the chromosome is or not changed.java.lang.Exception
public double computeFitnessValueOfCHC(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[][] crossoverOperationOfCHC(boolean[][] paraChromosomes,
boolean[] fitChange)
throws java.lang.Exception
paraChromosomes - The given group of chromosomes.fitChange - The alter of the corresponding chromosomes.java.lang.Exception
public int searchPairsOfChromosomes(boolean[] paraCheckChromosome)
throws java.lang.Exception
TestCostNominalDecisionSystemGA 中的 searchPairsOfChromosomesparaCheckChromosome - The given checked of chromosomes.java.lang.Exception
public boolean[][] mutationOperationOfCHC(boolean[][] paraChromosomes,
boolean[] fitChange)
throws java.lang.Exception
paraChromosomes - The given chromosomes.fitChange - The alter of the corresponding chromosomes.java.lang.Exception
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||