coser.algorithm
类 Reduction

java.lang.Object
  继承者 coser.algorithm.Reduction

public class Reduction
extends java.lang.Object

Project: The cost-sensitive rough sets project.

Summary: Reduction.

Author: Fan Min minfanphd@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.
Progress: Half done.
Written time: March 17, 2011.
Last modify time: May 4, 2011.


构造方法摘要
构造函数 和 描述
Reduction()
           
 
方法摘要
修饰符 和 类型 方法 和 描述
static java.lang.String batchComparisonErrorRange(double paraLambda, int paraExperiments)
          Comparison of backtrack and heuristic approaches to TCS-DS-ER.
static java.lang.String batchComparisonNormalError(double paraLambda, double paraDelta, int paraExperiments)
          Comparison of backtrack and two heuristic approaches to TCS-DS-NE.
static java.lang.String batchComparisonNormalError(double paraLambda, int paraExperiments)
          Comparison of backtrack and heuristic approaches to TCS-DS-ER.
static java.lang.String batchExhaustiveTestCostConstraintReduction(int paraAlgorithm, int paraMeasure, double paraBudgetFactor, int paraNumberOfExperiments)
          Exhausitve reduction to obtain optimal sub-reduct for different settings.
static java.lang.String batchGranularComputingFeatureSelection(double paraConfidenceLevelUpperBound, double paraConfidenceLevelLowerBound, double paraConfidenceLevelStepLength, int paraExperiments, boolean paraShowDetail)
          Batch reduction to obtain minimal test-cost reducts.
static java.lang.String batchMinimalCostNormalErrorFeatureSelection(int paraMisCostLowerBound, int paraMisCostUpperBound, int paraCostStepLength, int paraRatio)
          Batch feature selection to obtain minimal cost subset.
static java.lang.String batchMinimalCostReduction(int paraMisCostLowerBound, int paraMisCostUpperBound, int paraCostStepLength)
          Batch reduction to obtain minimal cost reducts.
static java.lang.String batchMinimalReduct(int paraExperiments, boolean paraShowDetail)
          Batch reduction to obtain minimal reducts.
static java.lang.String batchMinimalTestCostErrorRangeReduction(double paraLambdaUpperBound, double paraLambdaLowerBound, double paraLambdaStepLength, int paraExperiments, boolean paraShowDetail)
          Batch reduction to obtain minimal test-cost reducts.
static java.lang.String batchMinimalTestCostLambdaNormalErrorReduction(double paraLambdaUpperBound, double paraLambdaLowerBound, double paraLambdaStepLength, int paraExperiments, boolean paraShowDetail)
          Batch reduction to obtain minimal test-cost reducts.
static java.lang.String batchMinimalTestCostNormalErrorReduction(double paraDeltaUpperBound, double paraDeltaLowerBound, double paraDeltaStepLength, int paraExperiments, boolean paraShowDetail)
          Batch reduction to obtain minimal test-cost reducts.
static java.lang.String batchMinimalTestCostReduction(double paraLambdaUpperBound, double paraLambdaLowerBound, double paraLambdaStepLength, int paraExperiments, boolean paraShowDetail)
          Batch reduction to obtain minimal test-cost reducts.
static java.lang.String batchMinimalTotalCostNormalErrorFeatureSelection(double paraLambdaUpperBound, double paraLambdaLowerBound, double paraLambdaStepLength, int paraExperiments, boolean paraShowDetail)
          Batch reduction to obtain minimal test-cost reducts.
static java.lang.String batchOptimalGranularComputingBasedonAdaptiveBC(double paraConfidenceLevelLowerBound, double paraConfidenceLevelUpperBound, double paraConfidenceLevelStepLength, int paraMisCost, int paraRatio)
          Batch feature selection to obtain minimal cost subset.
static java.lang.String batchOptimalGranularComputingFeatureSelection(double paraConfidenceLevelLowerBound, double paraConfidenceLevelUpperBound, double paraConfidenceLevelStepLength, int paraMisCost, int paraRatio)
          Batch feature selection to obtain minimal cost subset.
static java.lang.String batchTestCostConstraintReduction(boolean paraWeighting, double paraLambdaUpperBound, double paraLambdaLowerBound, double paraLambdaStepLength, double paraBudgetFactor, int paraExperiments, boolean paraShowDetail)
          Batch reduction to obtain test-cost constraint reducts.
static java.lang.String batchTestCostConstraintReductionCompareWithOptimal(boolean paraWeighting, boolean paraHeuristics, double paraLambdaUpperBound, double paraLambdaLowerBound, double paraLambdaStepLength, double paraBudgetFactor, int paraExperiments, boolean paraShowDetail)
          Batch reduction to obtain test-cost constraint reducts.
