MimeSys | R Documentation |
This function generates synthetic multi-view data and performs various analyses, including plotting correlations and activity patterns.
MimeSys(
mainDir = "/Users/siddheshkulkarni/Desktop",
subDir = "plots_simulated_data",
seed.number = 1234,
sim_params = list(M = 3, p_m = c(500, 700, 1000), n = 100, K0 = 10, nPatternJ = 5, J0_m
= c(5, 6, 7), K0_m = c(5, 7, 10), S0_m = c(6, 7, 8), nu2_0 = 0.1, pi2_0 = 0.1, snr_m
= c(1, 1, 1), snr_y = 1, decaying_loadings = FALSE, decaying_type = "sqrt", pJ_zero =
0.6, pJ_sign = 0.4, pJ_zeroEntr = 0.5, pS_zero = 0.6, pS_sign = 0.4, pS_zeroEntr =
0.5, fixed_act_pattern = "YES"),
user_params = list(use_jive = TRUE, user_data = Data, snr_data = 1, Heatmap_indicator =
"YES"),
Activity_pattern_plot = TRUE,
Empirical_correlation_plot = TRUE,
Crossprd_plot = TRUE,
Data_save = TRUE
)
mainDir |
Character. The main directory where plots and data will be saved. |
subDir |
Character. The subdirectory within |
seed.number |
Numeric. Seed for random number generation. |
Activity_pattern_plot |
Logical. Whether to save the activity pattern plot. |
Crossprd_plot |
Logical. Whether to save crossproduct plots. |
Data_save |
Logical. Whether to save the generated data. |
M |
Integer. Number of views. |
p_m |
Integer vector. Number of features per view. |
n |
Integer. Train set size. |
nTest |
Integer. Test set size. |
params |
List. A list of parameters including:
|
Emprical_correlation_plot |
Logical. Whether to save the empirical correlation plot. |
A list containing the generated data and various parameters used in the simulation.
mainDir <- tempdir()
subDir <- 'plots_simulated_data'
seed.number <- 1234
M <- 2
p_m <- c(500, 700)
n <- 100
nTest <- 100
params <- list(
fixed_act_pattern = TRUE,
K0 = 10,
nPatternJ = 5,
J0_m = c(4, 5),
K0_m = c(5, 6),
S0_m = c(4, 5),
nu2_0 = 0.1,
pi2_0 = 0.1,
snr_m = NULL,
snr_y = 1,
decaying_loadings = FALSE,
decaying_type = 'sqrt',
pJ_zero = 0.6,
pJ_sign = 0.4,
pJ_zeroEntr = 0.5,
pS_zero = 0.6,
pS_sign = 0.4,
pS_zeroEntr = 0.5
)
Activity_pattern_plot <- TRUE
Emprical_correlation_plot <- TRUE
Crossprd_plot <- TRUE
Data_save <- TRUE
Data <- MimeSys(mainDir, subDir, seed.number, M, p_m, n, nTest, params, Activity_pattern_plot, Emprical_correlation_plot, Crossprd_plot, Data_save)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.