---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-39-0fc46e0387ae> in <module>()
----> 1 lm = lm.fit(x,y)
/usr/local/lib/python3.5/site-packages/sklearn/linear_model/logistic.py in fit(self, X, y, sample_weight)
1140
1141 X, y = check_X_y(X, y, accept_sparse='csr', dtype=np.float64,
-> 1142 order="C")
1143 check_classification_targets(y)
1144 self.classes_ = np.unique(y)
/usr/local/lib/python3.5/site-packages/sklearn/utils/validation.py in check_X_y(X, y, accept_sparse, dtype, order, copy, force_all_finite, ensure_2d, allow_nd, multi_output, ensure_min_samples, ensure_min_features, y_numeric, warn_on_dtype, estimator)
518 y = y.astype(np.float64)
519
--> 520 check_consistent_length(X, y)
521
522 return X, y
/usr/local/lib/python3.5/site-packages/sklearn/utils/validation.py in check_consistent_length(*arrays)
174 if len(uniques) > 1:
175 raise ValueError("Found arrays with inconsistent numbers of samples: "
--> 176 "%s" % str(uniques))
177
178
ValueError: Found arrays with inconsistent numbers of samples: [1 9]