powered by
simulate multiple sparse graphs and generate samples
simulation(p = 20, n, seedNum = 37, s = 0.1, ss = 0.1)
number of features (number of nodes)
a vector indicating number of samples and tasks, for example c(100,200,300) for 3 tasks and 100,200 and 300 samples for task 1, 2 and 3
seed number for random simulation
positive number that controls sparsity of the generated graphs
positive number that controls sparsity of the shared part of generated graphs
a list comprising $simulatedgraphs (multiple related simulated graphs) and $simulatedsamples (samples generated from multiple related graphs)
# NOT RUN { library(JointNets) simulateresult = simulation(p = 20, n = c(100,100)) plot(simulateresult$simulatedgraphs) # }
Run the code above in your browser using DataLab