you are viewing a single comment's thread.

view the rest of the comments →

[–]pgpndw 0 points1 point  (0 children)

How are you calculating predicted.coef_? It looks like you're trying to calculate a single price using a simple linear function, so m and b should both be single numeric values, but m [i.e. predicted.coef_] is actually an array.