Cold Start
COLD_START
Source code in engines/contentFilterEngine/miscellaneous_techniques/cold_start.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
__init__(method='content_based', n_neighbors=5)
Initialize cold start handling.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
method
|
str
|
Cold start strategy ('content_based', 'popularity', 'hybrid') |
'content_based'
|
n_neighbors
|
int
|
Number of neighbors for similarity-based methods |
5
|
Source code in engines/contentFilterEngine/miscellaneous_techniques/cold_start.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
fit(item_features, interaction_matrix=None)
Fit the cold start handler.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
item_features
|
Content features of items |
required | |
interaction_matrix
|
User-item interaction matrix (optional) |
None
|
Source code in engines/contentFilterEngine/miscellaneous_techniques/cold_start.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
recommend_for_new_user(user_profile=None)
Generate recommendations for a new user.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
user_profile
|
User preferences or features (optional) |
None
|
Source code in engines/contentFilterEngine/miscellaneous_techniques/cold_start.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|