cost | R Documentation |
Calculate the cost generate by adding the edge = (start, end) and removing all the other conflicting edge
cost(node.start, node.end, paths, labelmat, labelmat.in.paths, sample_weights)
node.start |
start node of the edge (out-vertex) |
node.end |
end node of the edge (in-vertex) |
paths |
viable path |
labelmat |
label matrix of the samples |
labelmat.in.paths |
assigned labels of data points to the optimimum paths |
sample_weights |
weights per sample (clustering) used in loss function (all ones by default) |
a scalar representing the cost
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.