coser.algorithm
类 ReductionNHGA

java.lang.Object
  继承者 coser.algorithm.NeighborhoodReduction
      继承者 coser.algorithm.ReductionNHGA

public class ReductionNHGA
extends NeighborhoodReduction

Project: The cost-sensitive rough sets project.

Summary: Reduction using genetic algorithms.

Author: Shujiao Liao sjliao2011@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.
Progress: Almost done.
Written time: August 11, 2011.
Last modify time: September 1, 2011.


字段摘要
修饰符 和 类型 字段 和 描述
(专用软件包)  long reductionEndTime
           
(专用软件包)  long reductionStartTime
           
 
从类 coser.algorithm.NeighborhoodReduction 继承的字段
currentSystem, dependency, efficiency, feature, messageEfficiency, messageFeature, num_end, sumOptimalTestCost
 
构造方法摘要
构造函数 和 描述
ReductionNHGA()
           
 
方法摘要
修饰符 和 类型 方法 和 描述
 java.lang.String batchComparisonNH(double delta, double efc_ctrl, double paraLambda, int paraNumberOfChromosomes, int paraNumberOfGeneration, boolean paraAlgorithm, int paraExperiments)
          Comparison of backtrack and heuristic approaches to TCS-DS-NH.
static java.lang.String batchNHGABasedMinimalReduct(double delta, int paraNumberOfChromosomes, int paraGeneration, int paraExperiments, boolean paraShowDetail)
          Batch reduction to obtain minimal reducts.
static java.lang.String batchNHGABasedMinimalTestCostReduction(double delta, double paraLambdaUpperBound, double paraLambdaLowerBound, double paraLambdaStepLength, int paraNumberOfChromosomes, int paraNumberOfGeneration, boolean paraAlgorithm, int paraExperiments, boolean paraShowDetail)
          Batch reduction to obtain minimal test-cost reducts.
 long getNHReductionRunTime()
          Get the reduction run time.
 void neighborhoodReduction(double[][] data_array, double delta, double efc_ctrl)
          The only constructor.
 
从类 coser.algorithm.NeighborhoodReduction 继承的方法
assignment, attributeDependency, copyArray, getEfficiency, getFeature, getmessageEfficiency, getmessageFeature, getNum_Select, maxid
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

reductionStartTime

long reductionStartTime

reductionEndTime

long reductionEndTime
构造方法详细信息

ReductionNHGA

public ReductionNHGA()
方法详细信息

batchNHGABasedMinimalTestCostReduction

public static java.lang.String batchNHGABasedMinimalTestCostReduction(double delta,
                                                                      double paraLambdaUpperBound,
                                                                      double paraLambdaLowerBound,
                                                                      double paraLambdaStepLength,
                                                                      int paraNumberOfChromosomes,
                                                                      int paraNumberOfGeneration,
                                                                      boolean paraAlgorithm,
                                                                      int paraExperiments,
                                                                      boolean paraShowDetail)
                                                               throws java.lang.Exception
Batch reduction to obtain minimal test-cost reducts. Reduction algorithms are implemented in decision systems, and this method invoke them many times with different test-cost settings to generate statistical results.

参数:
paraLambdaUpperBound - the upper bound of lambda, non-positive.
paraLambdaLowerBound - the lower bound of lambda.
paraLambdaStepLength - the step length of labda. For example, if the upper and lower bounds are -0.5 and -2 respectively, and the step length is 0.5, then the lambda will have values -0.5, -1.0, -1.5, and -2.0. Fan suggests to set the lower bound to -2.1 since the computation of double values are not accurate.
paraNumberOfChromosomes - the number of chromosome.
paraNumberOfGeneration - the max generation.
paraAlgorithm - Algorithms choice.
paraExperiments - the number of experiments to undertake. Each time the dataset have different test-cost settings.
paraShowDetail - show the detail of the program running. Only valid if paraExperiments is not greater than 50.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.

batchNHGABasedMinimalReduct

public static java.lang.String batchNHGABasedMinimalReduct(double delta,
                                                           int paraNumberOfChromosomes,
                                                           int paraGeneration,
                                                           int paraExperiments,
                                                           boolean paraShowDetail)
                                                    throws java.lang.Exception
Batch reduction to obtain minimal reducts. Reduction algorithms are implemented in decision systems, and this method invoke them many times with different test-cost settings to generate statistical results.

参数:
paraNumberOfChromosomes - the number of chromosomes.
paraGeneration - the max generation.
paraExperiments - the number of experiments to undertake. Each time the dataset have different test-cost settings.
paraShowDetail - show the detail of the program running. Only valid if paraExperiments is not greater than 50.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.

batchComparisonNH

public java.lang.String batchComparisonNH(double delta,
                                          double efc_ctrl,
                                          double paraLambda,
                                          int paraNumberOfChromosomes,
                                          int paraNumberOfGeneration,
                                          boolean paraAlgorithm,
                                          int paraExperiments)
                                   throws java.lang.Exception
Comparison of backtrack and heuristic approaches to TCS-DS-NH.

参数:
paraLambda - the value of lambda.
paraExperiments - the number of experiments to undertake. Each time the dataset have different test-cost settings.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.

neighborhoodReduction

public void neighborhoodReduction(double[][] data_array,
                                  double delta,
                                  double efc_ctrl)
                           throws java.lang.Exception
The only constructor.

抛出:
java.lang.Exception

getNHReductionRunTime

public long getNHReductionRunTime()
Get the reduction run time.

返回:
the reduction run time.