human
I am working on the file "DL0110EN/3.1.1logistic_regression_prediction.ipynb".
The first task is:
The operation is represented in the following diagram: 
<img src = "https://ibm.box.com/shared/static/1rpau4ggzepzxzu01p2j4506d5kvobbj.png" width = 800, align = "center">
<a id="ref2"></a>
<h2> Build Custom Modules</h2>

In this section, you will build a custom model. The model or object function is identical to  using nn.Sequential.
Create a logistic regression custom module:
Can you write Python program for it?
 ... What is a the Python program you requested?
assistant
#Here is the Python program you requested.

class logistic_regression(nn.Module):
    def __init__(self,n_inputs):
        super(logistic_regression,self).__init__()
        self.linear=nn.Linear(n_inputs,1)
    def forward(self,x):
        yhat=torch.sigmoid(self.linear(x))
        return yhat