coser.datamodel.decisionsystem
类 BcoTimeNominalDecisionSystem

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

public class BcoTimeNominalDecisionSystem
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.


字段摘要
修饰符 和 类型 字段 和 描述
(专用软件包)  int beesCounts
          The number of bees.
 TimeNominalDecisionSystem currnetDecisionSystem
          The current TimeNominalDecisionSystem
(专用软件包)  double lambda
          Lambda for weighted reduction.
(专用软件包)  int limits
          The limited counts of searching neighbor solutions.
(专用软件包)  boolean[] minTestCostReduct
          The array of minimal test cost reduction.
 double minTimeCost
          The minimal total time cost obtained by this algorithm
(专用软件包)  int posAllConditions
          The number of positive region.
(专用软件包)  java.util.Random ran
          Random numbers generator
(专用软件包)  double removeRate
          The rate of removing worse solutions in current round.
(专用软件包)  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
 
构造方法摘要
构造函数 和 描述
BcoTimeNominalDecisionSystem(BcoTimeNominalDecisionSystem paraDataset, boolean[] paraSelectedAttributes)
          Construct the decision system.
BcoTimeNominalDecisionSystem(Instances dataset)
          Construct the decision system.
BcoTimeNominalDecisionSystem(Instances dataset, int capacity)
          Construct the decision system.
BcoTimeNominalDecisionSystem(Instances source, int first, int toCopy)
          Construct the decision system.
BcoTimeNominalDecisionSystem(java.io.Reader reader)
          Construct the decision system.
BcoTimeNominalDecisionSystem(java.lang.String name, FastVector attInfo, int capacity)
          Construct the decision system.
BcoTimeNominalDecisionSystem(TimeNominalDecisionSystem paraDecisionSystem, int paraBeesCounts, int paraLimits, double paraRemoveRate)
          The Construct Method 2
 
方法摘要
修饰符 和 类型 方法 和 描述
 boolean[] beeColonyTimeReduction(int paraSolutions, int paraRounds, int paraNeighbors, double paraRemoveRate)
          An bee colony algorithm to obtain a feature subset with time constraint.
 boolean[] beeColonyTimeRedutionSecond(int paraSolutions, int paraStableRounds, int paraNeighbors, double paraRemoveRate)
          An bee colony algorithm to obtain a feature subset with time constraint.
 double exceedingFactor()
          Compute and print the exceeding factor.
 void initialize()
          Initialize to default values.
static void main(java.lang.String[] args)
          Only for testing.
 boolean optimalTimeCost()
          Return if the minimal time cost.
 void setlimitsValue(int paralimits)
          Set the parameter limits.
 void setremoveRateValue(double pararemoveRate)
          Set the parameter removeRate.
 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, computeOptimalReductBacktrack, conditionalEntropy, entropyBasedReduction, informationGain, informationGain, majority, majority, optimalReductBacktrack, 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
 

字段详细信息

currnetDecisionSystem

public TimeNominalDecisionSystem currnetDecisionSystem
The current TimeNominalDecisionSystem


weighting

boolean weighting
Weighting or not.


lambda

double lambda
Lambda for weighted reduction.


ran

java.util.Random ran
Random numbers generator


beesCounts

int beesCounts
The number of bees.


limits

int limits
The limited counts of searching neighbor solutions.


removeRate

double removeRate
The rate of removing worse solutions in current round.


minTimeCost

public double minTimeCost
The minimal total time cost obtained by this algorithm


posAllConditions

int posAllConditions
The number of positive region.


minTestCostReduct

boolean[] minTestCostReduct
The array of minimal test cost reduction.

构造方法详细信息

BcoTimeNominalDecisionSystem

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

BcoTimeNominalDecisionSystem

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

抛出:
java.lang.Exception

BcoTimeNominalDecisionSystem

public BcoTimeNominalDecisionSystem(TimeNominalDecisionSystem paraDecisionSystem,
                                    int paraBeesCounts,
                                    int paraLimits,
                                    double paraRemoveRate)
                             throws java.io.IOException,
                                    java.lang.Exception
The Construct Method 2

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

BcoTimeNominalDecisionSystem

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

抛出:
java.lang.Exception

BcoTimeNominalDecisionSystem

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

抛出:
java.lang.Exception

BcoTimeNominalDecisionSystem

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

BcoTimeNominalDecisionSystem

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

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

initialize

public void initialize()
Initialize to default values.


beeColonyTimeReduction

public boolean[] beeColonyTimeReduction(int paraSolutions,
                                        int paraRounds,
                                        int paraNeighbors,
                                        double paraRemoveRate)
                                 throws java.lang.Exception
An bee colony algorithm to obtain a feature subset with time constraint. Since the constraint is given, the obtained feature subset may not be a reduct.

参数:
paraSolutions - The number of solutions.
paraRounds - The number of rounds.
paraNeighbors - The number of neighbors.
返回:
a reduct.
抛出:
java.lang.Exception - for file format error.

beeColonyTimeRedutionSecond

public boolean[] beeColonyTimeRedutionSecond(int paraSolutions,
                                             int paraStableRounds,
                                             int paraNeighbors,
                                             double paraRemoveRate)
                                      throws java.lang.Exception
An bee colony algorithm to obtain a feature subset with time constraint. Since the constraint is given, the obtained feature subset may not be a reduct.

参数:
paraSolutions - The number of solutions.
paraRounds - The number of rounds.
paraNeighbors - The number of neighbors.
返回:
a reduct.
抛出:
java.lang.Exception - for file format error.

setremoveRateValue

public void setremoveRateValue(double pararemoveRate)
Set the parameter removeRate.

参数:
pararemoveRate - The rate of removing worse solutions.

setlimitsValue

public void setlimitsValue(int paralimits)
Set the parameter limits.

参数:
paralimits - The limited times of searching for the neighbor solutions.

exceedingFactor

public double exceedingFactor()
Compute and print the exceeding factor.


optimalTimeCost

public boolean optimalTimeCost()
Return if the minimal time cost.

返回:
whether or not the obtained time cost is optimal.

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.