coser.datamodel.decisionsystem
类 SimpleCommonTestCostConstraintNominalDecisionSystem

java.lang.Object
  继承者 Instances
      继承者 coser.datamodel.decisionsystem.RoughDecisionSystem
          继承者 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
              继承者 coser.datamodel.decisionsystem.NominalDecisionSystem
                  继承者 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem
                      继承者 coser.datamodel.decisionsystem.SimpleCommonTestCostConstraintNominalDecisionSystem

public class SimpleCommonTestCostConstraintNominalDecisionSystem
extends TestCostNominalDecisionSystem

Summary: For cost constraint attribute reduction in test-cost-sensitive decision systems with simple common cost. For more information of the data model please refer to our papers:
\@INPROCEEDINGS{PanMinZhu11Common,
author = {Guiying Pan and Fan Min and William Zhu},
title = {Test cost constraint reduction with common cost},
booktitle = {Proceedings of International Conference on Database Theory and Application},
series = {FGIT, LNCS},
volume = {7105},
year = {2011},
pages = {55--63}
}

Author: Guiying Pan kentwingpan@163.com and Fan Min

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: Half done.
Written time: August 18, 2011. Separated from TestCostNominalDecisionSystem.java
Last modify time: August 18, 2011.


字段摘要
修饰符 和 类型 字段 和 描述
static int ALL_EXHAUSTIVE
          Both exhaustive algorithms.
(专用软件包)  long[] constraintSatisfiedTestSets
          Test sets which satisfy the constraint.
(专用软件包)  boolean[] currentSubreduct
          The current sub-reduct.
(专用软件包)  double currentSubreductEntropy
          The entropy of the current sub-reduct.
(专用软件包)  int currentSubreductTestCost
          The test-cost of the current sub-reduct.
(专用软件包)  long[] exhaustiveSubreductResultArray
          An array to store running information of exhaustive algorithm for sub-reduct, which is the sanm to OSRT problem in TCI-DS.
(专用软件包)  int[] groupConstraintSatisfiedTestSetsCost
          The cost of test sets which satisfy the constraint.
(专用软件包)  java.lang.String groupFilename
          The simple common test cost file name.
(专用软件包)  long[] groupInclusionTestsArray
          Group inclusion tests.
(专用软件包)  java.util.Random groupIndividualTestsRandom
          Used to group individual tests.
(专用软件包)  int[] groupNumberOfTestsArray
          Each group has the number of tests.
protected  boolean groupRandomMode
          Group random mode.
static int MAX_CANDIDATES_FOR_SCBASS
          Maximal number of candidates for the AROP algorithm, which is exhaustive.
static int MAX_CANDIDATES_FOR_SCSESRA
          Maximal number of candidates for the SESRA algorithm, which is exhaustive.
static int MAX_TESTS_FOR_SCBASS
          Maximal number of tests for the AROP algorithm, which is exhaustive.
static int MAX_TESTS_FOR_SCSESRA
          Maximal number of tests for the SESRA algorithm, which is exhaustive.
(专用软件包)  int numberOfConstraintSatisfiedTestSets
          The number of test sets which satisfy the constraint.
(专用软件包)  int numberOfGroups
          The number of groups.
static int OPR_RESULT_LENGTH
          The array length of exhaustiveSubreductResultArray.
(专用软件包)  long[] optimalSubreductArray
          The set of all optimal sub-reducts.
(专用软件包)  int optimalSubreductConsistency
          The consistency of the optimal sub-reduct.
(专用软件包)  int optimalSubreductCost
          The test cost of the sub-reduct.
(专用软件包)  double optimalSubreductEntropy
          The entropy of the optimal sub-reduct.
static int SCBASS
          A backtrack algorithm to all sub-reducts.
static int SCSESRA
          The straighforward exhaustive sub-reduct algorithm
static int SCSESRAstar
          The straighforward exhaustive sub-reduct algorithm
 
从类 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem 继承的字段
lambda, weighting
 
从类 coser.datamodel.decisionsystem.NominalDecisionSystem 继承的字段
ATTRIBUTES_COMBINATIONS, BACKTRACK, EXPONENTIAL, reductMinimalSize
 
