Parametric model example
Imagine that we are asked to estimate the price of a house given its square footage and number of bathrooms. How many parameters are we going to need to learn? How many parameters will we have to learn for our example?
Well, given the square footage and number of bathrooms we will have to learn two parameters. So, our function can be expressed as the estimated price given two variables—square footage and the number of bathrooms—P1 and P2. P1 will be the relationship between square footage and price. P2 will be the relationship between the number of bathrooms and price.
The following code shows the problem set up in Python. x1 is our first variable—the amount of square footage. You can see that this ranges from anything ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access