Logistic Regression in PyTorch

Load the Data Converting each column data to numpy array From numpy array to pytorch tensor Plotting the data Using the GPU Defining the neural network Putting neural network on GPU Loss function Setting ADAM as an optimizer Defining accuracy The main loop Plotting Loss Plotting accuracy After one epoch Plots to show performance of neural network over epochs

2 in One Neural Network

Here we present a 2 in one network. A neural network which does regression and classification at same time. Iris data set has been used in this example Loading the dataset Shuffle the dataframe Inputs and Outputs We take sepal.length, sepal.width and petal.length as an input parameter. We take petal.width as first output parameter and variety as second parameter. The […]