coser.datamodel.decisionsystem
类 TestCostDecisionSystemNormalError

java.lang.Object
  继承者 Instances
      继承者 coser.datamodel.decisionsystem.RoughDecisionSystem
          继承者 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
              继承者 coser.datamodel.decisionsystem.NumericDecisionSystem
                  继承者 coser.datamodel.decisionsystem.DecisionSystemNeighborhood
                      继承者 coser.datamodel.decisionsystem.DecisionSystemNormalError
                          继承者 coser.datamodel.decisionsystem.TestCostDecisionSystemNormalError

public class TestCostDecisionSystemNormalError
extends DecisionSystemNormalError

Summary: Test-cost-sensitive decision system with nromal distribution observational error, with exhaustive (backtrack) and heuristc attribute reduction algorithms. For minimal test cost feature selection algorithms.

Author: Fan Min, Hong Zhao 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.
Project: The cost-sensitive rough sets project.

Progress: The lambda-weighted reduction algorithm implemented. \cite{MinHeQianZhu11Test}
Written time: August 12, 2012.
Last modify time: February 15, 2013.


字段摘要
修饰符 和 类型 字段 和 描述
protected  java.util.Random additionalTestsRandom
          Used to generate additional tests.
protected  int finerTestCostTimes
          How many times does a finer test cost?
protected  boolean[] originalTests
          Original tests.
 
从类 coser.datamodel.decisionsystem.DecisionSystemNormalError 继承的字段
errorRandomMode, individualErrorRandom, sigma
 
从类 coser.datamodel.decisionsystem.DecisionSystemNeighborhood 继承的字段
candidateReductsArray, neighborhoodSizeArray, numberOfCandidateReducts, seed
 
从类 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, numberOfCandidateSubreducts, numberOfConditions, numberOfInstances, optimalReduct, POSITIVE_REGION, runTimeInformation, startTime, totalEntropy, totalMajority, totalPositiveRegion
 
构造方法摘要
构造函数 和 描述
TestCostDecisionSystemNormalError(Instances dataset)
          Construct the decision system.
TestCostDecisionSystemNormalError(Instances dataset, int capacity)
          Construct the decision system.
TestCostDecisionSystemNormalError(Instances source, int first, int toCopy)
          Construct the decision system.
TestCostDecisionSystemNormalError(java.io.Reader reader)
          Construct the decision system.
TestCostDecisionSystemNormalError(java.lang.String name, FastVector attInfo, int capacity)
          Construct the decision system.
 
方法摘要
修饰符 和 类型 方法 和 描述
 java.lang.String extendNormalDistributionObservationalError(int paraAdditionalTestsLowerBound, int paraAdditionalTestsUpperBound, double paraProbability)
          Extend it to produce more tests.
 boolean[] inconsistencyBasedDeltaReduction(double paraDelta)
          Find a (possibly) minimal reduct using the inconsistency based delta weighted approach.
 void refreshTestCost()
          Refresh the test-cost settings.
 void setFinerTestCostTimes(int paraFinerTestCostTimes)
          Set finer test cost times.
 void setOrginalTests(boolean[] paraOriginalTests)
          Set original tests.
 void setRandomMode(boolean paraRandomMode)
          Set the random mode and reset the Random object.
 java.lang.String toString()
          For toString().
 
从类 coser.datamodel.decisionsystem.DecisionSystemNormalError 继承的方法
computeErrorSizeArray, creatNormalError, getAverageErrorRangeSizeArray, getAverageValueNormalErrorSize, getNormalErrorSizeArray, normalDistributionQuantile, setIndividualTestCostArray, setNormalErrorSize, setNormalErrorSizeArray, setNormalErrorSizeArray
 
从类 coser.datamodel.decisionsystem.DecisionSystemNeighborhood 继承的方法
addAttribute, averageMisclassificationCost, buildCandidatesBacktrack, computeAllReductsBacktrack, computeExceedingFactor, computeNeighborhood, computeOptimalReductTestCostBacktrack, computeOptimalTestCost, getNeighborhoodSizeArray, inconsistencyBasedLambdaReduction, inconsistencyDecrease, isConsistent, isCurrentReductOptimal, oneOptimalBacktrack, removeSuperReducts, setMisclassificationCostMatrix, setNeighborhoodSizeArray, totalCost, totalCost
 