static java.lang.String exhaustiveTestCostConstraintReduction(int paraAlgorithm, int paraMeasure, double paraBudgetFactor)
          Singular reduction to obtain an optimal sub-reduct.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Reduction

public Reduction()
方法详细信息

batchMinimalReduct

public static java.lang.String batchMinimalReduct(int paraExperiments,
                                                  boolean paraShowDetail)
                                           throws java.lang.Exception
Batch reduction to obtain minimal reducts. Test costs are generated however not considered in reduction.

参数:
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.

batchMinimalTestCostReduction

public static java.lang.String batchMinimalTestCostReduction(double paraLambdaUpperBound,
                                                             double paraLambdaLowerBound,
                                                             double paraLambdaStepLength,
                                                             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.
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.

batchTestCostConstraintReduction

public static java.lang.String batchTestCostConstraintReduction(boolean paraWeighting,
                                                                double paraLambdaUpperBound,
                                                                double paraLambdaLowerBound,
                                                                double paraLambdaStepLength,
                                                                double paraBudgetFactor,
                                                                int paraExperiments,
                                                                boolean paraShowDetail)
                                                         throws java.lang.Exception
Batch reduction to obtain test-cost constraint reducts. Reduction algorithms are implemented in decision systems, and this method invoke them many times with different test-cost settings to generate statistical results. Only one parameter is different from that of batchMinimalTestCostReduction().

参数:
paraBudgetFactor - control the budget insufficient to generate a reduct.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.
另请参见:
batchMinimalTestCostReduction(double, double, double, int, boolean)

exhaustiveTestCostConstraintReduction

public static java.lang.String exhaustiveTestCostConstraintReduction(int paraAlgorithm,
                                                                     int paraMeasure,
                                                                     double paraBudgetFactor)
                                                              throws java.lang.Exception
Singular reduction to obtain an optimal sub-reduct.

参数:
paraAlgorithm - the exhaustive algorithm.
paraMeasure - the measure to evaluate the decision system consistency.
paraBudgetFactor - control the budget insufficient to generate a reduct.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.

batchExhaustiveTestCostConstraintReduction

public static java.lang.String batchExhaustiveTestCostConstraintReduction(int paraAlgorithm,
                                                                          int paraMeasure,
                                                                          double paraBudgetFactor,
                                                                          int paraNumberOfExperiments)
                                                                   throws java.lang.Exception
Exhausitve reduction to obtain optimal sub-reduct for different settings.

参数:
paraAlgorithm - the exhaustive algorithm.
paraMeasure - the measure to evaluate the decision system consistency.
paraBudgetFactor - control the budget insufficient to generate a reduct.
paraNumberOfExperiments - how many times should the algorithms run.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.

batchMinimalTestCostErrorRangeReduction

public static java.lang.String batchMinimalTestCostErrorRangeReduction(double paraLambdaUpperBound,
                                                                       double paraLambdaLowerBound,
                                                                       double paraLambdaStepLength,
                                                                       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.
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.

batchMinimalTestCostNormalErrorReduction

public static java.lang.String batchMinimalTestCostNormalErrorReduction(double paraDeltaUpperBound,
                                                                        double paraDeltaLowerBound,
                                                                        double paraDeltaStepLength,
                                                                        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.

参数:
paraDeltaUpperBound - the upper bound of delta, non-positive.
paraDeltaLowerBound - the lower bound of delta.
paraDeltaStepLength - the step length of delta. For example, if the upper and lower bounds are 2 and 0 respectively, and the step length is 0.25.
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.

batchComparisonErrorRange

public static java.lang.String batchComparisonErrorRange(double paraLambda,
                                                         int paraExperiments)
                                                  throws java.lang.Exception
Comparison of backtrack and heuristic approaches to TCS-DS-ER.

参数:
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.

batchComparisonNormalError

public static java.lang.String batchComparisonNormalError(double paraLambda,
                                                          double paraDelta,
                                                          int paraExperiments)
                                                   throws java.lang.Exception
Comparison of backtrack and two heuristic approaches to TCS-DS-NE.

参数:
paraLambda - the value of lambda.
paraDelta - the value of delta.
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.

batchMinimalCostReduction

public static java.lang.String batchMinimalCostReduction(int paraMisCostLowerBound,
                                                         int paraMisCostUpperBound,
                                                         int paraCostStepLength)
                                                  throws java.lang.Exception
Batch reduction to obtain minimal cost reducts. Reduction algorithms are implemented in decision systems, and this method invoke them many times with different misclassification-cost settings to generate more results.

参数:
paraMisCostLowerBound - The lower bound of the misclassfication cost.
paraMisCostUpperBound - The upper bound of the misclassfication cost.
paraCostStepLength - The step length of the misclassification cost.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.

batchMinimalCostNormalErrorFeatureSelection

public static java.lang.String batchMinimalCostNormalErrorFeatureSelection(int paraMisCostLowerBound,
                                                                           int paraMisCostUpperBound,
                                                                           int paraCostStepLength,
                                                                           int paraRatio)
                                                                    throws java.lang.Exception
Batch feature selection to obtain minimal cost subset. Feature selection algorithms are implemented in decision systems, and this method invoke them many times with different misclassification-cost settings to generate more results.

参数:
paraMisCostLowerBound - The lower bound of the misclassfication cost.
paraMisCostUpperBound - The upper bound of the misclassfication cost.
paraCostStepLength - The step length of the misclassification cost.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.

batchOptimalGranularComputingFeatureSelection

public static java.lang.String batchOptimalGranularComputingFeatureSelection(double paraConfidenceLevelLowerBound,
                                                                             double paraConfidenceLevelUpperBound,
                                                                             double paraConfidenceLevelStepLength,
                                                                             int paraMisCost,
                                                                             int paraRatio)
                                                                      throws java.lang.Exception
Batch feature selection to obtain minimal cost subset. Feature selection algorithms are implemented in decision systems, and this method invoke them many times with different misclassification-cost settings to generate more results.

参数:
paraConfidenceLevelLowerBound - The lower bound of the confidence level.
paraConfidenceLevelUpperBound - The upper bound of the confidence level.
paraConfidenceLevelStepLength - The step length of the confidence level.
paraMisCost - One of the misclassification costs.
paraRatio - The ratio of two misclassification costs.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.

batchOptimalGranularComputingBasedonAdaptiveBC

public static java.lang.String batchOptimalGranularComputingBasedonAdaptiveBC(double paraConfidenceLevelLowerBound,
                                                                              double paraConfidenceLevelUpperBound,
                                                                              double paraConfidenceLevelStepLength,
                                                                              int paraMisCost,
                                                                              int paraRatio)
                                                                       throws java.lang.Exception
Batch feature selection to obtain minimal cost subset. Feature selection algorithms are implemented in decision systems, and this method invoke them many times with different misclassification-cost settings to generate more results.

参数:
paraConfidenceLevelLowerBound - The lower bound of the confidence level.
paraConfidenceLevelUpperBound - The upper bound of the confidence level.
paraConfidenceLevelStepLength - The step length of the confidence level.
paraMisCost - One of the misclassification costs.
paraRatio - The ratio of two misclassification costs.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.

batchGranularComputingFeatureSelection

public static java.lang.String batchGranularComputingFeatureSelection(double paraConfidenceLevelUpperBound,
                                                                      double paraConfidenceLevelLowerBound,
                                                                      double paraConfidenceLevelStepLength,
                                                                      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.

参数:
paraConfidenceLevelLowerBound - The lower bound of the confidence level.
paraConfidenceLevelUpperBound - The upper bound of the confidence level.
paraConfidenceLevelStepLength - The step length of the confidence level.
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.

batchComparisonNormalError

public static java.lang.String batchComparisonNormalError(double paraLambda,
                                                          int paraExperiments)
                                                   throws java.lang.Exception
Comparison of backtrack and heuristic approaches to TCS-DS-ER.

参数:
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.

batchTestCostConstraintReductionCompareWithOptimal

public static java.lang.String batchTestCostConstraintReductionCompareWithOptimal(boolean paraWeighting,
                                                                                  boolean paraHeuristics,
                                                                                  double paraLambdaUpperBound,
                                                                                  double paraLambdaLowerBound,
                                                                                  double paraLambdaStepLength,
                                                                                  double paraBudgetFactor,
                                                                                  int paraExperiments,
                                                                                  boolean paraShowDetail)
                                                                           throws java.lang.Exception
Batch reduction to obtain test-cost constraint reducts. Reduction algorithms are implemented in decision systems, and this method invoke them many times with different test-cost settings to generate statistical results. Only one parameter is different from that of batchMinimalTestCostReduction().

参数:
paraBudgetFactor - control the budget insufficient to generate a reduct.
返回:
the message showing the result.
抛出:
java.lang.Exception - if something wrong happens.
另请参见:
batchMinimalTestCostReduction(double, double, double, int, boolean)

batchMinimalTotalCostNormalErrorFeatureSelection

public static java.lang.String batchMinimalTotalCostNormalErrorFeatureSelection(double paraLambdaUpperBound,
                                                                                double paraLambdaLowerBound,
                                                                                double paraLambdaStepLength,
                                                                                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.
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.

batchMinimalTestCostLambdaNormalErrorReduction

public static java.lang.String batchMinimalTestCostLambdaNormalErrorReduction(double paraLambdaUpperBound,
                                                                              double paraLambdaLowerBound,
                                                                              double paraLambdaStepLength,
                                                                              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.
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.