从类 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem 继承的字段
alpha, COMPLEX_COMMON_TEST_COST, COST_TYPE_MONEY, COST_TYPE_TESTING_TIME, COST_TYPE_WAITING_TIME, currentReductCost, currentReductTime, currentReductTotalTestCost, DEFAULT_AVERAGE_NUMBER_OF_TESTS_PER_GROUP, groupCommonTestCostArray, groupInclusionArray, groupInclusionMatrix, IMPOSSIBLE_COST, individualCostDistributions, individualCostLowerBounds, individualCostMatrix, individualCostRandom, individualCostUpperBounds, minimalTestCostReduct, minimalTimeReduct, misclassificationCostMatrix, misclassificationCostSumArray, NORMAL, optimalReductTestCost, optimalReductTime, PARETO, randomMode, SIMPLE_COMMON_TEST_COST, TEST_COST_INDEPENDENT, TEST_COST_TYPES, testCostConstraint, testCostRelationship, testingOrderMatrix, timeParts, totalTimeConstraint, unifiedMisclassificationCost, UNIFORM
 
从类 coser.datamodel.decisionsystem.RoughDecisionSystem 继承的字段
allConditions, allReducts, allReductsFilename, allSubreducts, allSubreductsFilename, arffFilename, backtrackSteps, candidateReductArray, candidateSubreductArray, candidateSubreductConsistencyArray, classSize, CONDITIONAL_ENTROPY, consistency, core, currentReduct, currentSelectedAttributes, endTime, MAJORITY, minimalReductSize, numberOfCandidateReducts, numberOfCandidateSubreducts, numberOfConditions, numberOfInstances, optimalReduct, POSITIVE_REGION, runTimeInformation, startTime, totalEntropy, totalMajority, totalPositiveRegion
 
构造方法摘要
构造函数 和 描述
SimpleCommonTestCostConstraintNominalDecisionSystem(TestCostNominalDecisionSystem paraDecisionSystem)
          Construct the decision system.
 
方法摘要
修饰符 和 类型 方法 和 描述
 void computeConstraintSatisfiedTestSetsBacktrack(boolean[] paraAvailableAttributes, boolean[] paraContains, int[] paraGroupNumberOfTestsArray, int paraTestCost, int paraConstraint, int depth)
          Compute all test sets satisfying the test cost constraint using the backtrack approach.
 int computeOptimalTestCost()
          Compute the optimal test-cost.
 int computeTestCost(boolean[] paraTests)
          Compute the test cost of the current tests.
 int computeTestCost(long paraTests)
          Compute the test cost of the current tests.
 java.lang.String constraintReductionSCBASS(int paraConstraint)
          Find an optimal subreduct using the SCBASS algorithm.
 java.lang.String constraintReductionSCSESRA(int paraConstraint)
          Find an optimal sub-reduct using the SCSESRA algorithm.
 java.lang.String constraintReductionSCSESRA(int paraConstraint, boolean[] paraAvailableAttributes)
          Find an optimal sub-reduct using the SESRA star algorithm.
 java.lang.String constraintReductionSCSESRAstar(int paraConstraint)
          Find an optimal sub-reduct using the SCSESRA algorithm.
 java.lang.String constraintReductionSCSESRAstar(int paraConstraint, boolean[] paraAvailableAttributes)
          Find an optimal sub-reduct using the SESRA star algorithm.
 boolean[] entropyBasedLambdaWeightedConstraintReduction(double paraLambda, int paraConstraint)
          Find a (possibly) minimal entropy sub-reduct using the lambda-weighted reduction algorithm.
 void generateCommonTestCost()
          Generate common test cost in each group.
 long[] getExhaustiveSubreductResults()
          Get sub-reduct results (exhaustive algorithms).
 java.lang.String getGroupFilename()
          Get the simple common test cost file name.
 int getOptimalSubreductConsistency()
          Get the optimal sub-reduct consistency.
 double getOptimalSubreductEntropy()
          Get the entropy of the sub-reduct.
 int getOptimalSubreductMajority()
          Get the majority of the optimal sub-reduct.
 double getSubreductEntropy()
          Get the entropy of the sub-reduct.
 java.lang.String getSubreductString()
          Get the current sub-reduct with the form of String.
 int getSubreductTotalTestCost()
          Get the test-cost of the sub-reduct.
 void groupIndividualTests()
          Group individual tests.
 void groupIndividualTests(boolean[] paraAvailableAttributes)
          Group individual tests.
 void groupIndividualTestsFixed(boolean[] paraAvailableAttributes)
          Group individual tests with given number of groups.
 void initialize()
          Initialze for simple test cost attribute reduction.
 boolean[] initializeAvailableAttributes()
          Initialize available attrites.
 void readGroups()
          Read all groups from a text file with the following format:
