def __init__(self, nbr_users=4, nbr_items=6, parameters=False, filename=False): BaseRecommender.__init__(self, nbr_users, nbr_items, filename) # Initialize the training parameters with the default value self.nbr_epochs = 200 self.feature_init = 0.1 self.learning_rate = 0.01 self.learning_rate_users = 0.01 self.learning_rate_items = 0.01 self.K_users = 0.1 self.K_items = 0.1 self.K_bias = 0.007 self.dimensionality = 40 if parameters: self.set_parameters(parameters) self.rating_cache = None self.nbr_ratings = None self.global_avg = None self.components_mean = None self.N = None self.items_feedback = None self.feedback_rated = None self.feedback_hash = None
def __init__(self, nbr_users = 4, nbr_items = 6, parameters = False, filename = False): BaseRecommender.__init__(self, nbr_users, nbr_items, filename) # Initialize the training parameters with the default value self.nbr_epochs = 200 self.feature_init = 0.1 self.learning_rate = 0.01 self.learning_rate_users = 0.01 self.learning_rate_items = 0.01 self.K_users = 0.1 self.K_items = 0.1 self.K_bias = 0.007 self.dimensionality = 40 if parameters: self.set_parameters(parameters) self.rating_cache = None self.nbr_ratings = None self.global_avg = None self.components_mean = None self.N = None self.items_feedback = None self.feedback_rated = None self.feedback_hash = None
def __init__(self, nbr_users = 4, nbr_items = 6, parameters = False, filename = False): BaseRecommender.__init__(self, nbr_users, nbr_items, filename) if parameters: self.set_parameters(parameters) self.relationship_matrix_dok = None
def __init__(self, nbr_users=4, nbr_items=6, parameters=False, filename=False): BaseRecommender.__init__(self, nbr_users, nbr_items, filename) if parameters: self.set_parameters(parameters) self.nbr_ratings = None self.global_avg = None self.N = None self.items_feedback = None self.feedback_rated = None self.feedback_hash = None self.users_sets_list = None
def __init__(self, nbr_users=4, nbr_items=6, parameters=False): BaseRecommender.__init__(self, nbr_users, nbr_items, parameters) self.neighborhood = 500
def __init__(self, nbr_users = 4, nbr_items = 6, parameters = False): BaseRecommender.__init__(self, nbr_users, nbr_items, parameters) self.neighborhood = 500