View source: R/nethist_control.R
| nethist_control | R Documentation |
Constructs a control object for nethist,
multinethist, and hnethist.
nethist_control(
algorithm = "greedy",
max_itr = 5e+06,
greedy_swap_rule = "single_random",
greedy_stop_threshold = 20000,
verbose = FALSE,
...
)
## S3 method for class 'nethist_control'
print(x, ...)
algorithm |
character. Optimization algorithm. Currently only
|
max_itr |
integer. Maximum number of iterations. Default is
|
greedy_swap_rule |
character. Vertex-pair selection rule for the greedy
search. At each iteration, two vertices are drawn and their group labels
are swapped if the move improves the objective. Currently only
|
greedy_stop_threshold |
integer. Early stopping criterion for the greedy search; the algorithm terminates if the objective has not improved for this many consecutive iterations. Default is 20,000. |
verbose |
logical. Print progress messages during fitting. |
... |
Accepts deprecated argument names |
x |
a |
An object of class "nethist_control".
nethist, multinethist,
hnethist
# default control object
ctrl <- nethist_control()
print(ctrl)
# reduce iteration limit for quick testing
ctrl <- nethist_control(max_itr = 1e4, greedy_stop_threshold = 100)
data(polblog)
fit <- nethist(polblog, control = nethist_control(max_itr = 1e4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.