Binary Class Content-based filtering

In an example where we have features for items and users but the class is binary (e.g. purchase or not) how do you recommend adapting the algorithm from the lecture?

Is a Binary Cross entropy loss function the only change needed?

A nice change it is, try it and let us know how it goes.