write_configs: Write experiment configurations files

Description Usage Arguments Value Examples

View source: R/config.R

Description

This generates the JSON file on which all the experiments will be based. It just creates a JSON will the full factorial combinations of input options.

Usage

1
2
write_configs(config_df, n_batches = 50, completed_fits = c(),
  config_path = "config.json", base_id = "fit", output_dir = "./")

Arguments

factors

[list] A list of one-dimensional factors on which we compute the full cross-product.

path

[string] The path to which to save the configurations JSON.

Value

NULL. side-effects: Writes the configurations JSON to path.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
sim_factors <- list(
  "N" = c(50, 100, 200),
  "P" = c(75, 125),
  "zero_inf_prob" = c(0, 0.2, 0.5, 0.8)
)
model_factors <- list(
  "inference" = c("gibbs", "vb"),
  "method" = c("zinf_nmf", "nmf")
)
#write_configs(sim_factors, model_factors)

krisrs1128/nmfSim documentation built on May 20, 2019, 1:30 p.m.