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>.

identifier_to_dict(identifier, score=None, related=False)[source]

The opposite of get_identifier()

resolve_identifier(identifier)[source]

The opposite of get_identifier()

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.

recommends.converters.model_path(obj)[source]
recommends.converters.similary_results_to_itemMatch(qs, provider)[source]

managers Module

class recommends.managers.CachedContentTypesMixin[source]

Bases: object

ctypes
get_ctype_id_for_obj(obj)[source]
class recommends.managers.DictStorageManager[source]

Bases: recommends.managers.CachedContentTypesMixin

similarity_for_objects(object_target, object_target_site, object_related, object_related_site)[source]
suggestion_for_object(user, object_recommended, object_site)[source]

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.

tasks Module

utils Module

recommends.utils.ctypes_dict()[source]
recommends.utils.filelock(*args, **kwds)[source]
recommends.utils.import_from_classname(class_name_str)[source]