Getting 'ValueError: shapes not aligned' on SciKit Linear Regression

前端 未结 3 815
死守一世寂寞
死守一世寂寞 2021-02-08 20:44

Quite new to SciKit and linear algebra/machine learning with Python in general, so I can\'t seem to solve the following:

I have a training set and a test set of data, co

3条回答
  •  庸人自扰
    2021-02-08 20:59

    For anyone interested: I ended up merging the train and test set, then generating the dummies, and then splitting the data again at exactly the same fraction. That way there wasn't any issue with different shapes anymore, as it generated exactly the same dummy data.

提交回复
热议问题