You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/ItemBasedRecommendation.php
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,9 @@ class ItemBasedRecommendation extends Request {
26
26
* @var string $target_user_id ID of the user who will see the recommendations.
27
27
* Specifying the *targetUserId* is beneficial because:
28
28
* * It makes the recommendations personalized
29
-
* * Allows calculations of Actions and Conversions in the graphical user interface, as Recombee can pair the user who got recommendations and who afterwards viewed/purchased an item.
29
+
* * Allows the calculation of Actions and Conversions in the graphical user interface,
30
+
* as Recombee can pair the user who got recommendations and who afterwards viewed/purchased an item.
31
+
* For the above reasons, we encourage you to set the *targetUserId* even for anonymous/unregistered users (i.e. use their session ID).
30
32
*/
31
33
protected$target_user_id;
32
34
/**
@@ -50,7 +52,7 @@ class ItemBasedRecommendation extends Request {
50
52
*/
51
53
protected$cascade_create;
52
54
/**
53
-
* @var string $scenario Scenario defines a particular application of recommendations. It can be for example "homepage"or "cart". The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
55
+
* @var string $scenario Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". You can see each scenario in the UI separately, so you can check how well each application performs. The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
54
56
*/
55
57
protected$scenario;
56
58
/**
@@ -127,7 +129,9 @@ class ItemBasedRecommendation extends Request {
127
129
* - Description: ID of the user who will see the recommendations.
128
130
* Specifying the *targetUserId* is beneficial because:
129
131
* * It makes the recommendations personalized
130
-
* * Allows calculations of Actions and Conversions in the graphical user interface, as Recombee can pair the user who got recommendations and who afterwards viewed/purchased an item.
132
+
* * Allows the calculation of Actions and Conversions in the graphical user interface,
133
+
* as Recombee can pair the user who got recommendations and who afterwards viewed/purchased an item.
134
+
* For the above reasons, we encourage you to set the *targetUserId* even for anonymous/unregistered users (i.e. use their session ID).
131
135
* - *userImpact*
132
136
* - Type: float
133
137
* - Description: If *targetUserId* parameter is present, the recommendations are biased towards the user given. Using *userImpact*, you may control this bias. For an extreme case of `userImpact=0.0`, the interactions made by the user are not taken into account at all (with the exception of history-based blacklisting), for `userImpact=1.0`, you'll get user-based recommendation. The default value is `0.1`
@@ -145,7 +149,7 @@ class ItemBasedRecommendation extends Request {
145
149
* - Description: If item of given *itemId* or user of given *targetUserId* doesn't exist in the database, it creates the missing enity/entities and returns some (non-personalized) recommendations. This allows for example rotations in the following recommendations for the user of given *targetUserId*, as the user will be already known to the system.
146
150
* - *scenario*
147
151
* - Type: string
148
-
* - Description: Scenario defines a particular application of recommendations. It can be for example "homepage"or "cart". The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
152
+
* - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". You can see each scenario in the UI separately, so you can check how well each application performs. The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
149
153
* - *returnProperties*
150
154
* - Type: bool
151
155
* - Description: With `returnProperties=true`, property values of the recommended items are returned along with their IDs in a JSON dictionary. The acquired property values can be used for easy displaying of the recommended items to the user.
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/UserBasedRecommendation.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ class UserBasedRecommendation extends Request {
39
39
*/
40
40
protected$cascade_create;
41
41
/**
42
-
* @var string $scenario Scenario defines a particular application of recommendations. It can be for example "homepage"or "cart". The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
42
+
* @var string $scenario Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". You can see each scenario in the UI separately, so you can check how well each application performs. The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
43
43
*/
44
44
protected$scenario;
45
45
/**
@@ -125,7 +125,7 @@ class UserBasedRecommendation extends Request {
125
125
* - Description: If the user does not exist in the database, returns a list of non-personalized recommendations and creates the user in the database. This allows for example rotations in the following recommendations for that user, as the user will be already known to the system.
126
126
* - *scenario*
127
127
* - Type: string
128
-
* - Description: Scenario defines a particular application of recommendations. It can be for example "homepage"or "cart". The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
128
+
* - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". You can see each scenario in the UI separately, so you can check how well each application performs. The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
129
129
* - *returnProperties*
130
130
* - Type: bool
131
131
* - Description: With `returnProperties=true`, property values of the recommended items are returned along with their IDs in a JSON dictionary. The acquired property values can be used for easy displaying of the recommended items to the user.
0 commit comments