public class DifferenceMiner extends SocialGraphMiner
SocialGraphMiner
that wraps a miner predictions so as not to predict the top of a base miner's predictions
(e.g. DHR@k,withhold of a miner is obtained if HitRate@k is calculated over the outcome of
new AdditionalDiscoveryMiner(miner, new RepeatAndReplyMiner(cen), withhold)
.SocialGraphMiner.InteractionType, SocialGraphMiner.SocialGraphMinerParameters
Constructor | Description |
---|---|
DifferenceMiner(SocialGraphMiner discoveryMiner,
SocialGraphMiner baseMiner,
int withholdTopOfBaseMiner) |
Modifier and Type | Method | Description |
---|---|---|
SocialGraphMiner.SocialGraphMinerParameters |
constructModelParameterObject(eu.h2020.helios_social.core.contextualegonetwork.Interaction interaction) |
|
void |
newInteractionParameters(eu.h2020.helios_social.core.contextualegonetwork.Interaction interaction,
SocialGraphMiner.SocialGraphMinerParameters neighborModelParameters,
SocialGraphMiner.InteractionType interactionType) |
|
double |
predictNewInteraction(eu.h2020.helios_social.core.contextualegonetwork.Context context,
eu.h2020.helios_social.core.contextualegonetwork.Node destinationNode) |
Predicts the weight of performing a SEND interaction between the given context's ego and a destination node
within a given context.
|
java.util.HashMap<eu.h2020.helios_social.core.contextualegonetwork.Node,java.lang.Double> |
recommendInteractions(eu.h2020.helios_social.core.contextualegonetwork.Context context) |
Calls
SocialGraphMiner.predictNewInteraction(Context, Node) to score the likelihood of interacting with all nodes
of the given context. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextualEgoNetwork, getModelParameterObject, getModelParameters, newInteraction, setSendPermision
public DifferenceMiner(SocialGraphMiner discoveryMiner, SocialGraphMiner baseMiner, int withholdTopOfBaseMiner)
public double predictNewInteraction(eu.h2020.helios_social.core.contextualegonetwork.Context context, eu.h2020.helios_social.core.contextualegonetwork.Node destinationNode)
SocialGraphMiner
predictNewInteraction
in class SocialGraphMiner
context
- The context in which to perform the prediction.destinationNode
- The destination node of the interaction.public java.util.HashMap<eu.h2020.helios_social.core.contextualegonetwork.Node,java.lang.Double> recommendInteractions(eu.h2020.helios_social.core.contextualegonetwork.Context context)
SocialGraphMiner
SocialGraphMiner.predictNewInteraction(Context, Node)
to score the likelihood of interacting with all nodes
of the given context.recommendInteractions
in class SocialGraphMiner
context
- The context for which to recommend interactions.public void newInteractionParameters(eu.h2020.helios_social.core.contextualegonetwork.Interaction interaction, SocialGraphMiner.SocialGraphMinerParameters neighborModelParameters, SocialGraphMiner.InteractionType interactionType)
newInteractionParameters
in class SocialGraphMiner
public SocialGraphMiner.SocialGraphMinerParameters constructModelParameterObject(eu.h2020.helios_social.core.contextualegonetwork.Interaction interaction)