title: matmul input operand 1 has amismatch in its core dimension error 0 when trying to run sklearn linear regression
body: <p>The error is ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)-&gt;(n?,m?)(size 8758 is different from 1)</p>
  <pre class="lang-py prettyprint-override"><code>import os
  import pickle
  from sklearn.linear_model import LinearRegression
  import numpy as np
  import sys
  import time
  
  def BowtoArray(bow):
      bow = bow.split(&quot;,&quot;) #the bag of words will always be a string of numbers separated by commas
      final = [int(i) for i in bow]
      final = np.array(final)
      return(final)
  
  TruthModel = pickle.load(open(&quot;TruthAI.p&quot;,&quot;rb&quot;))
  BiasModel = pickle.load(open(&quot;BiasAI.p&quot;,&quot;rb&quot;))
  BOW = sys.argv[1] #the bag of words is passed into terminal
  
  BOW = BowtoArray(BOW)
  
  BOW = BOW.reshape(-1,1)
  Score = [TruthModel.predict(BOW), BiasModel.predict(BOW)]
  
  f = open(&quot;pyTest.txt&quot;, &quot;w&quot;)
  f.write(str(Score))
  f.close()
  
  
  sys.exit()
  </code></pre>