linreg.intercept_ is obtained as an array. Why so? It should be a value. I am not able to zip it due to this
linreg.intercept_ returns a value in an array because after computing the coefficients and intercepts, they need to be stored in some form. So that's why they are returned as an array. You can change the structure of storing values by
var = list(linreg.intercept_), Then use it as you want.
Comments
0 comments
Article is closed for comments.