You are provided with a dataset containing different attributes of a grid. You have to accomplish two tasks. In the first one you have to regress the value of our desired attribute that is "stab". Apart from that you have to optimize the grid by finding the most optimal value of "p1".