|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rdr.core.SimulatedExpert
public class SimulatedExpert
SimulatedExpert This class pretends to be a human expert. It selects conditions from a machine learned knowledge base (using a Weka machine learner, in this case Ridor(Explainer)).
Field Summary | |
---|---|
BinaryRelevanceClassifier |
brClassifier
|
Constructor Summary | |
---|---|
SimulatedExpert(java.lang.String experimentName,
java.lang.String datasetName,
weka.core.Instances data,
BinaryRelevanceClassifier brClassifier,
double specificity,
int numCases,
int numClassifications,
boolean buildFlag)
Constructor. |
Method Summary | |
---|---|
void |
buildException(Node parent,
common.datastructures.MyFastVector<Condition> availableConditions,
Case currentCase)
Select a portion of the availableConditions to make an exception rule to parent which is satisfied by currentCase |
Rule |
buildRule(common.datastructures.MyFastVector<Condition> conditions)
Attempt to use some of the conditions to create a rule. |
void |
buildRule(Node parent,
common.datastructures.MyFastVector<Condition> availableConditions,
Case currentCase,
Classification conc)
|
void |
compareOutcomes(Case currentCase,
weka.core.Instance currentInstance,
common.datastructures.MyFastVector<Node> results,
common.datastructures.MyFastVector<java.lang.String> predictedClasses,
java.lang.String[] labelNames)
Compares the rdrResults with the predicted outcomes from the machine learned knowledge base. |
Classifier |
getClassifier()
Returns the classifier. |
common.datastructures.MyFastVector<Condition> |
getConditionsFromRidor(common.datastructures.MyFastVector<weka.classifiers.rules.RidorExplainer.RidorRule> ridorRules,
common.datastructures.MyFastVector<Condition> existing)
Builds up a vector of Conditions using a vector of RidorRules. |
common.datastructures.MyFastVector<Condition> |
getRuleTraceFromRidor(common.datastructures.MyFastVector<weka.classifiers.rules.RidorExplainer.RidorRule> ridorRules,
common.datastructures.MyFastVector<weka.classifiers.rules.RidorExplainer.Antd> negRules)
Builds up a vector of Conditions using a vector of RidorRules. |
Classifier |
trainKnowledgeBase()
Tells this simulated expert to start training the knowledge base |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public BinaryRelevanceClassifier brClassifier
Constructor Detail |
---|
public SimulatedExpert(java.lang.String experimentName, java.lang.String datasetName, weka.core.Instances data, BinaryRelevanceClassifier brClassifier, double specificity, int numCases, int numClassifications, boolean buildFlag)
Method Detail |
---|
public Classifier trainKnowledgeBase()
public void compareOutcomes(Case currentCase, weka.core.Instance currentInstance, common.datastructures.MyFastVector<Node> results, common.datastructures.MyFastVector<java.lang.String> predictedClasses, java.lang.String[] labelNames)
rdrResults
- predictedClasses
- labelNames
- public void buildException(Node parent, common.datastructures.MyFastVector<Condition> availableConditions, Case currentCase)
parent
- availableConditions
- currentCase
- public void buildRule(Node parent, common.datastructures.MyFastVector<Condition> availableConditions, Case currentCase, Classification conc)
public common.datastructures.MyFastVector<Condition> getConditionsFromRidor(common.datastructures.MyFastVector<weka.classifiers.rules.RidorExplainer.RidorRule> ridorRules, common.datastructures.MyFastVector<Condition> existing)
ridorRules
-
public common.datastructures.MyFastVector<Condition> getRuleTraceFromRidor(common.datastructures.MyFastVector<weka.classifiers.rules.RidorExplainer.RidorRule> ridorRules, common.datastructures.MyFastVector<weka.classifiers.rules.RidorExplainer.Antd> negRules)
ridorRules
-
public Rule buildRule(common.datastructures.MyFastVector<Condition> conditions)
conditions
-
public Classifier getClassifier()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |