Class OptimizedParallelAFLearner
java.lang.Object
org.tweetyproject.arg.dung.learning.OptimizedParallelAFLearner
- All Implemented Interfaces:
AFLearner
-
Constructor Summary
ConstructorsConstructorDescriptioninitialize 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 conditionslongcompute the number of argumentation frameworks that satisfy the internal acceptance conditionslonggetNumberOfFrameworks(boolean shortcut) booleanlearnLabeling(Input labeling) learn a single labeling i.e.booleanlearnLabelings(Collection<Input> inputs) voidprints statusvoidprintStatus(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:
learnLabelingin interfaceAFLearner- Parameters:
labeling- some labeling of the set of arguments- Returns:
- true if the labeling was learned successfully
-
getModels
Description copied from interface:AFLearnercompute 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:AFLearnercompute the number of argumentation frameworks that satisfy the internal acceptance conditions- Specified by:
getNumberOfFrameworksin interfaceAFLearner- Returns:
- number of afs that produce all processed input labelings
-
getNumberOfFrameworks
public long getNumberOfFrameworks(boolean shortcut) - Specified by:
getNumberOfFrameworksin interfaceAFLearner- Parameters:
shortcut- whether shortcut is applied- Returns:
- number of frameworks
-