How Machines Can Learn Using TensorFlow or PyTorch