coser.datamodel.decisionsystem
类 PosConstraintNorminalDecisionSystem

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

public class PosConstraintNorminalDecisionSystem
extends TestCostNominalDecisionSystem

Project: The cost-sensitive rough sets project.

Summary: Define the data model of test-cost-sensitive decision system. It is devoted to positive constraint attribute reduction. For more information of the data model please refer to our papers:
For positive constraint attribute reduction heuristic algorithms please refer to:
\@INPROCEEDINGS{LiuMin12Pos,
Author: Fan Min minfanphd@163.com and Jiabin Liu
title = {Minimal test cost feature selection with positive region constraint},
booktitle = { },
volumn = {},
number = {},
year = {2012}
}

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.

Progress: The lambda-weighted reduction algorithm implemented. \cite{MinHeQianZhu11Test}
Written time: November 8, 2011. Separated from TestCostNominalDecisionSystem.java
Last modify time: February 12, 2012.


字段摘要
修饰符 和 类型 字段 和 描述
(专用软件包)  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.
static int IMPOSSIBLE_POSITIVE
          Impossible positive region, only used for initialization.
(专用软件包)  int optimalReductPositive
          positive region of the optimal reduct.
 
从类 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
 
构造方法摘要
构造函数 和 描述
PosConstraintNorminalDecisionSystem(TestCostNominalDecisionSystem paraDecisionSystem)
          Construct the decision system.
 
方法摘要
修饰符 和 类型 方法 和 描述
 int computeOptimalPositive()
          Compute the optimal positive region.
 double getSubreductEntropy()
          Get the entropy of the current 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.
 boolean[] positiveBasedLambdaWeightedConstraintReduction(double paraLambda, int paraConstraint)
          Find a (possibly) minimal test cost sub-reduct with positive constraint using the lambda-weighted reduction algorithm.
 int removeRedundantAttributesByPositive(int[] paraSequence)
          Remove redundant attributes from a super-reduct, describe by the relative postive region.
 
从类 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, computeOptimalTestCost, computeReductTestCost, computeReductWaitingTime, computeTestCost, computeTestCost, 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
 

字段详细信息

currentSubreduct

boolean[] currentSubreduct
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.


currentSubreductEntropy

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


IMPOSSIBLE_POSITIVE

public static int IMPOSSIBLE_POSITIVE
Impossible positive region, only used for initialization.


optimalReductPositive

int optimalReductPositive
positive region of the optimal reduct. //Liujiabin

构造方法详细信息

PosConstraintNorminalDecisionSystem

public PosConstraintNorminalDecisionSystem(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
方法详细信息

positiveBasedLambdaWeightedConstraintReduction

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

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

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.

getSubreductEntropy

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

返回:
the entropy of the sub-reduct.

removeRedundantAttributesByPositive

public int removeRedundantAttributesByPositive(int[] paraSequence)
                                        throws java.lang.Exception
Remove redundant attributes from a super-reduct, describe by the relative postive region.

参数:
paraSequence - the given sequence of indices. Often decided by respective test-costs.
返回:
the number of redundant attributes.
抛出:
java.lang.Exception - if conditionalEntropy throws one.

computeOptimalPositive

public int computeOptimalPositive()
                           throws java.lang.Exception
Compute the optimal positive region. This is done through checking every reduct.

返回:
the optimal positive region.
抛出:
exception - if the set of all reduct is not obtained yet.
java.lang.Exception