recbole.utils.enum_type¶
-
class
recbole.utils.enum_type.
DataLoaderType
(value)[source]¶ Bases:
enum.Enum
Type of DataLoaders.
ORIGIN
: Original DataLoaderFULL
: DataLoader for full-sort evaluationNEGSAMPLE
: DataLoader for negative sample evaluation
-
FULL
= 2¶
-
NEGSAMPLE
= 3¶
-
ORIGIN
= 1¶
-
class
recbole.utils.enum_type.
EvaluatorType
(value)[source]¶ Bases:
enum.Enum
Type for evaluation metrics.
RANKING
: Ranking metrics like NDCG, Recall, etc.INDIVIDUAL
: Individual metrics like AUC, etc.
-
INDIVIDUAL
= 2¶
-
RANKING
= 1¶
-
class
recbole.utils.enum_type.
FeatureSource
(value)[source]¶ Bases:
enum.Enum
Source of features.
INTERACTION
: Features from.inter
(other thanuser_id
anditem_id
).USER
: Features from.user
(other thanuser_id
).ITEM
: Features from.item
(other thanitem_id
).USER_ID
:user_id
feature ininter_feat
anduser_feat
.ITEM_ID
:item_id
feature ininter_feat
anditem_feat
.KG
: Features from.kg
.NET
: Features from.net
.
-
INTERACTION
= 'inter'¶
-
ITEM
= 'item'¶
-
ITEM_ID
= 'item_id'¶
-
KG
= 'kg'¶
-
NET
= 'net'¶
-
USER
= 'user'¶
-
USER_ID
= 'user_id'¶
-
class
recbole.utils.enum_type.
FeatureType
(value)[source]¶ Bases:
enum.Enum
Type of features.
TOKEN
: Token features like user_id and item_id.FLOAT
: Float features like rating and timestamp.TOKEN_SEQ
: Token sequence features like review.FLOAT_SEQ
: Float sequence features like pretrained vector.
-
FLOAT
= 'float'¶
-
FLOAT_SEQ
= 'float_seq'¶
-
TOKEN
= 'token'¶
-
TOKEN_SEQ
= 'token_seq'¶
-
class
recbole.utils.enum_type.
InputType
(value)[source]¶ Bases:
enum.Enum
Type of Models’ input.
POINTWISE
: Point-wise input, likeuid, iid, label
.PAIRWISE
: Pair-wise input, likeuid, pos_iid, neg_iid
.
-
LISTWISE
= 3¶
-
PAIRWISE
= 2¶
-
POINTWISE
= 1¶
-
class
recbole.utils.enum_type.
KGDataLoaderState
(value)[source]¶ Bases:
enum.Enum
States for Knowledge-based DataLoader.
RSKG
: Return both knowledge graph information and user-item interaction information.RS
: Only return the user-item interaction.KG
: Only return the triplets with negative examples in a knowledge graph.
-
KG
= 3¶
-
RS
= 2¶
-
RSKG
= 1¶
-
class
recbole.utils.enum_type.
ModelType
(value)[source]¶ Bases:
enum.Enum
Type of models.
GENERAL
: General RecommendationSEQUENTIAL
: Sequential RecommendationCONTEXT
: Context-aware RecommendationKNOWLEDGE
: Knowledge-based Recommendation
-
CONTEXT
= 3¶
-
GENERAL
= 1¶
-
KNOWLEDGE
= 4¶
-
SEQUENTIAL
= 2¶
-
SOCIAL
= 5¶
-
TRADITIONAL
= 6¶