Pytorch
jerry173985
这个作者很懒,什么都没留下…
展开
-
2020-12-06
We need to report testset performanceWhy validation set is not enough and we need a seperate test set?We don’t strictly need a test set, it might be okay if some cases to have training and validation sets onluy, the purpose of the test set is to help us原创 2020-12-07 06:38:44 · 192 阅读 · 0 评论 -
pytorch -- linear regression
import numpy as np import pandas as pd import osimport matplotlib.pyplot as plimport seaborn as snsimport warningsdata = pd.read_csv('/kaggle/input/vehicle-dataset-from-cardekho/car data.csv')import torchinputs = np.asarray(data.values[:,1:3], dty原创 2020-11-25 02:34:16 · 127 阅读 · 0 评论 -
Pytorch -- Fashion MNIST using feedforward neural networks
Classifying images from Fashion MNIST using feedforward neural networksimport torchimport torchvisionimport numpy as npimport matplotlib.pyplot as pltimport torch.nn as nnimport torch.nn.functional as Ffrom torchvision.datasets import FashionMNISTf原创 2020-12-04 06:50:50 · 218 阅读 · 0 评论 -
Pytorch MNIST Multi-layer
import torchimport torchvisionimport numpy as npimport matplotlib.pyplot as pltimport torch.nn as nnimport torch.nn.functional as Ffrom torchvision.datasets import MNISTfrom torchvision.transforms import ToTensorfrom torchvision.utils import make_g原创 2020-12-04 05:18:37 · 198 阅读 · 0 评论 -
Pytorch MNIST Classification with Logistic Regression Code
Image Classification with Logistic Regression Code# Uncomment and run the commands below if imports fail# !conda install numpy pytorch torchvision cpuonly -c pytorch -y# !pip install matplotlib --upgrade --quiet!pip install jovian --upgrade --quiet#原创 2020-12-03 23:32:29 · 186 阅读 · 0 评论 -
Pytorch-logistic-regression
Working with MNIST & Logistic Regression in PyTorch# Importsimport torchimport torchvisionfrom torchvision.datasets import MNIST# Download training datasetdataset = MNIST(root='data/', download=True)When this statement is executed for the firs原创 2020-12-03 23:19:11 · 589 阅读 · 0 评论