Just make your cost function only be a function of the two parameters and pass in the other as a constant.
2 Likes
Just make your cost function only be a function of the two parameters and pass in the other as a constant.