Implemented function to get optimization function.
Merge branch 'collab-filtering' of https://github.com/lucianamaroun/yelp-project into collab-filtering