|
from sklearn.linear_model import LogisticRegression
model=LogisticRegression()
model.fit(Rainfall.reshape(-1,1),Inundation.reshape(-1,1))
结果:
"if it contains a single sample.".format(array))
ValueError: Expected 2D array, got 1D array instead:
我的Rainfall和Inundation都是1列365行的数据,为啥结果就是不能运行呢,请问需要怎么改
|
|