public class CentralizedGNNMiner extends SocialGraphMiner
SocialGraphMiner
based on
a Graph Neural Network (GNN) architecture. Its parameters can be adjusted using a number of
setter methods.SocialGraphMiner.InteractionType, SocialGraphMiner.SocialGraphMinerParameters
Constructor | Description |
---|---|
CentralizedGNNMiner(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork contextualEgoNetwork) |
Modifier and Type | Method | Description |
---|---|---|
SocialGraphMiner.SocialGraphMinerParameters |
constructModelParameterObject(eu.h2020.helios_social.core.contextualegonetwork.Interaction interaction) |
|
GNNMiner |
getBaseMiner() |
|
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. |
void |
setReferenceNode(eu.h2020.helios_social.core.contextualegonetwork.Node node) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextualEgoNetwork, getModelParameterObject, getModelParameters, newInteraction, setSendPermision
public CentralizedGNNMiner(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork contextualEgoNetwork)
public GNNMiner getBaseMiner()
public void setReferenceNode(eu.h2020.helios_social.core.contextualegonetwork.Node node)
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)
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.