# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import torch import torch.nn as nn class WindFarmModel(torch.nn.Module): """ MLP model for the wind farm """ def __init__(self): super(WindFarmModel, self).__init__() self.flatten = nn.Flatten() self.linear_relu_stack = nn.Sequential( nn.Linear(4, 16), nn.ReLU(), nn.Linear(16, 64), nn.ReLU(), nn.Linear(64, 256), nn.ReLU(), nn.Linear(256, 64), nn.ReLU(), nn.Linear(64, 16), nn.ReLU(), nn.Linear(16, 4), ) def forward(self, x): y_pred = self.linear_relu_stack(x) return y_pred