ClassificationResult
, ComplexClassificationResult
DRSACautiousClassificationCostResult
, DRSACautiousClassificationGainResult
, DRSACautiousClassificationResult
, DRSAStandardClassificationResult
public class DRSAClassificationResult extends java.lang.Object implements ClassificationResult, ComplexClassificationResult
Constructor | Description |
---|---|
DRSAClassificationResult() |
Sole constructor
|
Modifier and Type | Method | Description |
---|---|---|
SimpleField |
getCautiousSuggestion() |
Provides cautious suggestion.
|
double |
getCertainty() |
Provides certainty of suggestion.
|
SimpleField |
getDownwardSuggestion() |
Provides at most suggestion.
|
SimpleField |
getSuggestion() |
Provides suggestion.
|
java.util.ArrayList<SimpleField> |
getSuggestions() |
Gets all suggestions that are provided by DRSA model.
|
SimpleField |
getUpwardSuggestion() |
Provides at least suggestion.
|
void |
setDownwardSuggestion(SimpleField suggestion,
int decisionAttributePreferenceType) |
Sets and combines downward suggestions in a DRSA manner
by taking intersection of all of those suggestions.
|
void |
setUpwardSuggestion(SimpleField suggestion,
int decisionAttributePreferenceType) |
Sets and combines upward suggestions in a DRSA manner by taking
intersection of all of those suggestions.
|
java.lang.String |
toString() |
Gets string representation of this DRSA classification result
|
public void setDownwardSuggestion(SimpleField suggestion, int decisionAttributePreferenceType)
suggestion
- a single suggestion of classificationdecisionAttributePreferenceType
- preference of the decision
attribute involved in providing suggestion; it takes the following
values: Attribute.COST
or Attribute.GAIN
public void setUpwardSuggestion(SimpleField suggestion, int decisionAttributePreferenceType)
suggestion
- a single suggestion of classificationdecisionAttributePreferenceType
- preference of the decision
attribute involved in providing suggestion; it takes the following
values Attribute.COST
or Attribute.GAIN
public SimpleField getCautiousSuggestion()
getSuggestions
method
should be used.SimpleField
suggestion value;
otherwise (if suggestion is not determined) it returns null
TODO in this version it doesn't work with cost decision criteria
TODO should throw AmbiguousSuggestion exceptionpublic SimpleField getSuggestion()
unknownValue
as suggestion. In this case
getSuggestions
method should be used.getSuggestion
in interface ClassificationResult
SimpleField
suggestion value or
unknownValue
if suggestion is ambiguous;
otherwise (if suggestion is not determined) it returns null
public double getCertainty()
getCertainty
in interface ClassificationResult
public java.util.ArrayList<SimpleField> getSuggestions()
getSuggestions
in interface ComplexClassificationResult
ArrayList
with suggestions provided by
DRSA classificationpublic SimpleField getUpwardSuggestion()
unknownValue
as suggestion. In this case
getSuggestions
method should be used.SimpleField
suggestion value or
unknownValue
if suggestion is ambiguous;
otherwise (if suggestion is not determined) it returns null
public SimpleField getDownwardSuggestion()
unknownValue
as suggestion. In this case
getSuggestions
method should be used.SimpleField
suggestion value or
unknownValue
if suggestion is ambiguous;
otherwise (if suggestion is not determined) it returns null
public java.lang.String toString()
toString
in class java.lang.Object