i dont understand how to prepare the data. there are three features her. In the video there were only 2 features. Also in which matrix do i need to add a columns of 1
Chemical segregation
Hey @shreyanarula3, this is the sequence of steps you should follow,
- Load the x matrix and ymatrix
- Normalize the x matrix by using formula X = (X - u)/ std
- Reshape Y into (no. of examples, 1) (since model takes that input).
- Finally adding a column having all ones, into X.
Here is how you can do that,
Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section.