1,3,6: 1
1,4,5,7: 1
That is, each line corresponds with a group, and a common test cost corresponds with the group.
 void refreshSimpleCommonTestCost()
          Refresh the groups and corresponding simple common test cost.
 void removeLongTestSets(long[] paraSubreductArray, int paraNumberOfTestSets)
          Remove redundant test sets.
protected  long[] selectMaximalConsistencySubreducts(long[] paraSubreducts)
          Select sub-reducts with the maximal consistency.
 long[] selectMinimalConditionalEntroypySubreducts(long[] paraSubreducts)
          Select sub-reducts with the minimal conditional entropy.
 void selectOptimalSubreductSCSESRA()
          Select the optimal sub reducts for SCSESRA.
 void setGroupFilename()
          Set the simple common test cost file name.
 void setGroupRandMode()
          Set group random mode name.
 void setNumberOfGroups(int paraNumberOfGroups)
          Set the number of groups.
 void writeSimpleCommonTestCostFile()
          Write a file to store the grouped results.
 
从类 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem 继承的方法
computeOptimalReductBacktrack, entropyBasedLambdaWeightedReduction, isCurrentReductOptimal, optimalReductBacktrack, removeRedundantAttributes, setLambda, setWeighting, sortByTestCost, toString
 
从类 coser.datamodel.decisionsystem.NominalDecisionSystem 继承的方法
buildCandidateReducts, computeAllReductsBacktrack, computeAllReductsBacktrack, computeAllReductsExhaustive, computeAllReductsExhaustive, computeAllReductsExhaustive, computeAllReductsExhaustiveExponential, computeAllSubreducts, computeConsistency, computeCore, conditionalEntropy, entropyBasedReduction, informationGain, informationGain, main, majority, majority, positiveRegion, positiveRegion, removeRedundantSubreducts, splitData, splitData, splitData
 
从类 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem 继承的方法
averageMisclassificationCost, averageMisclassificationCost, averageMisclassificationCost, averageMisclassificationCost, bestClassValue, computeAdditiveCost, computeExceedingFactor, computeReductTestCost, computeReductWaitingTime, copyForClone, generateIndividualCosts, generateOneCost, getClassificationCost, getDistributionString, getIndividualCost, getIndividualTestCost, getIndividualTestCostArray, getMisclassificationCostMatrix, getOptimalReductTestCost, getReductTotalTestCost, initializeForReduction, refreshTestCost, setAlpha, setComplexCommonTestCostArrays, setCostRandomMode, setIndividualCostArray, setIndividualCostBounds, setIndividualCostDistribution, setMisclassificationCostMatrix, setMisclassificationCostMatrix, setSimpleCommonTestCostArrays, setTestCostsRelationShip, setUnifiedMisclassificationCost
 
从类 coser.datamodel.decisionsystem.RoughDecisionSystem 继承的方法
classEntropy, classEntropy, computeConsistency, computeConsistency, computeCore, conditionalEntropy, conditionalEntropy, copyForClone, delete, divideInTwo, entropyReciprocal, entropyReciprocal, entropyReciprocal, entropyReciprocal, entropyReciprocal, getAllReductsFilename, getAllReductsString, getAllSubreductsFilename, getArffFilename, getArffSource, getBacktrackSteps, getCandidateSubreductConsistencyArray, getCurrentReduct, getCurrentReductIndex, getMeasure, getNumberOfConditions, getOptimalReduct, getReductionTime, getReductString, getRunTimeInformation, hasMissingValue, isNominal, isNormalized, isNumeric, majority, majority, normalize, positiveRegion, positiveRegion, printAllReducts, readAllReducts, readAllReducts, readAllSubreducts, readAllSubreducts, setAllReductsFilename, setAllReductsFilename, setAllSubreductsFilename, setAllSubreductsFilename, setArffFilename, setCurrentReduct, setCurrentReduct, setMeasure, writeAllReducts
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

