Class OptimizedParallelAFLearner
java.lang.Object
org.tweetyproject.arg.dung.learning.OptimizedParallelAFLearner
-
Constructor Summary
ConstructorDescriptioninitialize the Learner with a set of arguments -
Method Summary
Modifier and TypeMethodDescriptiongetModel()
compute a single model that satisfies all attack constraints computation for each argument constraint is independent and thus can be done in parallelcompute all argumentation frameworks that satisfy the internal acceptance conditionslong
compute the number of argumentation frameworks that satisfy the internal acceptance conditionslong
getNumberOfFrameworks
(boolean shortcut) boolean
learnLabeling
(Input labeling) learn a single labeling i.e.boolean
learnLabelings
(Collection<Input> inputs) void
prints statusvoid
printStatus
(boolean dnf) print the current status of the acceptance conditions
-
Constructor Details
-
OptimizedParallelAFLearner
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
-
getModels
Description copied from interface:AFLearner
compute all argumentation frameworks that satisfy the internal acceptance conditions -
learnLabelings
- Parameters:
inputs
- inputs- Returns:
- the learned labels
-
getModel
compute a single model that satisfies all attack constraints computation for each argument constraint is independent and thus can be done in parallel -
printStatus
-
printStatus
public void printStatus(boolean dnf) print the current status of the acceptance conditions- Parameters:
dnf
- whether dnf holds
-
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) - Specified by:
getNumberOfFrameworks
in interfaceAFLearner
- Parameters:
shortcut
- whether shortcut is applied- Returns:
- number of frameworks
-