Class Sample<T>
java.lang.Object
org.aksw.commons.collections.Sample<T>
Created by Claus Stadler
Date: Oct 12, 2010
Time: 5:51:59 PM
A pair of sets of positives and negative examples.
This class is intended to be used e.g. for training sets, test sets, in information retrieval / machine learning scenarios and such.
But also for keeping track of the sets of constant values a variable in e.g. jena expression may have.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(Collection<? extends T> positives, Collection<? extends T> negatives) voidvoidclear()static <T> Sample<T> create()static <T> Sample<T> static <T> Sample<T> static <T> Sample<T> createCopy(Collection<T> positives, Collection<T> negatives) static <T> Sample<T> createCopy(Sample<T> other) booleanisEmpty()toString()
-
Constructor Details
-
Sample
-
-
Method Details
-
create
-
createCopy
-
createCopy
-
create
-
create
-
getPositives
-
getNegatives
-
addAll
-
addAll
-
clear
public void clear() -
isEmpty
public boolean isEmpty() -
toString
-