MAX_TESTS_FOR_SCSESRA

public static final int MAX_TESTS_FOR_SCSESRA
Maximal number of tests for the SESRA algorithm, which is exhaustive.

另请参见:
常量字段值

MAX_TESTS_FOR_SCBASS

public static final int MAX_TESTS_FOR_SCBASS
Maximal number of tests for the AROP algorithm, which is exhaustive.

另请参见:
常量字段值

MAX_CANDIDATES_FOR_SCSESRA

public static final int MAX_CANDIDATES_FOR_SCSESRA
Maximal number of candidates for the SESRA algorithm, which is exhaustive.

另请参见:
常量字段值

MAX_CANDIDATES_FOR_SCBASS

public static final int MAX_CANDIDATES_FOR_SCBASS
Maximal number of candidates for the AROP algorithm, which is exhaustive. It is unlikely that a reduct contains more than 11 attributes

另请参见:
常量字段值

SCSESRA

public static final int SCSESRA
The straighforward exhaustive sub-reduct algorithm

另请参见:
常量字段值

SCSESRAstar

public static final int SCSESRAstar
The straighforward exhaustive sub-reduct algorithm

另请参见:
常量字段值

SCBASS

public static final int SCBASS
A backtrack algorithm to all sub-reducts.

另请参见:
常量字段值

ALL_EXHAUSTIVE

public static final int ALL_EXHAUSTIVE
Both exhaustive algorithms.

另请参见:
常量字段值

currentSubreduct

boolean[] currentSubreduct
The current sub-reduct. Only for test-cost constraint reduction.


currentSubreductEntropy

double currentSubreductEntropy
The entropy of the current sub-reduct. Only for test-cost constraint reduction.


currentSubreductTestCost

int currentSubreductTestCost
The test-cost of the current sub-reduct. Only for test-cost constraint reduction.


optimalSubreductEntropy

double optimalSubreductEntropy
The entropy of the optimal sub-reduct. Only for test-cost constraint reduction.


optimalSubreductConsistency

int optimalSubreductConsistency
The consistency of the optimal sub-reduct. Conditional entropy is divided by 100, then the reciprocal is used.


optimalSubreductCost

int optimalSubreductCost
The test cost of the sub-reduct.


optimalSubreductArray

long[] optimalSubreductArray
The set of all optimal sub-reducts.


OPR_RESULT_LENGTH

public static int OPR_RESULT_LENGTH
The array length of exhaustiveSubreductResultArray. Can be extended.


groupNumberOfTestsArray

int[] groupNumberOfTestsArray
Each group has the number of tests.


groupInclusionTestsArray

long[] groupInclusionTestsArray
Group inclusion tests.


constraintSatisfiedTestSets

long[] constraintSatisfiedTestSets
Test sets which satisfy the constraint.


numberOfConstraintSatisfiedTestSets

int numberOfConstraintSatisfiedTestSets
The number of test sets which satisfy the constraint.


groupConstraintSatisfiedTestSetsCost

int[] groupConstraintSatisfiedTestSetsCost
The cost of test sets which satisfy the constraint.


numberOfGroups

int numberOfGroups
The number of groups.


groupFilename

java.lang.String groupFilename
The simple common test cost file name.


groupRandomMode

protected boolean groupRandomMode
Group random mode. TRUE for "real" random, and FALSE for the same random sequence.


groupIndividualTestsRandom

java.util.Random groupIndividualTestsRandom
Used to group individual tests.


exhaustiveSubreductResultArray

long[] exhaustiveSubreductResultArray
An array to store running information of exhaustive algorithm for sub-reduct, which is the sanm to OSRT problem in TCI-DS.

构造方法详细信息

SimpleCommonTestCostConstraintNominalDecisionSystem

public SimpleCommonTestCostConstraintNominalDecisionSystem(TestCostNominalDecisionSystem paraDecisionSystem)
                                                    throws java.io.IOException,
                                                           java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

抛出:
java.io.IOException
java.lang.Exception
方法详细信息

initialize

public void initialize()
Initialze for simple test cost attribute reduction.


setNumberOfGroups

public void setNumberOfGroups(int paraNumberOfGroups)
Set the number of groups.


setGroupRandMode

