public class SwitchableMiner extends SocialGraphMinerCombination
SocialGraphMiner
implementations.
It extends the miner management of SocialGraphMinerCombination
. The active miner can
be selected using the setActiveMiner(String)
method.SocialGraphMiner.InteractionType, SocialGraphMiner.SocialGraphMinerParameters
Constructor | Description |
---|---|
SwitchableMiner(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork contextualEgoNetwork) |
Modifier and Type | Method | Description |
---|---|---|
SocialGraphMiner |
getActiveMiner() |
Retrieves the active miner.
|
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. |
SocialGraphMiner |
setActiveMiner(java.lang.String minerName) |
Gets a created miner with
SocialGraphMinerCombination.getMiner(String) and, if such a miner is found,
this is set as the active miner. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextualEgoNetwork, getModelParameterObject, getModelParameters, newInteraction, setSendPermision
constructModelParameterObject, createMiner, getCreatedMinerNames, getMiner, newInteractionParameters, registerMiner
public SwitchableMiner(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork contextualEgoNetwork)
public SocialGraphMiner getActiveMiner()
setActiveMiner(String)
public SocialGraphMiner setActiveMiner(java.lang.String minerName)
SocialGraphMinerCombination.getMiner(String)
and, if such a miner is found,
this is set as the active miner. The active miner is subsequently called to expose its outcome
of predictNewInteraction(Context, Node)
and recommendInteractions(Context)
.
Other functionalities are shared between all created miners.minerName
- The name of the miner to set as the active one.getActiveMiner()
,
SocialGraphMinerCombination.createMiner(String, Class)
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.