title: 'list' object has no attribute 'dtype'
body: <p>I have error <code>'list' object has no attribute 'dtype'</code> while run my program. When I checked the problem seems because of i try to train my machine learning using list as my input.</p>
  <p><strong>This is my list</strong>:</p>
  <pre><code>list train:
  [array([ 1.,  1.,  1., -1., -1.,  1.,  1.,  1.,  1., -1.,  1.,  1., -1.,
          1.,  1.,  1., -1., -1.,  1., -1., -1., -1., -1., -1., -1.,  1.,
         -1.,  1.,  1.,  1.,  1.]), array([ 1.,  1.,  1., -1., -1.,  1.,  1.,  1.,  1., -1.,  1.,  1., -1.,
          1.,  1.,  1., -1., -1.,  1., -1., -1., -1., -1., -1., -1.,  1.,
         -1.,  1.,  1.,  1.,  1.]), array([ 1.,  1.,  1., -1., -1.,  1.,  1.,  1.,  1., -1.,  1.,  1., -1.,
          1.,  1.,  1., -1., -1.,  1., -1., -1., -1., -1., -1., -1.,  1.,
         -1.,  1.,  1.,  1.,  1.]), array([ 1.,  1.,  1., -1., -1.,  1.,  1.,  1.,  1., -1.,  1.,  1., -1.,
          1.,  1.,  1., -1., -1.,  1., -1., -1., -1., -1., -1., -1.,  1.,
         -1.,  1.,  1.,  1.,  1.]), array([ 1.,  1.,  1., -1., -1.,  1.,  1.,  1.,  1., -1.,  1.,  1., -1.,
          1.,  1.,  1., -1., -1.,  1., -1., -1., -1., -1., -1., -1.,  1.,
         -1.,  1.,  1.,  1.,  1.])]
  </code></pre>
  <p><strong>This is my program:</strong></p>
  <pre><code>X, y = load_svmlight_file(filedir)
  X_train, X_test, y_train, y_test = train_test_split(X, y, train_size=0.8, random_state=0)
  print 'X_test',X_test
  
  #my machine learning
  clf1=Pa1()
  clf2=Ogd()
  clf3=Rda()
  
  skf = StratifiedKFold(n_splits=5, shuffle=False, random_state=0) 
  lst_train_pred1 = []
  lst_test_pred1 =[]
  lst_train_pred2 = []
  lst_test_pred2 =[]
     
  for train_index, test_index in skf.split(X_train, y_train): 
      x_train_fold, x_test_fold = X_train[train_index], X_train[test_index] 
      y_train_fold, y_test_fold = y_train[train_index], y_train[test_index] 
      clf1.fit(x_train_fold, y_train_fold)
      clf2.fit(x_train_fold, y_train_fold)
      #1
      testpred1 = clf1.predict(X_test)
      trainpred1 = clf1.predict(x_test_fold)
      lst_train_pred1.append(trainpred)
      lst_test_pred1.append(testpred)
      #2
      testpred2 = clf2.predict(X_test)
      trainpred2 = clf2.predict(x_test_fold)
      lst_train_pred2.append(trainpred)
      lst_test_pred2.append(testpred)
  
  list_train = lst_train_pred1+lst_train_pred2
  print 'list train:\n',list_train
  print '\n'
  list_test = lst_test_pred1+lst_test_pred2
  print 'list test:\n',list_test
  
  finalpred = clf3.fit(list_train, y_train)
  finaltest = clf3.predict(list_test, y_test)
  </code></pre>
  <p><strong>traceback error</strong></p>
  <pre><code>ttributeError                            Traceback (most recent call last)
  &lt;ipython-input-143-67930a24a60a&gt; in &lt;module&gt;()
       59 print 'list test\n',list_test
       60 
  ---&gt; 61 finalpred = clf3.fit(list_train, y_train)
       62 finaltest = clf3.predict(list_test, y_test)
  
  /home/nida/pylibol/python/classifiers_data.pyc in fit(self, X, Y)
      373                 except AttributeError as e:
      374                         self.classifier = pysol.SOL('rda', num_class, **self.params)
  --&gt; 375                         train_accuracy = self.classifier.fit(X, Y_new)
      376                         return train_accuracy
      377 
  
  python/pysol.pyx in python.pysol.SOL.fit (python/pysol.cpp:4250)()
  
  python/pysol.pyx in python.pysol.SOL.__load_data (python/pysol.cpp:3777)()
  
  AttributeError: 'list' object has no attribute 'dtype'
  </code></pre>
  <p>what should i do to normalize my list so that i can train my machine learning? I'm using python 2.7</p>