desmarais-lab / NetworkInference

R implementation to the netinf algorithm. Infers the most likely diffusion network from a set of events
Other
23 stars 1 forks source link

Clean up `netinf` function progress output #43

Closed flinder closed 6 years ago

flinder commented 6 years ago

This is a bit incoherent at the moment and should be fixed before the next release. I think for small networks all the status output is redundant, but for larger networks it's very important.

I was thinking of a verbosity parameter that can be set to 3 (?) different levels: quiet, progress, debug. quiet prints nothing, progress gives just progress bars for initialization and edge inference and debug gives very verbose output including information on iterations in the parameter optimization, convergence etc.

If p-value cutoff is used a progress bar doesn't make sense for the edge inference (because the total number of edges is not known), in that case progress would report the p-value of the most recently inferred edge.