org.dllearner.utilities.examples
Class ExampleContainer
java.lang.Object
org.dllearner.utilities.examples.ExampleContainer
- All Implemented Interfaces:
- Comparable<ExampleContainer>
public class ExampleContainer
- extends Object
- implements Comparable<ExampleContainer>
A simple container for storing pos and negexamples,
basically a more simple parameter or return value.
It also contains static functions to test if all example sets are different.
- Author:
- Sebastian Hellmann
ExampleContainer
public ExampleContainer(SortedSet<Individual> positiveExamples,
SortedSet<Individual> negativeExamples)
add
public static boolean add(ExampleContainer e)
- adds to a global example repository.
returns false, if the set is contained already
- Parameters:
e -
- Returns:
compareTo
public int compareTo(ExampleContainer e)
- Specified by:
compareTo in interface Comparable<ExampleContainer>
getNegativeExamples
public SortedSet<Individual> getNegativeExamples()
getPositiveExamples
public SortedSet<Individual> getPositiveExamples()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann