Chemical segregation

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

Hey @shreyanarula3, this is the sequence of steps you should follow,

  1. Load the x matrix and ymatrix
  2. Normalize the x matrix by using formula X = (X - u)/ std
  3. Reshape Y into (no. of examples, 1) (since model takes that input).
  4. 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. :blush: