ValueError: negative dimensions are not allowed in scikit linear regression CV model with sparse matrices
问题 I recently competed in a kaggle competition and ran into problems trying to run linear CV models from scikit learn. I am aware of a similar question on stack overflow but I can't see how the accepted reply relates to my issue. Any assistance would be greatly appreciated. My code is given below: train=pd.read_csv(".../train.csv") test=pd.read_csv(".../test.csv") data=pd.read_csv(".../sampleSubmission.csv") from sklearn.feature_extraction.text import TfidfVectorizer transformer =