recommends Package¶
recommends
Package¶
converters
Module¶
-
class
recommends.converters.
IdentifierManager
[source]¶ Bases:
object
-
ctypes
¶
-
get_identifier
(obj, site_id)[source]¶ Given a Django Model, returns a string identifier in the format <app_label>.<model>:<site_id>:<object_id>.
-
sites
¶
-
-
recommends.converters.
convert_vote_list_to_itemprefs
(vote_list)[source]¶ Return a item-centerd prefernce matrix.
vote_list must be
composed of (user_id, object_identifier, rating)object_identifier
is any string that uniquely identifies the object ie: <app_label>.<model>:<object_id>.The
utils.get_identifier
method is provided as convenience for creating such identifiers.
-
recommends.converters.
convert_vote_list_to_userprefs
(vote_list)[source]¶ Return a user-centerd prefernce matrix.
vote_list must be
composed of (user_id, object_identifier, rating)object_identifier
is any string that uniquely identifies the object ie: <app_label>.<model>:<object_id>.The
utils.get_identifier
method is provided as convenience for creating such identifiers.
models
Module¶
settings
Module¶
similarities
Module¶
-
recommends.similarities.
sim_distance
¶ staticmethod(function) -> method
Convert a function to be a static method.
A static method does not receive an implicit first argument. To declare a static method, use this idiom:
class C: def f(arg1, arg2, ...): ... f = staticmethod(f)It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class.
Static methods in Python are similar to those found in Java or C++. For a more advanced concept, see the classmethod builtin.
-
recommends.similarities.
sim_pearson
¶ staticmethod(function) -> method
Convert a function to be a static method.
A static method does not receive an implicit first argument. To declare a static method, use this idiom:
class C: def f(arg1, arg2, ...): ... f = staticmethod(f)It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class.
Static methods in Python are similar to those found in Java or C++. For a more advanced concept, see the classmethod builtin.