public class TrainingExample
extends java.lang.Object
Constructor | Description |
---|---|
TrainingExample(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork contextualEgoNetwork,
java.lang.String fromString) |
|
TrainingExample(eu.h2020.helios_social.core.contextualegonetwork.Node src,
eu.h2020.helios_social.core.contextualegonetwork.Node dst,
int label) |
Modifier and Type | Method | Description |
---|---|---|
TrainingExample |
degrade(double factor) |
Multiplies the weight of the training example with a given factor.
|
eu.h2020.helios_social.core.contextualegonetwork.Node |
getDst() |
Retrieves the destination node of the training example interaction.
|
int |
getLabel() |
Retrieves the binary label the training example interaction that indicates whether whether the training example is of an existing (1) or non-existing (0) interaction.
|
eu.h2020.helios_social.core.contextualegonetwork.Node |
getSrc() |
Retrieves the destination node of the training example interaction.
|
double |
getWeight() |
Retrieves the weight of the training example.
|
java.lang.String |
toString() |
public TrainingExample(eu.h2020.helios_social.core.contextualegonetwork.Node src, eu.h2020.helios_social.core.contextualegonetwork.Node dst, int label)
public TrainingExample(eu.h2020.helios_social.core.contextualegonetwork.ContextualEgoNetwork contextualEgoNetwork, java.lang.String fromString)
public TrainingExample degrade(double factor)
factor
- A degrading factor of training example weight.this
TrainingExample instance.public eu.h2020.helios_social.core.contextualegonetwork.Node getSrc()
public eu.h2020.helios_social.core.contextualegonetwork.Node getDst()
public int getLabel()
public double getWeight()
degrade(double)
public java.lang.String toString()
toString
in class java.lang.Object