I am learning to work with Tensorflow. I have installed most of the libraries.
# load libs
import torch
import argparse
from torchvision import datasets, transforms
import matplotlib.pyplot as plt
import numpy as np
from data.datasets import MNIST
import torch.utils.data as data_utils
from sklearn.decomposition import PCA
import torch.nn.functional as F
from torch.autograd import Variable
But I am facing an error like this:
ImportError Traceback (most recent call last)
<ipython-input-8-257b7af364e1> in <module>()
5 import matplotlib.pyplot as plt
6 import numpy as np
----> 7 from data.datasets import MNIST
8 import torch.utils.data as data_utils
9 from sklearn.decomposition import PCA
ImportError: No module named data.datasets
I have installed the "dataset" library using the following command:
sudo -H pip install dataset
But I am still seeing this error. I am using python 2.7. I am pretty new to python. Can anyone help me in identifying the missing thing. Thanks in advance.