by romaaeterna · 7y ago · 0 comments
x1 * a + x2 * b + x3 * c + ... + x1000 * zzz + ...
If a, b, c ... zzz, are all fixed constants already discovered by your learning algorithm. That's a very fast calculation, and doesn't take anything like 50ms.
Also, in the real world, you can establish a significance cutoff for a lot of these constants and get something like this as your final equation:
x13 * m + x523 * cdf + x777 * wdc + x893 * ydz
Features likely include more than just the single users history, so they need to be updated often enough for the model to do fast predictions. E.g. you want your model to capture if many people are booking from the same area at once because there were results from a sports game etc, but you dont want to run an expensive query for every user of the page.
Definitely not the first thing to worry about in a startup, but better performance at Booking.com's scale is serious $$$.