getPrediction: Get a new graph used for prediction

Description Usage Arguments Value See Also

Description

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.

Usage

1
getPrediction(g, v, new_weights)

Arguments

g,

fitted graph

v,

the vertex whose incoming edges will be updated

weights,

a numeric vector containing the weights for those incoming edges.

Value

a new updated graph that can be used to generate a prediction.

See Also

fit_weights_for_node, getObjective, getOptimizationFunction, getOptimizationFunctionNG, getPrediction


robertness/signalgraph documentation built on May 27, 2019, 10:33 a.m.