Learn practical skills, build real-world projects, and advance your career

Linear regression using PyTorch built-ins

# Uncomment the command below if PyTorch is not installed
# !conda install pytorch cpuonly -c pytorch -y
!pip install jovian --upgrade --quiet
WARNING: You are using pip version 20.1; however, version 20.1.1 is available. You should consider upgrading via the '/opt/conda/bin/python3.7 -m pip install --upgrade pip' command.

Import all libraries

import numpy as np
import torch
import jovian
import torch.nn as nn

Inputes and tragets