Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyCaffe: in examples/hdf5_classification.ipynb: name 'pd' is not defined #2247

Closed
tiangolo opened this issue Apr 3, 2015 · 1 comment
Closed

Comments

@tiangolo
Copy link
Contributor

tiangolo commented Apr 3, 2015

I was testing the HDF5 IPython netbook (in examples/hdf5_classification.ipynb), but when I ran the second cell I got this error:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-13a258632ba9> in <module>()
      9 # Visualize sample of the data
     10 ind = np.random.permutation(X.shape[0])[:1000]
---> 11 df = pd.DataFrame(X[ind])
     12 _ = pd.scatter_matrix(df, figsize=(9, 9), diagonal='kde', marker='o', s=40, alpha=.4, c=y[ind])

NameError: name 'pd' is not defined

It's because Pandas is not being imported in the first cell. I will create a pull request to solve it.

@shelhamer
Copy link
Member

Fixed by #2249.

myfavouritekk added a commit to myfavouritekk/caffe that referenced this issue May 15, 2015
* master:
  Makefile bugfix: OTHER_BUILD_DIR name set incorrectly when empty due to lazy variable expansion when using the `?=` operator -- change them to explicit empty string checks with simple assignment operator `:=`.
  minor cmake fix - now Caffe complains when cmake is executed if glog/gflags are not found.
  Import Pandas in HDF5 IPython notebook. Fix for issue BVLC#2247
  Net::Update: CPU_ONLY is in wrong place
  fix a typo that GFLAGS_GFLAGS_H_ -> GFLAGS_GFAGS_H_
  fix typo: swap the titles of xlabel and ylabel
  clarify Makefile.config check
  Fix RCNN model fetching script
  Abort Makefile parsing if the configuration file cannot be found.
  set default DISTRIBUTE_DIR -- fix BVLC#2328
  improved installation for osx
  Changing Image import to be imported from PIL.
matthiasplappert pushed a commit to matthiasplappert/caffe that referenced this issue Aug 10, 2015
cbfinn pushed a commit to cbfinn/caffe that referenced this issue Aug 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants