Module Expr Str ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body Expr Str Raise Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body Expr Str Raise Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Raise Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad kwarg body Expr Str Raise Call NameLoad Str decorator_list decorator_list
N/A N/A 
Generalized Recommender models amd utility classes.

This module contains basic memory recommender interfaces used throughout
the whole scikit-crab package as also utility classes.

The interfaces are realized as abstract base classes (ie., some optional
functionality is provided in the interface itself, so that the interfaces
can be subclassed).

 base MemoryBasedRecommender ItemRecommender N/A MemoryBasedRecommender N/A most_similar_items N/A N/A self item_id how_many N/A None N/A N/A 
        Return the most similar items to the given item, ordered
        from most similar to least.

        Parameters
        -----------
        item_id:  int or string
            ID of item for which to find most similar other items

        how_many: int
            Desired number of most similar items to find
         N/A N/A NotImplementedError ItemRecommender is an abstract class. N/A recommended_because N/A N/A self user_id item_id how_many N/A params N/A N/A 
        Returns the items that were most influential in recommending a given item
        to a given user. In most implementations, this method will return items
        that the user prefers and that are similar to the given item.

        Parameters
        -----------
        user_id : int or string
            ID of the user who was recommended the item

        item_id: int or string
            ID of item that was recommended

        how_many: int
            Maximum number of items to return.

        Returns
        ----------
        The list of items ordered from most influential in recommended the given item to least
         N/A N/A NotImplementedError ItemRecommender is an abstract class. N/A N/A UserRecommender N/A MemoryBasedRecommender N/A most_similar_users N/A N/A self user_id how_many N/A None N/A N/A 
        Return the most similar users to the given user, ordered
        from most similar to least.

        Parameters
        -----------
        user_id:  int or string
            ID of user for which to find most similar other users

        how_many: int
            Desired number of most similar users to find
         N/A N/A NotImplementedError UserRecommender is an abstract class. N/A recommended_because N/A N/A self user_id item_id how_many N/A params N/A N/A 
        Returns the users that were most influential in recommending a given item
        to a given user. In most implementations, this method will return users
        that prefers the recommended item and that are similar to the given user.

        Parameters
        -----------
        user_id : int or string
            ID of the user who was recommended the item

        item_id: int or string
            ID of item that was recommended

        how_many: int
            Maximum number of items to return.

        Returns
        ----------
        The list of users ordered from most influential in recommended the given item to least
         N/A N/A NotImplementedError UserRecommender is an abstract class. N/A N/A BaseCandidateItemsStrategy N/A object N/A N/A 
    Base implementation for retrieving
    all items that could possibly be recommended to the user
     candidate_items N/A N/A self user_id data_model N/A params N/A N/A 
        Return the candidate items that could possibly be recommended to the user

        Parameters
        -----------
        user_id:  int or string
            ID of user for which to find most similar other users

        data_model: The data model that will be the source for the possible
            candidates
         N/A N/A NotImplementedError BaseCandidateItemsStrategy is an abstract class. N/A N/A BaseUserNeighborhoodStrategy N/A object N/A N/A 
    Base implementation for retrieving
    all users that could possibly be select as part of the neighborhood.
     user_neighborhood N/A N/A self user_id data_model n_similarity distance n_users N/A user_similarity None None params N/A N/A 
        Computes a neighborhood consisting of the  n users to a given user based on the
        strategy implemented in this method.
        Parameters
        -----------
        user_id:  int or string
            ID of user for which to find most similar other users

        data_model: DataModel instance
            The data model that will be the source for the possible
            candidates

        n_similarity: string
            The similarity to compute the neighborhood (default = user_similarity)

        distance: function
            Pairwise metric to compute the similarity between the users.

        nhood_size: int
            The neighborhood size (default = None all users)

         N/A N/A NotImplementedError BaseCandidateItemsStrategy is an abstract class. N/A N/A