ednn_io_prepare {PLEXI} | R Documentation |
Preparing the input and output of the EDNN for a multiplex graph
Description
Preparing the input and output of the EDNN for a multiplex graph
Usage
ednn_io_prepare(
edge.list,
edge.weight,
outcome = NULL,
indv.index = NULL,
edge.threshold = 0,
walk.rep = 10,
n.steps = 5,
random.walk = TRUE,
verbose = TRUE
)
Arguments
edge.list |
edge list as a dataframe with two columns. |
edge.weight |
edge weights as a dataframe. Each column corresponds to a graph. By default, the |
outcome |
clinical outcomes for each graph. If not mentioned, the |
indv.index |
the index of individual networks. |
edge.threshold |
numeric value to set edge weights below the threshold to zero (default: 0). the greater edge weights do not change. |
walk.rep |
number of repeats for the random walk (default: 100). |
n.steps |
number of the random walk steps (default: 5). |
random.walk |
boolean value to enable the random walk algorithm (default: TRUE). |
verbose |
if TRUE a progress bar is shown. |
Value
the input and output required to train the EDNN
Examples
myNet = network_gen(n.nodes = 50)
graphData = myNet[["data_graph"]]
edge.list = graphData[,1:2]
edge.weight = graphData[,3:4]
XY = ednn_io_prepare(edge.list, edge.weight)
X = XY[["X"]]
Y = XY[["Y"]]