ValueError unknown label type array sklearn- load_boston
<p>I am using the following code to check SGDClassifier</p>

<pre><code>import numpy as np
from sklearn.datasets import load_boston
from sklearn.linear_model import SGDClassifier
from sklearn.cross_validation import cross_val_score
from sklearn.preprocessing import StandardScaler
from sklearn.cross_validation import train_test_split

data = load_boston()
x_train, x_test, y_train, y_test = train_test_split(data.data, data.target)

x_scalar = StandardScaler()
y_scalar = StandardScaler()

x_train = x_scalar.fit_transform(x_train)
y_train = y_scalar.fit_transform(y_train)
x_test = x_scalar.transform(x_test)
y_test = y_scalar.transform(y_test)

regressor = SGDClassifier(loss='squared_loss')
scores = cross_val_score(regressor, x_train, y_train, cv=5)
print  'cross validation r scores ', scores
print 'average score ', np.mean(scores)
regressor.fit_transform(x_train, y_train)
print 'test set r score ', regressor.score(x_test,y_test)
</code></pre>

<p>However when I run it I get deprecation warnings to reshape and 
the following value error </p>

<pre><code>ValueError                                Traceback (most recent call last)
&lt;ipython-input-55-4d64d112f5db&gt; in &lt;module&gt;()
     18 
     19 regressor = SGDClassifier(loss='squared_loss')
---&gt; 20 scores = cross_val_score(regressor, x_train, y_train, cv=5)

ValueError: Unknown label type: (array([ -1.89568750e+00,  -1.75715217e+00,  -1.68255622e+00,
        -1.66124309e+00,  -1.62927339e+00,  -1.54402088e+00,
        -1.49073806e+00,  -1.41614211e+00,  -1.40548554e+00,
        -1.34154616e+00,  -1.32023303e+00,  -1.30957647e+00,
        -1.27760677e+00,  -1.26695021e+00,  -1.25629365e+00,
        -1.20301082e+00,  -1.17104113e+00,  -1.16038457e+00,....]),)
</code></pre>

<p>What could be the probable error in the code ?</p>