<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> from testfm . models . cutil . interface import IModel <EOL> from numpy import vdot <EOL> class FactorModel ( IModel ) : <EOL> _users = { } <EOL> _items = { } <EOL> def __init__ ( self , userf , itemf ) : <EOL> self . _users = userf <EOL> self . _items = itemf <EOL> def getName ( self ) : <EOL> return '<STR_LIT>' <EOL> def getScore ( self , user , item ) : <EOL> try : <EOL> return vdot ( self . _users [ user ] , self . _items [ item ] ) <EOL> except KeyError : <EOL> return <NUM_LIT:0.0> </s>
