Interface IDyadRankingPoolProvider
-
- All Superinterfaces:
IActiveLearningPoolProvider<IDyadRankingInstance>
- All Known Implementing Classes:
DyadDatasetPoolProvider
public interface IDyadRankingPoolProvider extends IActiveLearningPoolProvider<IDyadRankingInstance>
Interface for an active learning pool provider in the context of dyad ranking. It offers access to the pool of dyads both by instance features and alternative features.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<Dyad>getDyadsByAlternative(ai.libs.jaicore.math.linearalgebra.Vector alternativeFeatures)Returns the set of allDyads with the givenVectorof alternative features.java.util.Set<Dyad>getDyadsByInstance(ai.libs.jaicore.math.linearalgebra.Vector instanceFeatures)Returns the set of allDyads with the givenVectorof instance features.java.util.Collection<ai.libs.jaicore.math.linearalgebra.Vector>getInstanceFeatures()Returns aCollectionthat contains all instance features contained in the pool.intgetPoolSize()DyadRankingDatasetgetQueriedRankings()voidsetRemoveDyadsWhenQueried(boolean flag)-
Methods inherited from interface ai.libs.jaicore.ml.activelearning.IActiveLearningPoolProvider
getPool, query
-
-
-
-
Method Detail
-
getDyadsByInstance
java.util.Set<Dyad> getDyadsByInstance(ai.libs.jaicore.math.linearalgebra.Vector instanceFeatures)
Returns the set of allDyads with the givenVectorof instance features.- Parameters:
instanceFeatures-Vectorof instance features.- Returns:
Setof dyads with the givenVectorof instance features.
-
getDyadsByAlternative
java.util.Set<Dyad> getDyadsByAlternative(ai.libs.jaicore.math.linearalgebra.Vector alternativeFeatures)
Returns the set of allDyads with the givenVectorof alternative features.- Parameters:
alternativeFeatures-Vectorof alternative features.- Returns:
Setof dyads with the givenVectorof alternative features.
-
getInstanceFeatures
java.util.Collection<ai.libs.jaicore.math.linearalgebra.Vector> getInstanceFeatures()
Returns aCollectionthat contains all instance features contained in the pool.- Returns:
- A
Collectionthat contains all instance features contained in the pool.
-
setRemoveDyadsWhenQueried
void setRemoveDyadsWhenQueried(boolean flag)
-
getPoolSize
int getPoolSize()
-
getQueriedRankings
DyadRankingDataset getQueriedRankings()
-
-