DenseLightModel
- class lightautoml.ml_algo.torch_based.nn_models.DenseLightModel(n_in, n_out=1, hidden_size=[512, 750], drop_rate=0.1, act_fun=torch.nn.LeakyReLU, noise_std=0.05, num_init_features=None, use_bn=True, use_noise=False, concat_input=True, dropout_first=True, bn_momentum=0.1, ghost_batch=None, use_skip=False, leaky_gate=False, weighted_sum=True, device=torch.device, **kwargs)[source]
Bases:
ModuleRealisation of ‘denselight’ model.
- Parameters:
n_in (
int) – Input dim.n_out (
int) – Output dim.drop_rate (
Union[float,List[float]]) – Dropout rate for each layer separately or altogether.act_fun (
Module) – Activation function.noise_std (
float) – Std of noise.num_init_features (
Optional[int]) – If not none add fc layer before model with certain dim.use_bn (
bool) – Use BatchNorm.use_noise (
bool) – Use noise.concat_input (
bool) – Concatenate input to all hidden layers. # MLP Falsedropout_first (
bool) – Use dropout in the first layer or not.bn_momentum (
float) – BatchNorm momentumghost_batch (
Optional[int]) – If not none use GhoastNorm with ghost_batch.leaky_gate (
bool) – Use LeakyGate or not.use_skip (
bool) – Use another Linear model to blend them after.weighted_sum (
bool) – Use weighted blender or half-half.device (
device) – Device to compute on.