|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.ObjectInstances
coser.datamodel.decisionsystem.RoughDecisionSystem
coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
coser.datamodel.decisionsystem.NumericDecisionSystem
coser.datamodel.decisionsystem.DecisionSystemNeighborhood
coser.datamodel.decisionsystem.DecisionSystemNormalError
coser.datamodel.decisionsystem.BothCostsDecisionSystemNormalError
public class BothCostsDecisionSystemNormalError extends DecisionSystemNormalError
Summary: Keep the balance between test cost and misclassification cost. Cost
data are defined in class CostSenstiveDecisionSystem. For more information of
the data model please refer to our papers:
\@INPROCEEDINGS{MinZhu11MinimalCost,
author = {Fan Min and William Zhu},
title = {Minimal cost attribute reduction through backtracking},
booktitle = {Proceedings of International Conference on Database Theory and
Application},
series = {FGIT-DTA/BSBT, CCIS},
volume = {258},
year = {2011},
pages = {100--107}
}
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 optimal feature subset can be obtained now.
Written time: Feburary 23, 2012.
Last modify time: October. 20, 2012.
| 修饰符 和 类型 | 字段 和 描述 |
|---|---|
(专用软件包) double |
currentReductAverageCost
|
(专用软件包) double |
optimalAverageCost
The optimal average cost. |
| 从类 coser.datamodel.decisionsystem.DecisionSystemNormalError 继承的字段 |
|---|
errorRandomMode, individualErrorRandom, sigma |
| 从类 coser.datamodel.decisionsystem.DecisionSystemNeighborhood 继承的字段 |
|---|
candidateReductsArray, neighborhoodSizeArray, numberOfCandidateReducts, seed |
| 构造函数 和 描述 |
|---|
BothCostsDecisionSystemNormalError(BothCostsDecisionSystemNormalError paraDecisionSystem)
Copy everything. |
BothCostsDecisionSystemNormalError(java.io.Reader reader)
Construct the decision system. |
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
double |
computeExceedingFactor(boolean[] paraTestSet)
Get the exceeding factor. |
BothCostsDecisionSystemNormalError[] |
divideInTwo(double paraPercentage)
Divide the decision system in two according to the given percentage. |
double |
getOptimalAverageCost()
Get the total test cost of the current reduct. |
boolean[] |
getOptimalFeatureSubset()
Get optimal feature subset. |
boolean[] |
inconsistencyBasedLambdaReduction(double paraLambda)
Find a (possibly) minimal feature subset using the inconsistency based lambda weighted approach. |
void |
oneOptimalBacktrack(Instances[] paraImpureInstancesArray,
boolean[] paraSelectedTests,
int paraTestLowerBound,
double paraExistingMisclassificationCost,
double paraExistingTestCost,
boolean paraFast)
Compute one optimal feature subset using backtrack. |
void |
oneOptimalBacktrackAdaptiveBC(Instances[] paraImpureInstancesArray,
boolean[] paraSelectedTests,
int paraTestLowerBound,
double paraExistingMisclassificationCost,
double paraExistingTestCost,
boolean paraFast)
Compute one optimal feature subset using backtrack. |
double |
optimalCostReductBacktrack(boolean paraFast)
Compute the optimal cost feature subset through backtracking. |
double |
optimalCostReductBacktrackAdaptiveBC(boolean paraFast)
Compute the optimal cost feature subset based on adaptive both costs through backtracking. |
java.lang.String |
toString()
Print the object message. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
double optimalAverageCost
double currentReductAverageCost
| 构造方法详细信息 |
|---|
public BothCostsDecisionSystemNormalError(java.io.Reader reader)
throws java.io.IOException,
java.lang.Exception
java.io.IOExceptionjava.lang.Exception
public BothCostsDecisionSystemNormalError(BothCostsDecisionSystemNormalError paraDecisionSystem)
throws java.lang.Exception
java.lang.Exception| 方法详细信息 |
|---|
public BothCostsDecisionSystemNormalError[] divideInTwo(double paraPercentage)
throws java.lang.Exception
RoughDecisionSystem 中的 divideInTwoparaPercentage - The percentage of instances in the first subset.java.lang.Exceptionpublic boolean[] getOptimalFeatureSubset()
public double optimalCostReductBacktrack(boolean paraFast)
throws java.lang.Exception
paraFast - Whether or not use the fast version. This only influences the
use of the third pruning technique.java.lang.Exception - if the given string does not contain enough integers.
public void oneOptimalBacktrack(Instances[] paraImpureInstancesArray,
boolean[] paraSelectedTests,
int paraTestLowerBound,
double paraExistingMisclassificationCost,
double paraExistingTestCost,
boolean paraFast)
throws java.lang.Exception
paraImpureInstancesArray - Inpure subtables.paraSelectedTests - Already selected tests.paraTestLowerBound - The lower bound of test index. We only need forward search.paraExistingMisclassificationCost - The misclassification cost with the current test set.paraExistingTestCost - The cost of already selected tests.paraFast - Whether or not use the fast version. This only influences the
use of the third pruning technique.java.lang.Exception
public double optimalCostReductBacktrackAdaptiveBC(boolean paraFast)
throws java.lang.Exception
paraFast - Whether or not use the fast version. This only influences the
use of the third pruning technique.java.lang.Exception - if the given string does not contain enough integers.
public void oneOptimalBacktrackAdaptiveBC(Instances[] paraImpureInstancesArray,
boolean[] paraSelectedTests,
int paraTestLowerBound,
double paraExistingMisclassificationCost,
double paraExistingTestCost,
boolean paraFast)
throws java.lang.Exception
paraImpureInstancesArray - Inpure subtables.paraSelectedTests - Already selected tests.paraTestLowerBound - The lower bound of test index. We only need forward search.paraExistingMisclassificationCost - The misclassification cost with the current test set.paraExistingTestCost - The cost of already selected tests.paraFast - Whether or not use the fast version. This only influences the
use of the third pruning technique.java.lang.Exception
public boolean[] inconsistencyBasedLambdaReduction(double paraLambda)
throws java.lang.Exception
DecisionSystemNeighborhood 中的 inconsistencyBasedLambdaReductionparaLambda - the lambda value.java.lang.Exceptionpublic double getOptimalAverageCost()
public double computeExceedingFactor(boolean[] paraTestSet)
throws java.lang.Exception
exception - if the optimal feature subset is not obtained yet.java.lang.Exceptionpublic java.lang.String toString()
NumericDecisionSystem 中的 toString
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||