coser.datamodel.decisionsystem
类 LilyTimeNominalDecisionSystem

java.lang.Object
  继承者 Instances
      继承者 coser.datamodel.decisionsystem.RoughDecisionSystem
          继承者 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
              继承者 coser.datamodel.decisionsystem.NominalDecisionSystem
                  继承者 coser.datamodel.decisionsystem.TimeNominalDecisionSystem
                      继承者 coser.datamodel.decisionsystem.LilyTimeNominalDecisionSystem

public class LilyTimeNominalDecisionSystem
extends TimeNominalDecisionSystem

Summary: Define methods for time-sensitive reduction. Data are already claimed in super-classes.

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 very beginning.
Written time: December 17, 2012.
Last modify time: December 25, 2012.


字段摘要
修饰符 和 类型 字段 和 描述
(专用软件包)  double lambda
          Lambda for weighted reduction.
(专用软件包)  boolean weighting
          Weighting or not.
 
从类 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
 
构造方法摘要
构造函数 和 描述
LilyTimeNominalDecisionSystem(Instances dataset)
          Construct the decision system.
LilyTimeNominalDecisionSystem(Instances dataset, int capacity)
          Construct the decision system.
LilyTimeNominalDecisionSystem(Instances source, int first, int toCopy)
          Construct the decision system.
LilyTimeNominalDecisionSystem(LilyTimeNominalDecisionSystem paraDataset, boolean[] paraSelectedAttributes)
          Construct the decision system.
LilyTimeNominalDecisionSystem(java.io.Reader reader)
          Construct the decision system.
LilyTimeNominalDecisionSystem(java.lang.String name, FastVector attInfo, int capacity)
          Construct the decision system.
 
方法摘要
修饰符 和 类型 方法 和 描述
 boolean[] computeMinimalTimeReduct()
          Compute a minimal time reduct
 double computeOptimalReductBacktrack()
          Compute the optimal cost reduct through backtracking.
static void main(java.lang.String[] args)
          Only for testing.
 void optimalReductBacktrack(Instances[] paraInstancesArray, long paraSelectedAttributes, int paraExistingWaitingTime, int paraAttributeLowerBound)
          Compute one optimal reduct using backtrack.
 boolean[] randomTestingTimeReduction(int paraAdditionPace)
          A random algorithm to obtain a (possible) minimal testing time reduct.
 void setLambda(double paraLambda)
          Set the lambda value for lambda-weighted reduction.
 void setWeighting(boolean paraWeighting)
          Set the weighting option for lambda-weighted reduction.
 java.lang.String toString()
          For toString().
 
从类 coser.datamodel.decisionsystem.TimeNominalDecisionSystem 继承的方法
computeFeatureSubsetTime, computeOptimalTimeCost, featureSubsetCompare, isCurrentReductOptimal, readPartialOrderMatrix, sortByWaitingTime
 
从类 coser.datamodel.decisionsystem.NominalDecisionSystem 继承的方法
buildCandidateReducts, computeAllReductsBacktrack, computeAllReductsBacktrack, computeAllReductsExhaustive, computeAllReductsExhaustive, computeAllReductsExhaustive, computeAllReductsExhaustiveExponential, computeAllSubreducts, computeConsistency, computeCore, conditionalEntropy, entropyBasedReduction, informationGain, informationGain, 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, sortByTestCost
 
从类 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
 

字段详细信息

weighting

boolean weighting
Weighting or not.


lambda

double lambda
Lambda for weighted reduction.

构造方法详细信息

LilyTimeNominalDecisionSystem

public LilyTimeNominalDecisionSystem(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

LilyTimeNominalDecisionSystem

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

抛出:
java.lang.Exception

LilyTimeNominalDecisionSystem

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

抛出:
java.lang.Exception

LilyTimeNominalDecisionSystem

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

抛出:
java.lang.Exception

LilyTimeNominalDecisionSystem

public LilyTimeNominalDecisionSystem(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

LilyTimeNominalDecisionSystem

public LilyTimeNominalDecisionSystem(LilyTimeNominalDecisionSystem paraDataset,
                                     boolean[] paraSelectedAttributes)
                              throws java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

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

computeMinimalTimeReduct

public boolean[] computeMinimalTimeReduct()
                                   throws java.lang.Exception
Compute a minimal time reduct

抛出:
java.lang.Exception

setWeighting

public void setWeighting(boolean paraWeighting)
Set the weighting option for lambda-weighted reduction.


setLambda

public void setLambda(double paraLambda)
Set the lambda value for lambda-weighted reduction.


computeOptimalReductBacktrack

public double computeOptimalReductBacktrack()
                                     throws java.lang.Exception
Compute the optimal cost reduct through backtracking.

覆盖:
类 NominalDecisionSystem 中的 computeOptimalReductBacktrack
返回:
The optimal (minimal) cost.
抛出:
java.lang.Exception - if the given string does not contain enough integers.

optimalReductBacktrack

public void optimalReductBacktrack(Instances[] paraInstancesArray,
                                   long paraSelectedAttributes,
                                   int paraExistingWaitingTime,
                                   int paraAttributeLowerBound)
                            throws java.lang.Exception
Compute one optimal reduct using backtrack. The only prune technique is to consider the test cost vs. the total cost of the currently best solution.

覆盖:
类 NominalDecisionSystem 中的 optimalReductBacktrack
参数:
paraInstancesArray - Object subsets.
paraSelectedAttributes - Already selected attributes.
paraExistingWaitingTime - The cost of already selected tests.
paraAttributeLowerBound - The lower bound of test index. We only need forward search.
抛出:
java.lang.Exception

randomTestingTimeReduction

public boolean[] randomTestingTimeReduction(int paraAdditionPace)
                                     throws java.lang.Exception
A random algorithm to obtain a (possible) minimal testing time reduct.

参数:
paraAdditionPace - How many tests are added at each time.
返回:
the current reduct.
抛出:
java.lang.Exception - for file format error.

toString

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

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

main

public static void main(java.lang.String[] args)
Only for testing. Read the partial order file.