If the relation between x and y is not linear, we might have to fit a more complex function. In this video we discuss how to fit non-linear functions such as polynomials. And what if some input variables are not continuous but categorical, such as a city name? One way to deal with categorical inputs is to use a one-hot encoding.