public void setGroupRandMode()
Set group random mode name.


getOptimalSubreductMajority

public int getOptimalSubreductMajority()
                                throws java.lang.Exception
Get the majority of the optimal sub-reduct.

返回:
the majority of the optimal sub-reduct.
抛出:
java.lang.Exception

getSubreductEntropy

public double getSubreductEntropy()
Get the entropy of the sub-reduct.

返回:
the entropy of the sub-reduct.

getOptimalSubreductEntropy

public double getOptimalSubreductEntropy()
Get the entropy of the sub-reduct.

返回:
the entropy of the sub-reduct.

getSubreductString

public java.lang.String getSubreductString()
Get the current sub-reduct with the form of String.

返回:
the reduct with the form of boolean vector.

getSubreductTotalTestCost

public int getSubreductTotalTestCost()
Get the test-cost of the sub-reduct.

返回:
the sub-reduct with the form of boolean vector. This sub-reduct is also stored in the object as currentSubreduct.

getOptimalSubreductConsistency

public int getOptimalSubreductConsistency()
Get the optimal sub-reduct consistency.

返回:
the optimal test-cost reducts.

getExhaustiveSubreductResults

public long[] getExhaustiveSubreductResults()
Get sub-reduct results (exhaustive algorithms).

返回:
results in an int array.

initializeAvailableAttributes

public boolean[] initializeAvailableAttributes()
Initialize available attrites.


groupIndividualTests

public void groupIndividualTests()
                          throws java.lang.Exception
Group individual tests.

抛出:
java.lang.Exception

groupIndividualTests

public void groupIndividualTests(boolean[] paraAvailableAttributes)
                          throws java.lang.Exception
Group individual tests.

参数:
paraAvailableAttributes - The given test set.
抛出:
java.lang.Exception

groupIndividualTestsFixed

public void groupIndividualTestsFixed(boolean[] paraAvailableAttributes)
                               throws java.lang.Exception
Group individual tests with given number of groups.

参数:
paraAvailableAttributes - The given test set.
抛出:
java.lang.Exception

generateCommonTestCost

public void generateCommonTestCost()
                            throws java.lang.Exception
Generate common test cost in each group.

抛出:
java.lang.Exception

getGroupFilename

public java.lang.String getGroupFilename()
Get the simple common test cost file name.


setGroupFilename

public void setGroupFilename()
Set the simple common test cost file name.


refreshSimpleCommonTestCost

public void refreshSimpleCommonTestCost()
                                 throws java.lang.Exception
Refresh the groups and corresponding simple common test cost.

抛出:
java.lang.Exception

writeSimpleCommonTestCostFile

public void writeSimpleCommonTestCostFile()
                                   throws java.lang.Exception
Write a file to store the grouped results.

抛出:
java.lang.Exception

readGroups

public void readGroups()
                throws java.io.IOException,
                       java.lang.Exception
Read all groups from a text file with the following format:
1,3,6: 1
1,4,5,7: 1
That is, each line corresponds with a group, and a common test cost corresponds with the group.

抛出:
java.io.IOException - if an error occurr while reading the file.
java.lang.Exception - if an attribute index exceeds the bound.

computeOptimalTestCost

public int computeOptimalTestCost()
                           throws java.lang.Exception
Compute the optimal test-cost. This is done through checking every reduct.

覆盖:
类 CostSensitiveDecisionSystem 中的 computeOptimalTestCost
返回:
The optimal test-cost.
抛出:
java.lang.Exception - if the set of all reduct is not obtained yet.

computeTestCost

public int computeTestCost(long paraTests)
Compute the test cost of the current tests.

覆盖:
类 CostSensitiveDecisionSystem 中的 computeTestCost
参数:
paraTests - The given tests.
返回:
The test cost.
另请参见:
CostSensitiveDecisionSystem.computeTestCost(boolean[])

computeTestCost

public int computeTestCost(boolean[] paraTests)
Compute the test cost of the current tests.

覆盖:
类 CostSensitiveDecisionSystem 中的 computeTestCost
参数:
paraTests - The given tests.
返回:
The test cost.

constraintReductionSCSESRA

public java.lang.String constraintReductionSCSESRA(int paraConstraint)
                                            throws java.lang.Exception
Find an optimal sub-reduct using the SCSESRA algorithm.

