---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-130-7275bf06953d> in <module>
----> 1 logreg_classifier.fit(X_train, y_train)
/usr/local/lib/python3.6/dist-packages/sklearn/linear_model/logistic.py in fit(self, X, y, sample_weight)
1286
1287 X, y = check_X_y(X, y, accept_sparse='csr', dtype=_dtype, order="C",
-> 1288 accept_large_sparse=solver != 'liblinear')
1289 check_classification_targets(y)
1290 self.classes_ = np.unique(y)
/usr/local/lib/python3.6/dist-packages/sklearn/utils/validation.py in check_X_y(X, y, accept_sparse, accept_large_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)
764 y = y.astype(np.float64)
765
--> 766 check_consistent_length(X, y)
767
768 return X, y
/usr/local/lib/python3.6/dist-packages/sklearn/utils/validation.py in check_consistent_length(*arrays)
233 if len(uniques) > 1:
234 raise ValueError("Found input variables with inconsistent numbers of"
--> 235 " samples: %r" % [int(l) for l in lengths])
236
237
ValueError: Found input variables with inconsistent numbers of samples: [8000, 7998]