# Define the MLP class MLP(nn.Module): def __init__(self): super(MLP, self).__init__() self.layers = nn.Sequential( nn.Linear(dataset['train_input'].shape[1], 64), nn.ReLU(), nn.Linear(64, 64), nn.ReLU(), nn.Linear(64, 1) ) def forward(self, x): return self.layers(x) # Instantiate the model model = MLP() summary(model, input_size=(dataset['train_input'].shape[1],))