Why doesn't this work in python?
x = [] y = [] for ii in range(0,100): x.append(ii) y.append(ii) clf = LinearRegression() clf.fit(x, y) clf.predict(101) I get the error "tuple index out of range"
Why doesn't this work in python?
x = [] y = [] for ii in range(0,100): x.append(ii) y.append(ii) clf = LinearRegression() clf.fit(x, y) clf.predict(101) I get the error "tuple index out of range"