从类 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem 继承的方法
averageMisclassificationCost, averageMisclassificationCost, bestClassValue, computeAdditiveCost, computeReductTestCost, computeReductWaitingTime, computeTestCost, computeTestCost, copyForClone, generateIndividualCosts, generateOneCost, getClassificationCost, getDistributionString, getIndividualCost, getIndividualTestCost, getIndividualTestCostArray, getMisclassificationCostMatrix, getOptimalReductTestCost, getReductTotalTestCost, initializeForReduction, setAlpha, setComplexCommonTestCostArrays, setCostRandomMode, setIndividualCostArray, setIndividualCostBounds, setIndividualCostDistribution, setMisclassificationCostMatrix, setMisclassificationCostMatrix, setSimpleCommonTestCostArrays, setTestCostsRelationShip, setUnifiedMisclassificationCost, sortByTestCost
 
从类 coser.datamodel.decisionsystem.RoughDecisionSystem 继承的方法
classEntropy, classEntropy, computeConsistency, computeConsistency, computeConsistency, computeCore, computeCore, conditionalEntropy, conditionalEntropy, 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, majority, normalize, positiveRegion, 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
 

字段详细信息

originalTests

protected boolean[] originalTests
Original tests. Those are given by the orignial dataset, instead of "created" by the program.


finerTestCostTimes

protected int finerTestCostTimes
How many times does a finer test cost? It should be more than 1.


additionalTestsRandom

protected java.util.Random additionalTestsRandom
Used to generate additional tests.

构造方法详细信息

TestCostDecisionSystemNormalError

public TestCostDecisionSystemNormalError(java.io.Reader reader)
                                  throws java.io.IOException,
                                         java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

抛出:
java.io.IOException
java.lang.Exception

TestCostDecisionSystemNormalError

public TestCostDecisionSystemNormalError(Instances dataset)
                                  throws java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

抛出:
java.lang.Exception

TestCostDecisionSystemNormalError

public TestCostDecisionSystemNormalError(Instances dataset,
                                         int capacity)
                                  throws java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

抛出:
java.lang.Exception

TestCostDecisionSystemNormalError

public TestCostDecisionSystemNormalError(Instances source,
                                         int first,
                                         int toCopy)
                                  throws java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

抛出:
java.lang.Exception

TestCostDecisionSystemNormalError

public TestCostDecisionSystemNormalError(java.lang.String name,
                                         FastVector attInfo,
                                         int capacity)
                                  throws java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

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

setRandomMode

public void setRandomMode(boolean paraRandomMode)
Set the random mode and reset the Random object.

参数:
paraRandomMode - the given random mode.

extendNormalDistributionObservationalError

public java.lang.String extendNormalDistributionObservationalError(int paraAdditionalTestsLowerBound,
                                                                   int paraAdditionalTestsUpperBound,
                                                                   double paraProbability)
                                                            throws java.lang.Exception
Extend it to produce more tests. At the same time, set test costs.

参数:
paraAdditionalTestsLowerBound - The lower bound of additional tests for each test.
paraAdditionalTestsUpperBound - The upper bound of additional tests for each test.
paraProbability - the Probability of [-up, up].
返回:
the new arff filename.
抛出:
java.lang.Exception

setFinerTestCostTimes

public void setFinerTestCostTimes(int paraFinerTestCostTimes)
Set finer test cost times.


setOrginalTests

public void setOrginalTests(boolean[] paraOriginalTests)
Set original tests. Original tests are finest tests.


refreshTestCost

public void refreshTestCost()
                     throws java.lang.Exception
Refresh the test-cost settings. It is more complex that the one in CostSensitiveDecisionSysetm since there are certain relationshiop among different tests.

覆盖:
类 CostSensitiveDecisionSystem 中的 refreshTestCost
抛出:
java.lang.Exception

inconsistencyBasedDeltaReduction

public boolean[] inconsistencyBasedDeltaReduction(double paraDelta)
                                           throws java.lang.Exception
Find a (possibly) minimal reduct using the inconsistency based delta weighted approach.

参数:
paraDelta - the delta value.
返回:
the reduct with the form of boolean vector.
抛出:
java.lang.Exception

toString

public java.lang.String toString()
For toString(). See interface toString().

覆盖:
类 NumericDecisionSystem 中的 toString
返回:
object status.