net_deprune: Undo Network Pruning

net_depruneR Documentation

Undo Network Pruning

Description

Restores the original (pre-pruning) weights of a network pruned by net_prune, without recomputation. The pruning record is kept, so net_reprune can re-apply it.

Usage

net_deprune(x, ...)

## S3 method for class 'netobject'
net_deprune(x, ...)

## S3 method for class 'netobject_group'
net_deprune(x, ...)

## Default S3 method:
net_deprune(x, ...)

Arguments

x

A pruned netobject or netobject_group.

...

Ignored.

Value

The network (or group) with original weights restored and its pruning marked inactive.

See Also

net_prune, net_reprune

Examples

seqs <- data.frame(V1 = c("A","B","C"), V2 = c("B","C","A"),
                   V3 = c("C","A","B"))
net    <- build_network(seqs, method = "relative")
pruned <- net_prune(net, threshold = 0.2)
net_deprune(pruned)

Nestimate documentation built on July 11, 2026, 1:09 a.m.