Description Usage Arguments Value See Also
A given vertex has a given set of incoming edges, each of these edges has weights. Upon supplying the vertex and weights on its incoming edges, this function updates the graph and returns the updated graph object.
1 | getPrediction(g, v, new_weights)
|
g, |
fitted graph |
v, |
the vertex whose incoming edges will be updated |
weights, |
a numeric vector containing the weights for those incoming edges. |
a new updated graph that can be used to generate a prediction.
fit_weights_for_node
, getObjective
, getOptimizationFunction
, getOptimizationFunctionNG
, getPrediction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.