public class WeightedMiner extends SocialGraphMinerCombination
SocialGraphMiner
implementations to produce combined scores.
It extends the miner management of SocialGraphMinerCombination
. Miner weights are 1 by
default and can be changed by calling theSocialGraphMiner.InteractionType, SocialGraphMiner.SocialGraphMinerParameters
Constructor | Description |
---|---|
WeightedMiner(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork contextualEgoNetwork) |
Modifier and Type | Method | Description |
---|---|---|
double |
getMinerWeight(java.lang.String minerName) |
Retrieves the weight associated with the provided miner name.
|
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.
|
SocialGraphMinerCombination |
setMinerWeight(java.lang.String minerName,
double minerWeight) |
Gets a created miner with
SocialGraphMinerCombination.getMiner(String) and associates a new weight with it. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextualEgoNetwork, getModelParameterObject, getModelParameters, newInteraction, recommendInteractions, setSendPermision
constructModelParameterObject, createMiner, getCreatedMinerNames, getMiner, newInteractionParameters, registerMiner
public WeightedMiner(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork contextualEgoNetwork)
public double getMinerWeight(java.lang.String minerName)
minerName
- The registered miner's name.setMinerWeight(String, double)
public SocialGraphMinerCombination setMinerWeight(java.lang.String minerName, double minerWeight)
SocialGraphMinerCombination.getMiner(String)
and associates a new weight with it.
Miner weight of zero makes the miner not participate in predictions.
predictNewInteraction(Context, Node)
and SocialGraphMiner.recommendInteractions(Context)
.minerName
- The name of the miner whose weight is set.minerWeight
- The weight to associate with the miner. Should lie in the range [0,1].this
miner.getMinerWeight(String)
,
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.