net_reprune: Re-apply Network Pruning

net_repruneR Documentation

Re-apply Network Pruning

Description

Re-applies a previously computed pruning that was undone by net_deprune, without recomputation.

Usage

net_reprune(x, ...)

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

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

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

Arguments

x

A depruned netobject or netobject_group.

...

Ignored.

Value

The network (or group) with pruned weights re-applied and its pruning marked active.

See Also

net_prune, net_deprune

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)
undone <- net_deprune(pruned)
net_reprune(undone)

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