|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.ObjectInstances
coser.datamodel.decisionsystem.RoughDecisionSystem
coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
coser.datamodel.decisionsystem.NumericDecisionSystem
coser.datamodel.decisionsystem.BothCostsNumericDecisionSystem
public class BothCostsNumericDecisionSystem extends NumericDecisionSystem
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 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: Feburary 23, 2012.
| 修饰符 和 类型 | 字段 和 描述 |
|---|---|
(专用软件包) double |
optimalAverageCost
The optimal average cost. |
| 构造函数 和 描述 |
|---|
BothCostsNumericDecisionSystem(BothCostsNumericDecisionSystem paraDecisionSystem)
Copy everything. |
BothCostsNumericDecisionSystem(java.io.Reader reader)
Construct the decision system. |
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
double |
averageMisclassificationCost(boolean[] paraTestSet)
Compute the average misclassification cost given a test set. |
double |
balancedClassEntropy(Instances paraData)
Computes the balanced entropy of a dataset by considering the class attribute and misclassification costs. |
double |
balancedConditionalEntropy()
Computes the balanced conditional entropy of this dataset. |
double |
balancedConditionalEntropy(boolean[] paraSelectedAttributes)
Computes the conditional entropy of a dataset. |
double |
balancedConditionalEntropy(long paraSelectedAttributesByLong)
Computes the balanced conditional entropy of a dataset. |
double |
balancedInformationGain(int paraAttributeIndex)
Computes the balanced information gain of an attribute. |
double |
costGain(Attribute paraAtt)
Compute the cost gain given an attribute. |
BothCostsNumericDecisionSystem[] |
divideInTwo(double paraPercentage)
Divide the decision system in two according to the given percentage. |
void |
oneOptimalBacktrack(Instances[] paraImpureInstancesArray,
boolean[] paraSelectedTests,
int paraTestLowerBound,
double paraExistingMisclassificationCost,
double paraExistingTestCost,
boolean paraFast)
Compute one optimal reduct using backtrack. |
double |
optimalCostReductBacktrack(boolean paraFast)
Compute the optimal cost reduct through backtracking. |
void |
refreshTestCost()
Refresh the test-cost settings. |
java.lang.String |
toString()
Print the object message. |
double |
totalCost(boolean[] paraTestSet)
Compute the total cost given a test set. |
double |
totalCost(long paraTestSet)
Compute the total cost given a test set. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
double optimalAverageCost
| 构造方法详细信息 |
|---|
public BothCostsNumericDecisionSystem(java.io.Reader reader)
throws java.io.IOException,
java.lang.Exception
java.io.IOExceptionjava.lang.Exception
public BothCostsNumericDecisionSystem(BothCostsNumericDecisionSystem paraDecisionSystem)
throws java.lang.Exception
java.lang.Exception| 方法详细信息 |
|---|
public BothCostsNumericDecisionSystem[] divideInTwo(double paraPercentage)
throws java.lang.Exception
RoughDecisionSystem 中的 divideInTwoparaPercentage - The percentage of instances in the first subset.java.lang.Exception
public double averageMisclassificationCost(boolean[] paraTestSet)
throws java.lang.Exception
CostSensitiveDecisionSystem 中的 averageMisclassificationCostparaTestSet - The given test set with the form of a boolean array.java.lang.Exception - if the given string does not contain enough boolean values.CostSensitiveDecisionSystem.averageMisclassificationCost(Instances[])
public double totalCost(long paraTestSet)
throws java.lang.Exception
paraTestSet - The given test set with the form of a long.java.lang.Exception - if the given string does not contain enough integers.
public double totalCost(boolean[] paraTestSet)
throws java.lang.Exception
paraTestSet - The given test set with the form of a boolean array.java.lang.Exception - if the given string does not contain enough integers.
public double costGain(Attribute paraAtt)
throws java.lang.Exception
paraAtt - The given attribute (test).java.lang.Exception
public double balancedClassEntropy(Instances paraData)
throws java.lang.Exception
paraData - should be a subset of current decision system.java.lang.ExceptionRoughDecisionSystem.classEntropy(Instances)
public double balancedConditionalEntropy()
throws java.lang.Exception
java.lang.Exception
public double balancedConditionalEntropy(long paraSelectedAttributesByLong)
throws java.lang.Exception
paraSelectedAttributesByLong - the selected attributes represented by a long int.java.lang.Exception
public double balancedConditionalEntropy(boolean[] paraSelectedAttributes)
throws java.lang.Exception
paraSelectedAttributes - the selected attributes.java.lang.Exception
public double balancedInformationGain(int paraAttributeIndex)
throws java.lang.Exception
paraAttributeIndex - the index of the attribute.java.lang.Exception
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 void refreshTestCost()
throws java.lang.Exception
CostSensitiveDecisionSystem 中的 refreshTestCostjava.lang.Exceptionpublic java.lang.String toString()
NumericDecisionSystem 中的 toString
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||