title: use caffe to train Lenet with CSV data
body: <p>Excuse me, I have a question on using caffe for hd data? I try to run an example on the Kaggle mnist csv data with the  following steps</p>
  
  <ol>
  <li><p>use <code>h5py</code> to convert it to h5 data. (I use the caffe-example.py to convert)</p></li>
  <li><p>Then modify the lenet_train_test_prototxt and train it. I am quite at a loss of this step. </p></li>
  </ol>
  
  <p>The only change I made here is</p>
  
  <pre><code>layer {
    name: "mnist"
    type: "HDF5Data"
    top: "data"
    top: "label"
    include {
      phase: TRAIN
    }
    transform_param {
      scale: 0.00390625
    }
    data_param {
      source: "data/mnist_train_h5.txt"
      batch_size: 64
    }
  }
  </code></pre>
  
  <p>how to change the lenet_train_test_prototxt to suit the data? Or also there are some other files I need to change? The error log is</p>
  
  <pre><code>enF0724 18:21:11.052737 79373 hdf5_data_layer.cpp:76] Check failed: !this-&gt;layer_param_.has_transform_param() HDF5Data does not transform data.
  
  &gt; *** Check failure stack trace: ***
  &gt;     @     0x7fe8188bbdaa  (unknown)
  &gt;     @     0x7fe8188bbce4  (unknown)
  &gt;     @     0x7fe8188bb6e6  (unknown)
  &gt;     @     0x7fe8188be687  (unknown)
  &gt;     @     0x7fe818caec10  caffe::HDF5DataLayer&lt;&gt;::LayerSetUp()
  &gt;     @     0x7fe818c520a3  caffe::Net&lt;&gt;::Init()
  &gt;     @     0x7fe818c53e12  caffe::Net&lt;&gt;::Net()
  &gt;     @     0x7fe818c0ba20  caffe::Solver&lt;&gt;::InitTrainNet()
  &gt;     @     0x7fe818c0c9c3  caffe::Solver&lt;&gt;::Init()
  &gt;     @     0x7fe818c0cb96  caffe::Solver&lt;&gt;::Solver()
  &gt;     @           0x40c8f0  caffe::GetSolver&lt;&gt;()
  &gt;     @           0x406541  train()
  &gt;     @           0x404a81  main
  &gt;     @     0x7fe817dcdec5  (unknown)
  &gt;     @           0x40502d  (unknown)
  &gt;     @              (nil)  (unknown) Aborted (core dumped)ter code here
  </code></pre>