PreferenceStructureExploiter
public class WFNFSVirtualAllRulesDRSA extends WFNFS
null
).
In order to be able to induce rules on demand, this class requires access to learning PCT (via union container).
Therefore this class works only together with PreferenceStructureVirtualAllRulesDRSA
class.throwExceptionWhenAllPossibleComprehensivePreferenceGradesAreNotStoredInRulesContainer
Constructor | Description |
---|---|
WFNFSVirtualAllRulesDRSA(java.util.Hashtable<java.lang.Double,java.lang.Double> atLeastWeights,
java.util.Hashtable<java.lang.Double,java.lang.Double> atMostWeights,
int typeOfRules) |
Deprecated.
Constructor for
WFNFSVirtualAllRulesDRSA class. |
Modifier and Type | Method | Description |
---|---|---|
Ranking |
generateRanking(PreferenceStructure preferenceStructure) |
Deprecated.
Generates ranking of objects for given preference structure.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCheckConfidence, setCheckConfidence
public WFNFSVirtualAllRulesDRSA(java.util.Hashtable<java.lang.Double,java.lang.Double> atLeastWeights, java.util.Hashtable<java.lang.Double,java.lang.Double> atMostWeights, int typeOfRules)
WFNFSVirtualAllRulesDRSA
class.
If atLeastWeights == null
, it means that only at most rules should be used.
If atMostWeights == null
, it means that only at least rules should be used.
If both hash tables of weights are null
, then exception is thrown.WFNFS
constructor.atLeastWeights
- hash table with >= weights for different degrees of the intensity of global preference
of first example from pair of examples over second one. Double
key denotes degree
of the intensity of global preference, while Double
value is the weight associated with considered degree.atMostWeights
- hash table with <= weights for different degrees of the intensity of global preference
of first example from pair of examples over second one. Double
key denotes degree
of the intensity of global preference, while Double
value is the weight associated with considered degree.typeOfRules
- type of rules belonging to the virtual set of ALL RULES.
Can be Rule.CERTAIN
or Rule.POSSIBLE
.public Ranking generateRanking(PreferenceStructure preferenceStructure)
PreferenceStructureVirtualAllRulesDRSA
class.
Uses certain/possible rules of type at least and/or at most from virtual set of ALL RULES.
Whether certain or possible rules are used, depends on the value of typeOfRules
field set in constructor.
Assumes that PCT stored in preference structure has at least all possible pairs of different objects.
Pairs of type (x, x) are not mandatory since they are not used by WFNFS exploitation procedure.
Assumes that preference structure's PCT has special description attribute (with index PCTDetector.getIndexOfPairOfExamplesNumbers()),
of type PairField
and with inner type CardinalField
. Values of that attribute are
numbers of objects (from information table) which constitute given PCT row.
If at least (at most) weighs are null
, then uses only "at most" ("at least") rules.
Assumes that each basic class of union container stored in preference structure (see UnionContainer.getBasicClasses()
method)
is of type FloatField
, which means that decision criterion of learning PCT stores comprehensive preference grades.generateRanking
in interface PreferenceStructureExploiter
generateRanking
in class WFNFS
preferenceStructure
- preference structure to be exploited. Must be an instance of PreferenceStructureVirtualAllRulesDRSA
class.java.lang.NullPointerException
- when preference structure is null
ValueNotFoundException
- when there is no weight for some at least / at most global preference degreeInvalidValueException
- when preference structure is not suitable for WFNFS algorithm basing on virtual set of ALL RULES
(must be an instance of PreferenceStructureVirtualAllRulesDRSA
class)