|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.ObjectInstances
coser.datamodel.decisionsystem.RoughDecisionSystem
coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
coser.datamodel.decisionsystem.NominalDecisionSystem
coser.datamodel.decisionsystem.TestCostNominalDecisionSystem
coser.datamodel.decisionsystem.TestCostConstraintNominalDecisionSystem
public class TestCostConstraintNominalDecisionSystem extends TestCostNominalDecisionSystem
Summary: Decision system with test constraint while constructing a subreduct.
It is devoted to test cost constraint feature selection. For more information
of the data model please refer to our papers:
For test-cost constraint attribute reduction exhaustive algorithms please
refer to:
\@INPROCEEDINGS{MinZhu11TheOptimal,
author = {Fan Min and William Zhu},
title = {The optimal test cost constraint sub-reduct problem},
booktitle = {Proceedings of Rough Set and Knowledge Technology},
pages = {57--62},
series = {LNAI},
volume = {6954},
year = {2011}
}
For the set of all sub-reducts please refer to:
\@INPROCEEDINGS{MinZhu11BASS,
author = {Fan Min and William Zhu},
title = {Optimal sub-reducts in the dynamic environment},
booktitle = {Proceedings of {IEEE} International Conference on Granular
Computing},
pages = {457--462},
year = {2011}
}
For test-cost constraint attribute reduction heuristic algorithms please
refer to:
\@INPROCEEDINGS{MinZhu11Attribute,
author = {Fan Min and William Zhu},
title = {Attribute reduction with test-cost constraint},
booktitle = {Journal of Electronic Science and Technology of China},
volumn = {9},
number = {2},
year = {2011}
}
For the CSP viewpoint of the problem please refer to:
\@article{MinHuZhu12Feature,
author = {Fan Min and Qinghua Hu and William Zhu},
title = {Feature selection with test cost constraint},
journal = {submitted to Knowledge-Based Systems},
year = {2012}
}
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 lambda-weighted reduction algorithm implemented in
\cite{MinZhu11Attribute}
The heuristic algorithms to one optimal reduct \cite{MinZhu11TheOptimal} and
the set of all optimal reducts \cite{MinZhu11BASS} are implemented.
Algorithms from the viewpoint of CSP are implemented. Written time: June 14,
2011. Separated from TestCostNominalDecisionSystem.java
Last modify time: January 12, 2011.
| 修饰符 和 类型 | 字段 和 描述 |
|---|---|
static int |
ALL_EXHAUSTIVE
all exhaustive algorithms. |
static int |
BASS
A backtrack algorithm to all sub-reducts. |
(专用软件包) boolean[] |
currentSubreduct
The current sub-reduct. |
(专用软件包) double |
currentSubreductEntropy
The entropy of the current sub-reduct. |
(专用软件包) int |
currentSubreductTestCost
The test-cost of the current sub-reduct. |
(专用软件包) long[] |
exhaustiveSubreductResultArray
An array to store running information of exhaustive algorithm for sub-reduct. |
static int |
MAX_CANDIDATES_FOR_BASS
Maximal number of candidates for the AROP algorithm, which is exhaustive. |
static int |
MAX_CANDIDATES_FOR_SESRA
Maximal number of candidates for the SESRA algorithm, which is exhaustive. |
static int |
MAX_TESTS_FOR_EXHAUSTIVE
Maximal number of tests for exhaustive algorithms. |
static int |
OPR_RESULT_LENGTH
The array length of exhaustiveSubreductResultArray. |
(专用软件包) int |
optimalSubreductConsistency
The consistency of the optimal sub-reduct. |
(专用软件包) int |
optimalSubreductCost
The test cost of the sub-reduct. |
(专用软件包) double |
optimalSubreductEntropy
The entropy of the optimal sub-reduct. |
(专用软件包) long[] |
optimalSubreductsArray
The set of all optimal sub-reducts. |
static int |
PURE_BACKTRACK
A backtrack algorithm to one optimal sub-reduct. |
static int |
SESRA
The straightforward exhaustive sub-reduct algorithm |
static int |
SESRAstar
The straightforward exhaustive sub-reduct algorithm |
| 从类 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem 继承的字段 |
|---|
lambda, weighting |
| 从类 coser.datamodel.decisionsystem.NominalDecisionSystem 继承的字段 |
|---|
ATTRIBUTES_COMBINATIONS, BACKTRACK, EXPONENTIAL, reductMinimalSize |
| 构造函数 和 描述 |
|---|
TestCostConstraintNominalDecisionSystem(TestCostNominalDecisionSystem paraDecisionSystem)
Construct the decision system. |
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
void |
backtrackForSubreducts(Instances[] paraInstances,
long paraSeletctedAttributes,
int paraExistingTestCost,
int paraLowerBound)
Backtrack approach to produce candidate subreducts. |
protected long[] |
computeConstraintSatisfiedTestSetsBacktrack(int paraConstraint)
Compute all test sets satisfying the test cost constraint using the backtrack approach. |
protected long[] |
computeConstraintSatisfiedTestSetsBacktrack(int paraConstraint,
boolean[] paraAvailableTests)
Compute all test sets satisfying the test cost constraint using the backtrack approach. |
java.lang.String |
constraintReductionBacktrack(int paraConstraint)
Find an optimal sub-reduct using the backtrack algorithm. |
java.lang.String |
constraintReductionBASS(int paraConstraint)
Find an optimal subreduct using the BASS algorithm. |
java.lang.String |
constraintReductionSESRA(int paraConstraint)
Find an optimal sub-reduct using the SESRA algorithm. |
java.lang.String |
constraintReductionSESRA(int paraConstraint,
boolean[] paraAvailableTests)
Find an optimal sub-reduct using the SESRA algorithm. |
java.lang.String |
constraintReductionSESRAstar(int paraConstraint)
Find an optimal sub-reduct using the SESRA star algorithm. |
boolean |
constraintSatisfied(boolean[] paraSelectedTests,
int paraConstraint)
Judge whether or not the given test set satisfy the constraint. |
boolean[] |
entropyBasedLambdaWeightedConstraintReduction(double paraLambda,
int paraConstraint)
Find a (possibly) minimal entropy sub-reduct using the lambda-weighted reduction algorithm. |
long[] |
getExhaustiveSubreductResults()
Get sub-reduct results (exhaustive algorithms). |
long |
getOneOptimalSubreduct()
Get one optimal sub-reduct. |
int |
getOptimalSubreductConsistency()
Get the optimal sub-reduct consistency. |
int |
getOptimalSubreductCost()
Get the optimal sub-reduct cost. |
double |
getSubreductEntropy()
Get the entropy of the current sub-reduct. |
java.lang.String |
getSubreductString()
Get the current sub-reduct with the form of String. |
int |
getSubreductTestCost()
Get the test-cost of the current sub-reduct. |
boolean[] |
posBasedLambdaWeightedConstraintReduction(double paraLambda,
int paraConstraint)
Find a (possibly) minimal positive sub-reduct using the lambda-weighted reduction algorithm. |
protected long[] |
removeShortTestSets(long[] paraInitialTestSetArray)
Remove short test sets such that we do not have to compute their consistency. |
protected long[] |
removeShortTestSets(long[] paraInitialTestSetArray,
int paraNumberOfTestSets)
Remove short test sets such that we do not have to compute their consistency. |
protected long[] |
selectMaximalConsistencySubreducts(long[] paraSubreducts)
Select sub-reducts with the maximal consistency. |
java.lang.String |
toString()
For toString(). |
| 从类 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem 继承的方法 |
|---|
computeOptimalReductBacktrack, entropyBasedLambdaWeightedReduction, isCurrentReductOptimal, optimalReductBacktrack, removeRedundantAttributes, setLambda, setWeighting, sortByTestCost |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int MAX_TESTS_FOR_EXHAUSTIVE
public static final int MAX_CANDIDATES_FOR_SESRA
public static final int MAX_CANDIDATES_FOR_BASS
public static final int SESRA
public static final int SESRAstar
public static final int BASS
public static final int PURE_BACKTRACK
public static final int ALL_EXHAUSTIVE
boolean[] currentSubreduct
double currentSubreductEntropy
int currentSubreductTestCost
double optimalSubreductEntropy
int optimalSubreductConsistency
int optimalSubreductCost
long[] optimalSubreductsArray
public static int OPR_RESULT_LENGTH
long[] exhaustiveSubreductResultArray
| 构造方法详细信息 |
|---|
public TestCostConstraintNominalDecisionSystem(TestCostNominalDecisionSystem paraDecisionSystem)
throws java.io.IOException,
java.lang.Exception
java.io.IOExceptionjava.lang.Exception| 方法详细信息 |
|---|
public int getOptimalSubreductConsistency()
throws java.lang.Exception
java.lang.Exception
public long getOneOptimalSubreduct()
throws java.lang.Exception
java.lang.Exceptionpublic int getOptimalSubreductCost()
public int getSubreductTestCost()
public double getSubreductEntropy()
public java.lang.String getSubreductString()
protected long[] computeConstraintSatisfiedTestSetsBacktrack(int paraConstraint)
throws java.lang.Exception
paraConstraint - the test cost upper bound.java.lang.Exception
protected long[] computeConstraintSatisfiedTestSetsBacktrack(int paraConstraint,
boolean[] paraAvailableTests)
throws java.lang.Exception
paraConstraint - the test cost upper bound.paraAvailableTests - which tests are available.java.lang.Exception
public java.lang.String constraintReductionSESRA(int paraConstraint)
throws java.lang.Exception
paraConstraint - the test cost upper bound.java.lang.Exception
public java.lang.String constraintReductionSESRA(int paraConstraint,
boolean[] paraAvailableTests)
throws java.lang.Exception
paraConstraint - the test cost upper bound.paraAvailableTests - which tests are available.java.lang.Exception
public java.lang.String constraintReductionSESRAstar(int paraConstraint)
throws java.lang.Exception
paraConstraint - the test cost upper bound.java.lang.Exception
public java.lang.String constraintReductionBASS(int paraConstraint)
throws java.lang.Exception
paraConstraint - the test cost upper bound.java.lang.Exception
protected long[] removeShortTestSets(long[] paraInitialTestSetArray)
throws java.lang.Exception
paraInitialTestSetArray - test sets are representated by integers. It must be sorted in
an ascending order.java.lang.Exception
protected long[] removeShortTestSets(long[] paraInitialTestSetArray,
int paraNumberOfTestSets)
throws java.lang.Exception
paraInitialTestSetArray - test sets are representated by integers. It must be sorted in
an ascending order.paraNumberOfTestSets - the effective number of elements in paraInitialTestSetArray.java.lang.ExceptionconstraintReductionSESRAstar(int)
protected long[] selectMaximalConsistencySubreducts(long[] paraSubreducts)
throws java.lang.Exception
paraSubreducts - test sets are representated by long. It must be sorted in an
ascending order.java.lang.ExceptionconstraintReductionSESRA(int),
constraintReductionSESRAstar(int)public long[] getExhaustiveSubreductResults()
public boolean constraintSatisfied(boolean[] paraSelectedTests,
int paraConstraint)
throws java.lang.Exception
paraSelectedTests - Selected tests represented by a boolean array.paraConstraint - The constraint.java.lang.Exception - if it is thrown by computeTestCost().
public java.lang.String constraintReductionBacktrack(int paraConstraint)
throws java.lang.Exception
paraConstraint - the test cost upper bound.java.lang.Exception
public void backtrackForSubreducts(Instances[] paraInstances,
long paraSeletctedAttributes,
int paraExistingTestCost,
int paraLowerBound)
throws java.lang.Exception
paraInstances - Instances array from the last level.paraSeletctedAttributes - Attributes already selected in the last level.paraLowerBound - The lower bound of the atribute index. We can only look
forward.java.lang.Exception
public boolean[] posBasedLambdaWeightedConstraintReduction(double paraLambda,
int paraConstraint)
throws java.lang.Exception
paraLambda - the lambda value.java.lang.Exception
public boolean[] entropyBasedLambdaWeightedConstraintReduction(double paraLambda,
int paraConstraint)
throws java.lang.Exception
paraLambda - the lambda value.java.lang.Exceptionpublic java.lang.String toString()
TestCostNominalDecisionSystem 中的 toString
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||