Interface IDyadRankingPoolProvider
-
- All Superinterfaces:
org.api4.java.ai.ml.core.learner.active.IActiveLearningPoolProvider<org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingInstance>
- All Known Implementing Classes:
DyadDatasetPoolProvider
public interface IDyadRankingPoolProvider extends org.api4.java.ai.ml.core.learner.active.IActiveLearningPoolProvider<org.api4.java.ai.ml.ranking.dyad.dataset.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<org.api4.java.ai.ml.ranking.dyad.dataset.IDyad>getDyadsByAlternative(org.api4.java.common.math.IVector alternativeFeatures)Returns the set of allDyads with the givenIVectorof alternative features.java.util.Set<org.api4.java.ai.ml.ranking.dyad.dataset.IDyad>getDyadsByInstance(org.api4.java.common.math.IVector instanceFeatures)Returns the set of allDyads with the givenIVectorof instance features.java.util.Collection<org.api4.java.common.math.IVector>getInstanceFeatures()Returns aCollectionthat contains all instance features contained in the pool.intgetPoolSize()DyadRankingDatasetgetQueriedRankings()voidsetRemoveDyadsWhenQueried(boolean flag)
-
-
-
Method Detail
-
getDyadsByInstance
java.util.Set<org.api4.java.ai.ml.ranking.dyad.dataset.IDyad> getDyadsByInstance(org.api4.java.common.math.IVector instanceFeatures)
Returns the set of allDyads with the givenIVectorof instance features.- Parameters:
instanceFeatures-IVectorof instance features.- Returns:
Setof dyads with the givenIVectorof instance features.
-
getDyadsByAlternative
java.util.Set<org.api4.java.ai.ml.ranking.dyad.dataset.IDyad> getDyadsByAlternative(org.api4.java.common.math.IVector alternativeFeatures)
Returns the set of allDyads with the givenIVectorof alternative features.- Parameters:
alternativeFeatures-IVectorof alternative features.- Returns:
Setof dyads with the givenIVectorof alternative features.
-
getInstanceFeatures
java.util.Collection<org.api4.java.common.math.IVector> 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()
-
-