参数:
paraConstraint - The test cost upper bound.
抛出:
java.lang.Exception

constraintReductionSCSESRA

public java.lang.String constraintReductionSCSESRA(int paraConstraint,
                                                   boolean[] paraAvailableAttributes)
                                            throws java.lang.Exception
Find an optimal sub-reduct using the SESRA star algorithm.

参数:
paraConstraint - The test cost upper bound.
paraAvailableAttributes - Which tests are available.
返回:
A brief summary of results. Other results are stored in the object.
抛出:
java.lang.Exception

computeConstraintSatisfiedTestSetsBacktrack

public void computeConstraintSatisfiedTestSetsBacktrack(boolean[] paraAvailableAttributes,
                                                        boolean[] paraContains,
                                                        int[] paraGroupNumberOfTestsArray,
                                                        int paraTestCost,
                                                        int paraConstraint,
                                                        int depth)
                                                 throws java.lang.Exception
Compute all test sets satisfying the test cost constraint using the backtrack approach.

参数:
paraAvailableAttributes - The given tests.
paraContains - The current test vector.
paraGroupNumberOfTestsArray - The array denotes each group has the number of elements in current.
paraTestCost - The current test cost.
paraConstraint - The constraint.
depth - The current depth
抛出:
java.lang.Exception

selectOptimalSubreductSCSESRA

public void selectOptimalSubreductSCSESRA()
                                   throws java.lang.Exception
Select the optimal sub reducts for SCSESRA.

抛出:
java.lang.Exception

removeLongTestSets

public void removeLongTestSets(long[] paraSubreductArray,
                               int paraNumberOfTestSets)
                        throws java.lang.Exception
Remove redundant test sets.

参数:
paraSubreductArray - The given test sets.
paraNumberOfTestSets - The number of test sets.
抛出:
java.lang.Exception

constraintReductionSCSESRAstar

public java.lang.String constraintReductionSCSESRAstar(int paraConstraint)
                                                throws java.lang.Exception
Find an optimal sub-reduct using the SCSESRA algorithm.

参数:
paraConstraint - The test cost upper bound.
抛出:
java.lang.Exception

constraintReductionSCSESRAstar

public java.lang.String constraintReductionSCSESRAstar(int paraConstraint,
                                                       boolean[] paraAvailableAttributes)
                                                throws java.lang.Exception
Find an optimal sub-reduct using the SESRA star algorithm. Support decision systems with at most 20 tests.

参数:
paraConstraint - The test cost upper bound.
paraAvailableAttributes - Which tests are available.
返回:
A brief summary of results. Other results are stored in the object.
抛出:
java.lang.Exception

selectMaximalConsistencySubreducts

protected long[] selectMaximalConsistencySubreducts(long[] paraSubreducts)
                                             throws java.lang.Exception
Select sub-reducts with the maximal consistency.

参数:
paraSubreducts - Test sets are representated by long.
返回:
longer test sets.
抛出:
java.lang.Exception

selectMinimalConditionalEntroypySubreducts

public long[] selectMinimalConditionalEntroypySubreducts(long[] paraSubreducts)
                                                  throws java.lang.Exception
Select sub-reducts with the minimal conditional entropy.

参数:
paraSubreducts - Test sets are representated by long.
返回:
Longer test sets.
抛出:
java.lang.Exception

constraintReductionSCBASS

public java.lang.String constraintReductionSCBASS(int paraConstraint)
                                           throws java.lang.Exception
Find an optimal subreduct using the SCBASS algorithm.

参数:
paraConstraint - the test cost upper bound.
返回:
A brief summary of results. Other results are stored in the object.
抛出:
java.lang.Exception

entropyBasedLambdaWeightedConstraintReduction

public boolean[] entropyBasedLambdaWeightedConstraintReduction(double paraLambda,
                                                               int paraConstraint)
                                                        throws java.lang.Exception
Find a (possibly) minimal entropy sub-reduct using the lambda-weighted reduction algorithm. Please refer to our paper for more detail: \cite{MinZhu11Attribute}

参数:
paraLambda - the lambda value.
paraConstraint - the test cost upper bound.
返回:
the sub-reduct with the form of boolean vector. This sub-reduct is also stored in the object as currentSubreduct.
抛出:
java.lang.Exception