Learn R Programming

lame (version 1.3.4)

ame_memory_settings: Display memory usage information for AME models

Description

Shows estimated memory usage for networks of given size. Memory optimization is automatic, so this is informational only.

Usage

ame_memory_settings(n_nodes, R = 2)

Value

Invisibly returns memory estimates

Arguments

n_nodes

Number of nodes in network

R

Rank of multiplicative effects (default: 2)

Author

Cassy Dorff, Shahryar Minhas, Tosin Salau

Details

Memory levers available in the package:

  • Run compact_ame() on a fitted model to drop empty slots and, for genuinely sparse posterior means, use sparse storage via use_sparse_matrices = TRUE

  • Increase odens in ame()/lame() to store fewer posterior draws

  • Pass posterior_opts = list(thin_UV = ..., thin_ab = ...) to thin the stored latent-factor and additive-effect draws