A cost function is stochastically optimized using, e.g., simulated
annealing to render a neighborhood of entities based on which content
recommendations can be provided to a user of a home entertainment system.
The cost function represents a normalized sum of rating similarity scores
from entities of the neighborhood that are related to content items
viewed by the user.