Class SimpleAFLearner
java.lang.Object
org.tweetyproject.arg.dung.learning.SimpleAFLearner
-
Constructor Summary
ConstructorDescriptionSimpleAFLearner
(Collection<Argument> args) initialize the Learner with a set of arguments -
Method Summary
Modifier and TypeMethodDescriptionTODO is this still necessary?getModel()
compute an argumentation framework that satisfy the internal acceptance conditionscompute the set of argumentation frameworks that satisfy all acceptance conditions 1.long
compute the number of argumentation frameworks that satisfy the internal acceptance conditionslong
getNumberOfFrameworks
(boolean shortcut) computes whether there is more than one argumentation framework that satisfies the internal conditions helpful for break conditions when learningboolean
learnLabeling
(Input labeling) learn a single labeling i.e.void
print the internal acceptance conditionsvoid
printStatus
(boolean dnf)
-
Constructor Details
-
SimpleAFLearner
initialize the Learner with a set of arguments- Parameters:
args
- a set of arguments
-
-
Method Details
-
learnLabeling
learn a single labeling i.e. compute the acceptance condition for each argument a wrt to the given labeling and combine it with the previous acceptance condition of a- Specified by:
learnLabeling
in interfaceAFLearner
- Parameters:
labeling
- some labeling of the set of arguments- Returns:
- true if the labeling was learned successfully
-
getNumberOfFrameworks
public long getNumberOfFrameworks()Description copied from interface:AFLearner
compute the number of argumentation frameworks that satisfy the internal acceptance conditions- Specified by:
getNumberOfFrameworks
in interfaceAFLearner
- Returns:
- number of afs that produce all processed input labelings
-
getNumberOfFrameworks
public long getNumberOfFrameworks(boolean shortcut) computes whether there is more than one argumentation framework that satisfies the internal conditions helpful for break conditions when learning- Specified by:
getNumberOfFrameworks
in interfaceAFLearner
- Parameters:
shortcut
- if true, then only return 1 or -1- Returns:
- 1 if there is only one AF, -1 if there is more than one
-
computePartialAttackRelations
TODO is this still necessary?- Returns:
- the partial attack relations
-
getModels
compute the set of argumentation frameworks that satisfy all acceptance conditions 1. for each acceptance condition (argument) compute all models 2. for each model compute a corresponding attack relation 3. compute all possible combinations of the attack relations and we have all argumentation frame works satisfying the conditions -
getModel
Description copied from interface:AFLearner
compute an argumentation framework that satisfy the internal acceptance conditions -
printStatus
public void printStatus()Description copied from interface:AFLearner
print the internal acceptance conditions- Specified by:
printStatus
in interfaceAFLearner
-
printStatus
public void printStatus(boolean dnf) - Parameters:
dnf
- if true, the acceptance conditions are transformed to DNF before printing print the current status of the acceptance conditions
-