@@ -69,16 +69,14 @@ class NNLinearRegressor(L.LightningModule):
6969 trainer.fit(net_light_base, train_loader)
7070 trainer.validate(net_light_base, val_loader)
7171 trainer.test(net_light_base, test_loader)
72-
73- | Name | Type | Params | In sizes | Out sizes
72+ | Name | Type | Params | In sizes | Out sizes
7473 -------------------------------------------------------------
7574 0 | layers | Sequential | 15.9 K | [8, 10] | [8, 1]
7675 -------------------------------------------------------------
7776 15.9 K Trainable params
7877 0 Non-trainable params
7978 15.9 K Total params
8079 0.064 Total estimated model params size (MB)
81-
8280 ─────────────────────────────────────────────────────────────
8381 Validate metric DataLoader 0
8482 ─────────────────────────────────────────────────────────────
@@ -91,7 +89,6 @@ class NNLinearRegressor(L.LightningModule):
9189 hp_metric 29010.7734375
9290 val_loss 29010.7734375
9391 ─────────────────────────────────────────────────────────────
94-
9592 [{'val_loss': 28981.529296875, 'hp_metric': 28981.529296875}]
9693 """
9794
@@ -114,17 +111,28 @@ def __init__(
114111 Initializes the NNLinearRegressor object.
115112
116113 Args:
117- l1 (int): The number of neurons in the first hidden layer.
118- epochs (int): The number of epochs to train the model for.
119- batch_size (int): The batch size to use during training.
120- initialization (str): The initialization method to use for the weights.
121- act_fn (nn.Module): The activation function to use in the hidden layers.
122- optimizer (str): The optimizer to use during training.
123- dropout_prob (float): The probability of dropping out a neuron during training.
124- lr_mult (float): The learning rate multiplier for the optimizer.
125- patience (int): The number of epochs to wait before early stopping.
126- _L_in (int): The number of input features. Not a hyperparameter, but needed to create the network.
127- _L_out (int): The number of output classes. Not a hyperparameter, but needed to create the network.
114+ l1 (int):
115+ The number of neurons in the first hidden layer.
116+ epochs (int):
117+ The number of epochs to train the model for.
118+ batch_size (int):
119+ The batch size to use during training.
120+ initialization (str):
121+ The initialization method to use for the weights.
122+ act_fn (nn.Module):
123+ The activation function to use in the hidden layers.
124+ optimizer (str):
125+ The optimizer to use during training.
126+ dropout_prob (float):
127+ The probability of dropping out a neuron during training.
128+ lr_mult (float):
129+ The learning rate multiplier for the optimizer.
130+ patience (int):
131+ The number of epochs to wait before early stopping.
132+ _L_in (int):
133+ The number of input features. Not a hyperparameter, but needed to create the network.
134+ _L_out (int):
135+ The number of output classes. Not a hyperparameter, but needed to create the network.
128136 _torchmetric (str):
129137 The metric to use for the loss function. If `None`,
130138 then "mean_squared_error" is used.
0 commit comments