Use Python to write a function friendly_prediction() which takesfour arguments:
-
unknown_user, a string indicating the identity of the user youare to predict attributes for;
-
features, a set of features you are to predict attributesfor;
-
bestie_dict, a dictionary of sets of the besties foreach user in the dataset, following the same format as the earlierquestions in the project;
-
feat_dict, a dictionary containing the known attributes for eachuser in the training data, across a range of features; note thatthere is no guarantee that the attribute for a given feature willbe known for every training user.
Your function should return a dictionary of features (basedonfeatures), with a predicted
OR
OR