Showing 14 of 653 total issues
ItemList
has 31 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ItemList:
"""
Representation of a (usually ordered) list of items, possibly with scores
and other associated data; many components take and return item lists. Item
lists are to be treated as **immutable** — create a new list with modified
Dataset
has 24 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Dataset(ABC):
"""
Representation of a data set for LensKit training, evaluation, etc. Data can
be accessed in a variety of formats depending on the needs of a component.
Function fit
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def fit(self, data: Dataset, **kwargs):
"""
Train a FunkSVD model.
Args:
Function fit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def fit(self, data: Dataset, **kwargs):
"""
Train a model.
The model-training process depends on ``save_nbrs`` and ``min_sim``, but *not* on other
Function predict_for_user
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def predict_for_user(self, user, items, ratings=None):
"""
Compute predictions for a user and items.
Args:
Avoid too many return
statements within this function. Open
Open
return False
Avoid too many return
statements within this function. Open
Open
return NotImplemented
Avoid too many return
statements within this function. Open
Open
return True
Avoid too many return
statements within this function. Open
Open
return True
Avoid too many return
statements within this function. Open
Open
return reduce_storage(obj)
Avoid too many return
statements within this function. Open
Open
return True
Avoid too many return
statements within this function. Open
Open
return True
Avoid too many return
statements within this function. Open
Open
return False
Avoid too many return
statements within this function. Open
Open
return cls(user_id=data)