Neural Networks using PyTorch
This page details the basics of setting and training a neural network in Pytorch. Pytorch provides a set of classes that simplify some of the construction, information of which can be found at: Neural Network ClassesInstantiating a Neural Network
The following code instantiates a basic neural network model
network = nn.Sequential(
nn.Linear(1, 5),
nn.Tanh(),
nn.Linear(5,1)
)