nn_prune_head: Prune top layer(s) of a tabnet network

nn_prune_head.tabnet_fitR Documentation

Prune top layer(s) of a tabnet network

Description

Prune head_size last layers of a tabnet network in order to use the pruned module as a sequential embedding module.

Usage

nn_prune_head.tabnet_fit(x, head_size)

nn_prune_head.tabnet_pretrain(x, head_size)

Arguments

x

nn_network to prune

head_size

number of nn_layers to prune, should be less than 2

Value

a tabnet network with the top nn_layer removed


tabnet documentation built on June 22, 2024, 10:22 a.m.