Linear Regression in Python WITHOUT Scikit-Learn – We Are Orb – Medium
We just import numpy and matplotlib. I haven't used pandas but you can certainly do. Read this excellent article by Pankajashree R to get started with Pandas. In the second line we slice the data set and save the first column as an array to X. reshape(-1,1) tells python to convert the array into a matrix with one coloumn. "-1" tells python to figure out the rows by itself.
Dec-12-2017, 21:02:24 GMT
- Technology: