TabNetHyperparameters
VariantTabNet neural network. See `setup_TabNet`.
Properties
batch_sizetunableinteger≥ 1Batch size.
penaltytunablenumber≥ 0Sparsity regularization penalty.
clip_valuenumber | number[] | null≥ 1 itemsGradient clip value.
losstunablestringLoss function. auto = set from outcome type.
epochstunableinteger≥ 1Number of training epochs.
drop_lasttunablebooleanDrop the last incomplete batch.
decision_widthinteger | integer[] | null≥ 1≥ 1 itemsDecision prediction layer width.
attention_widthinteger | integer[] | null≥ 1≥ 1 itemsAttention embedding width.
num_stepstunableinteger≥ 1Number of decision steps.
feature_reusagetunablenumber≥ 0Feature reusage coefficient.
mask_typetunablestringMasking function.
one of
"sparsemax""entmax"virtual_batch_sizetunableinteger≥ 1Virtual batch size (ghost batch normalization).
valid_splittunablenumber≥ 0< 1Fraction of data used for (tabnet-internal) validation.
learn_ratetunablenumber> 0Learning rate.
optimizerstringOptimizer name, resolved by the tabnet backend.
lr_schedulerstring | nullLearning-rate scheduler. NULL = none.
one of
"step""reduce_on_plateau"lr_decaytunablenumber≥ 0≤ 1Learning rate decay.
step_sizetunableinteger≥ 1Learning rate scheduler step size.
checkpoint_epochstunableinteger≥ 1Checkpoint interval in epochs.
cat_emb_dimtunableinteger≥ 1Categorical embedding dimension.
num_independenttunableinteger≥ 1Number of independent GLU layers at each encoder step.
num_sharedtunableinteger≥ 1Number of shared GLU layers at each encoder step.
num_independent_decodertunableinteger≥ 1Number of independent GLU layers for pretraining.
num_shared_decodertunableinteger≥ 1Number of shared GLU layers for pretraining.
momentumtunablenumber≥ 0Momentum for batch normalization.
pretraining_ratiotunablenumber≥ 0≤ 1Ratio of features to mask during pretraining.
devicestringCompute device.
one of
"auto""cpu""cuda"importance_sample_sizeinteger | integer[] | null≥ 1≥ 1 itemsSample size for importance calculation.
early_stopping_monitortunablestringMetric monitored for early stopping.
one of
"auto""valid_loss""train_loss"early_stopping_tolerancetunablenumber≥ 0Minimum relative improvement to reset the patience counter.
early_stopping_patiencetunableinteger≥ 0Number of epochs without improvement before stopping.
num_workersinteger≥ 0Number of subprocesses for data loading.
skip_importancebooleanSkip importance calculation.
ifwtunablebooleanInverse Frequency Weighting in classification.
Relationships
Used by