[go: up one dir, main page]

CN118861681A - Product recommendation model training method, product recommendation method and device - Google Patents

Product recommendation model training method, product recommendation method and device Download PDF

Info

Publication number
CN118861681A
CN118861681A CN202410890214.4A CN202410890214A CN118861681A CN 118861681 A CN118861681 A CN 118861681A CN 202410890214 A CN202410890214 A CN 202410890214A CN 118861681 A CN118861681 A CN 118861681A
Authority
CN
China
Prior art keywords
product
feature
user
feature vector
recommendation model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410890214.4A
Other languages
Chinese (zh)
Inventor
胡晓菁
徐廷
周立芳
朱煜民
马淑娟
邓曼曼
赵越强
姚翠翠
何利平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Post Information Technology Beijing Co ltd
Original Assignee
China Post Information Technology Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Post Information Technology Beijing Co ltd filed Critical China Post Information Technology Beijing Co ltd
Priority to CN202410890214.4A priority Critical patent/CN118861681A/en
Publication of CN118861681A publication Critical patent/CN118861681A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Recommending goods or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Molecular Biology (AREA)
  • Mathematical Physics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Biophysics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a training method of a product recommendation model, a product recommendation method, a device, electronic equipment and a storage medium. The training method of the product recommendation model comprises the following steps: acquiring user characteristics, product characteristics and cross behavior characteristics; determining a user feature vector and a product feature vector based on the user feature, the product feature, and the cross-behavior feature; and determining a loss value of a loss function of the product recommendation model based on the user feature vector and the product feature vector, and adjusting model parameters based on the loss value of the loss function of the product recommendation model until a training stop condition is met, so as to obtain a trained product recommendation model. According to the technical scheme, the user feature vector and the product feature vector with high dimensions are generated through the user feature, the product feature and the cross behavior feature, and further product recommendation model training is carried out based on the user feature vector and the product feature vector, so that the accuracy of the product recommendation model is effectively improved.

Description

产品推荐模型的训练方法、产品推荐方法及装置Product recommendation model training method, product recommendation method and device

技术领域Technical Field

本发明涉及人工智能技术领域,尤其涉及一种产品推荐模型的训练方法、产品推荐方法、装置、电子设备及存储介质。The present invention relates to the field of artificial intelligence technology, and in particular to a product recommendation model training method, a product recommendation method, a device, an electronic device and a storage medium.

背景技术Background Art

随着人工智能技术的发展,机器学习在产品推荐领域的应用越来越广泛。With the development of artificial intelligence technology, machine learning is being used more and more widely in the field of product recommendations.

在实现本发明的过程中,发现现有技术中至少存在以下技术问题:现有产品推荐模型的训练方案,存在模型预测精准度低的问题。In the process of implementing the present invention, it is found that there are at least the following technical problems in the prior art: the training scheme of the existing product recommendation model has the problem of low model prediction accuracy.

发明内容Summary of the invention

本发明提供了一种产品推荐模型的训练方法、产品推荐方法、装置、电子设备及存储介质,以提升产品推荐模型的精准度。The present invention provides a product recommendation model training method, a product recommendation method, a device, an electronic device and a storage medium to improve the accuracy of the product recommendation model.

根据本发明的一方面,提供了一种产品推荐模型的训练方法,包括:According to one aspect of the present invention, a method for training a product recommendation model is provided, comprising:

获取用户特征、产品特征和交叉行为特征;Obtain user characteristics, product characteristics, and cross-behavior characteristics;

基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量;Determine a user feature vector and a product feature vector based on the user feature, the product feature and the cross-behavior feature;

基于所述用户特征向量和所述产品特征向量确定所述产品推荐模型的损失函数的损失值,基于所述产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。The loss value of the loss function of the product recommendation model is determined based on the user feature vector and the product feature vector, and the model parameters are adjusted based on the loss value of the loss function of the product recommendation model until a training stop condition is met, thereby obtaining a trained product recommendation model.

根据本发明的另一方面,提供了一种产品推荐方法,包括:According to another aspect of the present invention, there is provided a product recommendation method, comprising:

获取目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征;Obtain user characteristics of target users, product characteristics of target users, and cross-behavior characteristics of target users;

将目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征输入至产品推荐模型,得到目标用户的用户特征向量和目标用户的产品特征向量;Input the user characteristics of the target user, the product characteristics of the target user, and the cross-behavior characteristics of the target user into the product recommendation model to obtain the user characteristic vector of the target user and the product characteristic vector of the target user;

基于目标用户的用户特征向量和目标用户的产品特征向量确定产品推荐结果,其中,所述产品推荐模型为本发明任一实施例所述的产品推荐模型。A product recommendation result is determined based on the user feature vector of the target user and the product feature vector of the target user, wherein the product recommendation model is the product recommendation model described in any embodiment of the present invention.

根据本发明的另一方面,提供了一种产品推荐模型的训练装置,包括:According to another aspect of the present invention, there is provided a training device for a product recommendation model, comprising:

特征数据获取模块,用于获取用户特征、产品特征和交叉行为特征;Feature data acquisition module, used to acquire user features, product features and cross-behavior features;

特征向量确定模块,用于基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量;A feature vector determination module, used to determine a user feature vector and a product feature vector based on the user feature, the product feature and the cross-behavior feature;

产品推荐模型训练模块,用于基于所述用户特征向量和所述产品特征向量确定所述产品推荐模型的损失函数的损失值,基于所述产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。The product recommendation model training module is used to determine the loss value of the loss function of the product recommendation model based on the user feature vector and the product feature vector, and adjust the model parameters based on the loss value of the loss function of the product recommendation model until the training stop condition is met, thereby obtaining a trained product recommendation model.

根据本发明的另一方面,提供了一种产品推荐装置,包括:According to another aspect of the present invention, there is provided a product recommendation device, comprising:

目标用户特征获取模块,用于获取目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征;A target user feature acquisition module is used to acquire user features of the target user, product features of the target user, and cross-behavior features of the target user;

特征向量预测模块,用于将目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征输入至产品推荐模型,得到目标用户的用户特征向量和目标用户的产品特征向量;A feature vector prediction module is used to input the user features of the target user, the product features of the target user, and the cross-behavior features of the target user into the product recommendation model to obtain the user feature vector of the target user and the product feature vector of the target user;

产品推荐结果确定模块,用于基于目标用户的用户特征向量和目标用户的产品特征向量确定产品推荐结果,其中,所述产品推荐模型为本发明任一实施例所述的产品推荐模型。The product recommendation result determination module is used to determine the product recommendation result based on the user feature vector of the target user and the product feature vector of the target user, wherein the product recommendation model is the product recommendation model described in any embodiment of the present invention.

根据本发明的另一方面,提供了一种电子设备,所述电子设备包括:According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

至少一个处理器;at least one processor;

以及与所述至少一个处理器通信连接的存储器;and a memory communicatively coupled to the at least one processor;

其中,所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明任一实施例所述的产品推荐模型的训练方法或者本发明任一实施例所述的产品推荐方法。In which, the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the training method of the product recommendation model described in any embodiment of the present invention or the product recommendation method described in any embodiment of the present invention.

根据本发明的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本发明任一实施例所述的产品推荐模型的训练方法或者本发明任一实施例所述的产品推荐方法。According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the training method of the product recommendation model described in any embodiment of the present invention or the product recommendation method described in any embodiment of the present invention when executed.

本发明实施例的技术方案,通过获取用户特征、产品特征和交叉行为特征,进而基于用户特征、产品特征和交叉行为特征确定用户特征向量和产品特征向量,进而基于用户特征向量和产品特征向量确定产品推荐模型的损失函数的损失值,基于产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。上述技术方案,通过用户特征、产品特征和交叉行为特征生成高维的用户特征向量和产品特征向量,进而基于用户特征向量和产品特征向量进行产品推荐模型训练,有效提升了产品推荐模型的精准度。The technical solution of the embodiment of the present invention obtains user features, product features and cross-behavior features, and then determines the user feature vector and product feature vector based on the user features, product features and cross-behavior features, and then determines the loss value of the loss function of the product recommendation model based on the user feature vector and product feature vector, and adjusts the model parameters based on the loss value of the loss function of the product recommendation model until the training stop condition is met, thereby obtaining a trained product recommendation model. The above technical solution generates high-dimensional user feature vectors and product feature vectors through user features, product features and cross-behavior features, and then trains the product recommendation model based on the user feature vector and product feature vector, which effectively improves the accuracy of the product recommendation model.

应当理解,本部分所描述的内容并非旨在标识本发明的实施例的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

图1是根据本发明实施例一提供的一种产品推荐模型的训练方法的流程图;FIG1 is a flow chart of a method for training a product recommendation model according to a first embodiment of the present invention;

图2是根据本发明实施例二提供的一种产品推荐模型的训练方法的流程图;FIG2 is a flow chart of a method for training a product recommendation model according to a second embodiment of the present invention;

图3是根据本发明实施例三提供的一种产品推荐模型的训练方法的流程图;FIG3 is a flow chart of a method for training a product recommendation model according to Embodiment 3 of the present invention;

图4是根据本发明实施例提供的一种产品推荐模型的训练方法的流程图;FIG4 is a flow chart of a method for training a product recommendation model according to an embodiment of the present invention;

图5是根据本发明实施例四提供的一种产品推荐方法的流程图;FIG5 is a flow chart of a product recommendation method provided according to a fourth embodiment of the present invention;

图6是根据本发明实施例五提供的一种产品推荐模型的训练装置的结构示意图;FIG6 is a schematic diagram of the structure of a training device for a product recommendation model according to Embodiment 5 of the present invention;

图7是根据本发明实施例六提供的一种产品推荐装置的结构示意图;FIG7 is a schematic diagram of the structure of a product recommendation device provided according to Embodiment 6 of the present invention;

图8是实现本发明实施例的产品推荐模型的训练方法或者产品推荐方法的电子设备的结构示意图。FIG8 is a schematic diagram of the structure of an electronic device for implementing the product recommendation model training method or product recommendation method according to an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。本申请技术方案中对数据的获取、存储、使用、处理等均符合国家法律法规的相关规定。It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

实施例一Embodiment 1

图1为本发明实施例一提供的一种产品推荐模型的训练方法的流程图,本实施例可适用于多场景产品推荐的情况,例如报刊主界面推荐或者报刊下拉界面推荐等场景,该方法可以由产品推荐模型的训练装置来执行,该产品推荐模型的训练装置可以采用硬件和/或软件的形式实现,该产品推荐模型的训练装置可配置于终端和/或服务器中。如图1所示,该方法包括:FIG1 is a flow chart of a method for training a product recommendation model provided in the first embodiment of the present invention. This embodiment is applicable to product recommendations in multiple scenarios, such as newspaper main interface recommendations or newspaper drop-down interface recommendations. The method can be executed by a training device for a product recommendation model. The training device for a product recommendation model can be implemented in the form of hardware and/or software. The training device for a product recommendation model can be configured in a terminal and/or a server. As shown in FIG1 , the method includes:

S110、获取用户特征、产品特征和交叉行为特征。S110, obtaining user characteristics, product characteristics, and cross-behavior characteristics.

本实施例中,用户特征是指用户的基础特征。示例性地,在报刊推荐场景下,用户特征可以包括但不限于报刊订阅用户的年龄、性别和职业等信息。具体地,可以基于用户多维画像信息获取用户多个基础标签,进而基于各个基础标签之间的关联关系生成用户特征。In this embodiment, user features refer to basic features of users. For example, in the newspaper recommendation scenario, user features may include but are not limited to information such as age, gender, and occupation of newspaper subscribers. Specifically, multiple basic tags of users may be obtained based on multi-dimensional portrait information of users, and user features may be generated based on the association between the basic tags.

产品特征是指用户浏览和/或购买产品的基础特征,示例性地,在报刊推荐场景下,产品特征可以包括但不限于报刊类型、报刊价格以及报刊店铺等信息。具体地,可以对用户浏览和/或购买产品的行为数据进行挖掘分析,得到产品特征。Product features refer to the basic features of users browsing and/or purchasing products. For example, in the newspaper recommendation scenario, product features may include but are not limited to information such as newspaper type, newspaper price, and newspaper store. Specifically, the behavior data of users browsing and/or purchasing products can be mined and analyzed to obtain product features.

交叉行为特征是指用户与产品交叉的行为特征。示例性地,在报刊场景下,交叉行为特征可以包括用户浏览报刊量、用户最常浏览报刊品类和各报刊类目浏览时间间隔等。具体地,可以对用户浏览产品行为和产品订单行为数据进行行为特征与偏好特征的挖掘,得到交叉行为特征。Cross-behavior features refer to the cross-behavior features of users and products. For example, in the newspaper and periodical scenario, cross-behavior features may include the amount of newspapers and periodicals browsed by users, the newspaper and periodical categories most frequently browsed by users, and the time intervals for browsing each newspaper and periodical category. Specifically, the behavior features and preference features of user product browsing behavior and product order behavior data can be mined to obtain cross-behavior features.

S120、基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量。S120: Determine a user feature vector and a product feature vector based on the user feature, the product feature, and the cross-behavior feature.

其中,用户特征向量是指用户特征的向量化表示。产品特征向量是指产品特征的向量化表示。Among them, user feature vector refers to the vectorized representation of user features, and product feature vector refers to the vectorized representation of product features.

具体地,可以根据用户特征生成用户特征向量,还可以根据用户特征和交叉行为特征生成用户特征向量;可以根据产品特征生成产品特征向量,还可以根据产品特征和交叉行为特征生成产品特征向量,在此不做具体限定。Specifically, a user feature vector may be generated based on user features, or based on user features and cross-behavior features; a product feature vector may be generated based on product features, or based on product features and cross-behavior features, without specific limitation herein.

S130、基于所述用户特征向量和所述产品特征向量确定所述产品推荐模型的损失函数的损失值,基于所述产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。S130. Determine a loss value of a loss function of the product recommendation model based on the user feature vector and the product feature vector, and adjust model parameters based on the loss value of the loss function of the product recommendation model until a training stop condition is met, thereby obtaining a trained product recommendation model.

示例性地,损失函数可以为Sample Softmax Loss或者其他损失函数,在此不做具体限定。需要说明的是,Sample Softmax Los可以在保证交叉熵损失函数的前提下,实现对传统Softmax函数优化,从而节省产品推荐模型训练时间。具体而言,可以将用户特征向量和产品特征向量代入Sample Softmax Loss,得到损失值,进而采用Adam优化器在产品推荐模型训练过程中,可以基于损失值逐步优化各项网络参数,并通过调整超参数逐步优化ACC、AUC和F1等模型指标,直至满足训练停止条件,得到训练完成的产品推荐模型。Exemplarily, the loss function can be Sample Softmax Loss or other loss functions, which are not specifically limited here. It should be noted that Sample Softmax Loss can optimize the traditional Softmax function while ensuring the cross entropy loss function, thereby saving the training time of the product recommendation model. Specifically, the user feature vector and the product feature vector can be substituted into the Sample Softmax Loss to obtain the loss value, and then the Adam optimizer can be used in the product recommendation model training process to gradually optimize the various network parameters based on the loss value, and gradually optimize the model indicators such as ACC, AUC and F1 by adjusting the hyperparameters until the training stop conditions are met to obtain the trained product recommendation model.

本发明实施例的技术方案,通过获取用户特征、产品特征和交叉行为特征,进而基于用户特征、产品特征和交叉行为特征确定用户特征向量和产品特征向量,进而基于用户特征向量和产品特征向量确定产品推荐模型的损失函数的损失值,基于产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。上述技术方案,通过用户特征、产品特征和交叉行为特征生成高维的用户特征向量和产品特征向量,进而基于用户特征向量和产品特征向量进行产品推荐模型训练,有效提升了产品推荐模型的精准度。The technical solution of the embodiment of the present invention obtains user features, product features and cross-behavior features, and then determines the user feature vector and product feature vector based on the user features, product features and cross-behavior features, and then determines the loss value of the loss function of the product recommendation model based on the user feature vector and product feature vector, and adjusts the model parameters based on the loss value of the loss function of the product recommendation model until the training stop condition is met, thereby obtaining a trained product recommendation model. The above technical solution generates high-dimensional user feature vectors and product feature vectors through user features, product features and cross-behavior features, and then trains the product recommendation model based on the user feature vector and product feature vector, which effectively improves the accuracy of the product recommendation model.

实施例二Embodiment 2

图2为本发明实施例二提供的一种产品推荐模型的训练方法的流程图,本实施例的方法与上述实施例中提供的产品推荐模型的训练方法中各个可选方案可以结合。本实施例提供的产品推荐模型的训练方法进行了进一步优化。可选的,所述基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量,包括:基于所述用户特征和所述交叉行为特征确定用户特征向量;基于所述产品特征确定产品特征向量。Figure 2 is a flow chart of a method for training a product recommendation model provided in Embodiment 2 of the present invention. The method of this embodiment can be combined with the various optional schemes in the method for training a product recommendation model provided in the above embodiments. The training method for the product recommendation model provided in this embodiment is further optimized. Optionally, the determining of a user feature vector and a product feature vector based on the user features, the product features and the cross-behavior features includes: determining a user feature vector based on the user features and the cross-behavior features; determining a product feature vector based on the product features.

如图2所示,该方法包括:As shown in FIG. 2 , the method includes:

S210、获取用户特征、产品特征和交叉行为特征。S210, obtaining user characteristics, product characteristics, and cross-behavior characteristics.

S220、基于所述用户特征和所述交叉行为特征确定用户特征向量。S220: Determine a user feature vector based on the user feature and the cross-behavior feature.

S230、基于所述产品特征确定产品特征向量。S230: Determine a product feature vector based on the product features.

S240、基于所述用户特征向量和所述产品特征向量确定所述产品推荐模型的损失函数的损失值,基于所述产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。S240. Determine a loss value of a loss function of the product recommendation model based on the user feature vector and the product feature vector, and adjust model parameters based on the loss value of the loss function of the product recommendation model until a training stop condition is met, thereby obtaining a trained product recommendation model.

在本实施例中,可以基于两个独立的神经网络,分别生成用户特征向量与产品特征向量,即将用户特征和交叉行为特征输入一个神经网络得到用户特征向量,将产品特征输入另一个神经网络得到产品特征向量。In this embodiment, the user feature vector and the product feature vector can be generated based on two independent neural networks, that is, the user features and cross-behavior features are input into one neural network to obtain the user feature vector, and the product features are input into another neural network to obtain the product feature vector.

具体地,基于用户特征和交叉行为特征确定用户特征向量,包括:将用户特征和交叉行为特征输入至第一特征向量层,得到第一用户特征;将第一用户特征输入至第一输入层,得到第二用户特征;将第二用户特征输入至第一隐藏层,得到第三用户特征;将第三用户特征输入至第一输出层,得到用户特征向量。Specifically, determining a user feature vector based on user features and cross-behavior features includes: inputting the user features and cross-behavior features into a first feature vector layer to obtain a first user feature; inputting the first user feature into a first input layer to obtain a second user feature; inputting the second user feature into a first hidden layer to obtain a third user feature; and inputting the third user feature into a first output layer to obtain a user feature vector.

其中,第一特征向量层可以为特征embedding层,第一隐藏层可以包含两个隐藏层或者其他数量的隐藏层,在此不做具体限定。隐藏层中每个神经元与前一层神经元均连接,隐藏层的激活函数可以采用SELU函数或者其它激活函数,在此不做具体限定。需要说明的是,SELU函数具有良好的收敛性,可以有效抑制过拟合,具备良好的训练性能,可以快速收敛并有效抑制梯度爆炸情况。Among them, the first feature vector layer can be a feature embedding layer, and the first hidden layer can include two hidden layers or other number of hidden layers, which are not specifically limited here. Each neuron in the hidden layer is connected to the neurons in the previous layer, and the activation function of the hidden layer can adopt the SELU function or other activation functions, which are not specifically limited here. It should be noted that the SELU function has good convergence, can effectively suppress overfitting, has good training performance, can converge quickly and effectively suppress gradient explosion.

示例性地,可以将用户特征和交叉行为特征共同输入一个独立的神经网络,独立的神经网络包括依次连接的特征向量层、输入层、隐藏层以及输出层,输出层最终输出用户特征向量。Exemplarily, the user features and cross-behavior features may be inputted into an independent neural network together. The independent neural network includes a feature vector layer, an input layer, a hidden layer, and an output layer connected in sequence. The output layer finally outputs a user feature vector.

具体地,基于产品特征确定产品特征向量,包括:将产品特征输入第二特征向量层,得到第一产品特征;将第一产品特征输入至第二输入层,得到第二产品特征;将第二产品特征输入至第二隐藏层,得到第三产品特征;将第三产品特征输入至第二输出层,得到产品特征向量。Specifically, determining a product feature vector based on product features includes: inputting the product feature into the second feature vector layer to obtain a first product feature; inputting the first product feature into the second input layer to obtain a second product feature; inputting the second product feature into the second hidden layer to obtain a third product feature; and inputting the third product feature into the second output layer to obtain a product feature vector.

其中,第二特征向量层可以为特征embedding层,第二隐藏层可以包含两个隐藏层或者其他数量的隐藏层,在此不做具体限定。The second feature vector layer may be a feature embedding layer, and the second hidden layer may include two hidden layers or other numbers of hidden layers, which are not specifically limited herein.

示例性地,可以将产品特征输入另一个独立的神经网络,另一独立的神经网络包括依次连接的特征向量层、输入层、隐藏层以及输出层,输出层最终输出产品特征向量。Exemplarily, the product features may be input into another independent neural network, which includes a feature vector layer, an input layer, a hidden layer, and an output layer connected in sequence, and the output layer finally outputs a product feature vector.

本发明实施例的技术方案,通过基于用户特征和交叉行为特征确定用户特征向量以及基于产品特征确定产品特征向量,分别实现了用户、产品的向量化表示。The technical solution of the embodiment of the present invention realizes vectorized representation of users and products respectively by determining user feature vectors based on user features and cross-behavior features and determining product feature vectors based on product features.

实施例三Embodiment 3

图3为本发明实施例三提供的一种产品推荐模型的训练方法的流程图,本实施例的方法与上述实施例中提供的产品推荐模型的训练方法中各个可选方案可以结合。本实施例提供的产品推荐模型的训练方法进行了进一步优化。可选的,在所述基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量之前,还包括:获取推荐场景特征;将所述推荐场景特征输入至第三输入层,得到第一场景特征;将所述第一场景特征输入至第三隐藏层,得到第二场景特征;将所述第二场景特征输入至第三输出层,得到场景特征向量;相应的,所述基于所述用户特征向量和所述产品特征向量确定所述产品推荐模型的损失函数的损失值,包括:基于所述用户特征向量、所述产品特征向量和场景特征向量确定所述产品推荐模型的损失函数的损失值。Figure 3 is a flow chart of a method for training a product recommendation model provided in the third embodiment of the present invention. The method of this embodiment can be combined with the various optional schemes in the method for training a product recommendation model provided in the above embodiments. The training method for the product recommendation model provided in this embodiment has been further optimized. Optionally, before determining the user feature vector and the product feature vector based on the user feature, the product feature and the cross-behavior feature, it also includes: obtaining a recommendation scene feature; inputting the recommendation scene feature into the third input layer to obtain a first scene feature; inputting the first scene feature into the third hidden layer to obtain a second scene feature; inputting the second scene feature into the third output layer to obtain a scene feature vector; accordingly, determining the loss value of the loss function of the product recommendation model based on the user feature vector and the product feature vector includes: determining the loss value of the loss function of the product recommendation model based on the user feature vector, the product feature vector and the scene feature vector.

如图3所示,该方法包括:As shown in FIG3 , the method includes:

S310、获取用户特征、产品特征和交叉行为特征。S310, obtaining user characteristics, product characteristics, and cross-behavior characteristics.

S320、获取推荐场景特征;将所述推荐场景特征输入至第三输入层,得到第一场景特征;将所述第一场景特征输入至第三隐藏层,得到第二场景特征;将所述第二场景特征输入至第三输出层,得到场景特征向量。S320, obtaining recommended scene features; inputting the recommended scene features into the third input layer to obtain first scene features; inputting the first scene features into the third hidden layer to obtain second scene features; inputting the second scene features into the third output layer to obtain a scene feature vector.

S330、基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量。S330: Determine a user feature vector and a product feature vector based on the user feature, the product feature, and the cross-behavior feature.

S340、基于所述用户特征向量、所述产品特征向量和场景特征向量确定所述产品推荐模型的损失函数的损失值,基于所述产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。S340. Determine the loss value of the loss function of the product recommendation model based on the user feature vector, the product feature vector and the scene feature vector, and adjust the model parameters based on the loss value of the loss function of the product recommendation model until the training stop condition is met, thereby obtaining a trained product recommendation model.

在本实施例中,推荐场景特征是指与业务场景相关的特征信息。示例性地,推荐场景特征可以为报刊推荐场景下的主界面特征或者报刊推荐场景下的下拉界面特征等。场景特征向量为推荐场景特征的向量化表示。In this embodiment, the recommendation scenario feature refers to feature information related to the business scenario. For example, the recommendation scenario feature can be a main interface feature in a newspaper recommendation scenario or a drop-down interface feature in a newspaper recommendation scenario. The scenario feature vector is a vectorized representation of the recommendation scenario feature.

需要说明的是,通过引入推荐场景特征,以使产品推荐模型满足多业务场景需求,从而可为不同业务场景提供个性化产品推荐,避免了资源浪费和重复工作,提升了产品推荐模型的复用性和通用性。It should be noted that by introducing recommendation scenario features, the product recommendation model can meet the needs of multiple business scenarios, thereby providing personalized product recommendations for different business scenarios, avoiding resource waste and duplication of work, and improving the reusability and versatility of the product recommendation model.

在一些可选实施例中,在基于用户特征、产品特征和交叉行为特征确定用户特征向量和产品特征向量之前,还包括:获取产品行为序列;将产品行为序列输入至第四输入层,得到第一产品行为特征;将第一产品行为特征输入至第四隐藏层,得到第二产品行为特征;将第二产品行为特征输入至第四输出层,得到产品特征。In some optional embodiments, before determining the user feature vector and the product feature vector based on the user features, product features and cross-behavior features, it also includes: obtaining a product behavior sequence; inputting the product behavior sequence into a fourth input layer to obtain a first product behavior feature; inputting the first product behavior feature into a fourth hidden layer to obtain a second product behavior feature; and inputting the second product behavior feature into a fourth output layer to obtain a product feature.

其中,产品行为序列是指根据用户行为轨迹获取的多个商品的连续行为序列。示例性地,产品行为序列可以包括但不限于第一时刻浏览的第一商品信息,第二时刻浏览的第二商品信息和第三时刻浏览的第三商品信息等。The product behavior sequence refers to a continuous behavior sequence of multiple products obtained according to the user behavior trajectory. For example, the product behavior sequence may include but is not limited to the first product information browsed at the first moment, the second product information browsed at the second moment, and the third product information browsed at the third moment.

需要说明的是,通过将产品行为序列进行向量化表示,并将该产品行为序列向量化表示后的产品特征作为产品推荐模型输入,传至产品端的独立神经网络,从而可以加强产品推荐模型训练拟合,优化产品推荐模型向量化结果。It should be noted that by vectorizing the product behavior sequence and using the product features after the vectorization of the product behavior sequence as the input of the product recommendation model and transmitting it to the independent neural network on the product side, the training and fitting of the product recommendation model can be strengthened and the vectorization results of the product recommendation model can be optimized.

示例性地,图4是根据本发明实施例提供的一种产品推荐模型的训练方法的流程图。具体而言,获取用户特征、产品特征、交叉行为特征和推荐场景特征。进而可以将用户特征和交叉行为特征共同输入依次连接的特征embedding层、输入层、两个隐藏层以及输出层,得到用户特征向量;进而可以将产品特征输入依次连接的特征embedding层、输入层、两个隐藏层以及输出层,得到产品特征向量,其中,输入层、两个隐藏层以及输出层神经元个数分别为256、128、64和32。此外,可以将推荐场景特征输入依次连接的输入层、隐藏层以及输出层,得到场景特征向量。进而基于用户特征向量、产品特征向量、场景特征向量以及各向量对应的标签确定产品推荐模型的Sample Softmax Loss的损失值,基于SampleSoftmax Loss的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。在本实施例中,可以对用户浏览和/或购买产品的行为数据进行挖掘分析得到产品特征,还可以将产品行为序列输入依次连接的输入层、隐藏层以及输出层,得到产品特征。Exemplarily, FIG4 is a flow chart of a training method for a product recommendation model provided according to an embodiment of the present invention. Specifically, user features, product features, cross-behavior features, and recommendation scene features are obtained. Then, the user features and cross-behavior features can be input into the feature embedding layer, input layer, two hidden layers, and output layer connected in sequence to obtain a user feature vector; then, the product features can be input into the feature embedding layer, input layer, two hidden layers, and output layer connected in sequence to obtain a product feature vector, wherein the number of neurons in the input layer, two hidden layers, and output layer are 256, 128, 64, and 32, respectively. In addition, the recommendation scene features can be input into the input layer, hidden layer, and output layer connected in sequence to obtain a scene feature vector. Then, based on the user feature vector, the product feature vector, the scene feature vector, and the labels corresponding to each vector, the loss value of the Sample Softmax Loss of the product recommendation model is determined, and the model parameters are adjusted based on the loss value of the Sample Softmax Loss until the training stop condition is met to obtain a trained product recommendation model. In this embodiment, the behavior data of users browsing and/or purchasing products can be mined and analyzed to obtain product features, and the product behavior sequence can also be input into the input layer, hidden layer and output layer connected in sequence to obtain product features.

本发明实施例的技术方案,通过引入推荐场景特征,以使产品推荐模型满足多业务场景需求,从而可为不同业务场景提供个性化产品推荐,避免了资源浪费和重复工作,提升了产品推荐模型的复用性和通用性。The technical solution of the embodiment of the present invention introduces recommendation scenario features to enable the product recommendation model to meet the needs of multiple business scenarios, thereby providing personalized product recommendations for different business scenarios, avoiding resource waste and duplication of work, and improving the reusability and versatility of the product recommendation model.

实施例四Embodiment 4

图5为本发明实施例四提供的一种产品推荐方法的流程图,本实施例可适用于多场景产品推荐的情况,例如主界面推荐或者下拉界面推荐等场景,该方法可以由产品推荐装置来执行,该产品推荐装置可以采用硬件和/或软件的形式实现,该产品推荐装置可配置于终端和/或服务器中。如图5所示,该方法包括:FIG5 is a flowchart of a product recommendation method provided by Embodiment 4 of the present invention. This embodiment is applicable to product recommendation in multiple scenarios, such as main interface recommendation or pull-down interface recommendation. The method can be executed by a product recommendation device, which can be implemented in the form of hardware and/or software, and can be configured in a terminal and/or a server. As shown in FIG5 , the method includes:

S410、获取目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征。S410: Obtain user characteristics of the target user, product characteristics of the target user, and cross-behavior characteristics of the target user.

S420、将目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征输入至产品推荐模型,得到目标用户的用户特征向量和目标用户的产品特征向量。S420: Input the user characteristics of the target user, the product characteristics of the target user, and the cross-behavior characteristics of the target user into a product recommendation model to obtain a user characteristic vector of the target user and a product characteristic vector of the target user.

S430、基于目标用户的用户特征向量和目标用户的产品特征向量确定产品推荐结果,其中,所述产品推荐模型为任一实施例所述的产品推荐模型。S430. Determine a product recommendation result based on the user feature vector of the target user and the product feature vector of the target user, wherein the product recommendation model is the product recommendation model described in any embodiment.

在本实施例中,目标用户可以为任意待进行产品推荐的用户。目标用户的产品特征向量的数量可以为多个,即可以得到目标用户感兴趣的多个产品对应的产品特征向量。In this embodiment, the target user may be any user to whom product recommendation is to be made. The number of product feature vectors of the target user may be multiple, that is, product feature vectors corresponding to multiple products that the target user is interested in may be obtained.

示例性地,可以将目标用户的用户特征、产品特征和交叉行为特征输入至产品推荐模型,得到目标用户的用户特征向量和目标用户的多个产品特征向量。进一步地,计算目标用户的用户特征向量与目标用户的每个产品特征向量的相似度,基于相似度对产品进行排序,从而得到该目标用户感兴趣的产品向量集合。进一步地,可以根据业务场景下的产品销量或者产品浏览量对产品向量集合中的产品重新进行排序,并根据业务场景需要的推荐产品数量进行截断,从而得到最终的产品推荐结果。在本实施例中,可以根据构建的索引执行上述相似度计算或搜索,具体而言,可以基于Faiss构建索引,以便提升检索效率,其中,可以设置最近邻TOPK个数为100,搜索精度为0.8,检索方式可以为IVFx Flat。Exemplarily, the user features, product features, and cross-behavior features of the target user can be input into the product recommendation model to obtain the user feature vector of the target user and multiple product feature vectors of the target user. Further, the similarity between the user feature vector of the target user and each product feature vector of the target user is calculated, and the products are sorted based on the similarity to obtain a set of product vectors that the target user is interested in. Furthermore, the products in the product vector set can be re-sorted according to the product sales volume or product views in the business scenario, and truncated according to the number of recommended products required by the business scenario to obtain the final product recommendation result. In this embodiment, the above-mentioned similarity calculation or search can be performed based on the constructed index. Specifically, an index can be constructed based on Faiss to improve retrieval efficiency, wherein the number of nearest neighbor TOPK can be set to 100, the search accuracy can be set to 0.8, and the retrieval method can be IVFx Flat.

本发明实施例的技术方案,通过将目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征输入至产品推荐模型,得到目标用户的用户特征向量和目标用户的产品特征向量,进而基于目标用户的用户特征向量和目标用户的产品特征向量确定产品推荐结果,实现了目标用户的产品个性化推荐,此外,产品推荐模型可以为不同业务场景提供个性化产品推荐结果,在保证优质推荐服务的同时,避免了一个场景开发一个模型的情况,节省了人力资源、硬件资源和软件资源,同时保证多场景推荐下的共性和差异性。The technical solution of the embodiment of the present invention obtains the user feature vector of the target user and the product feature vector of the target user by inputting the user features of the target user, the product features of the target user and the cross-behavior features of the target user into the product recommendation model, and then determines the product recommendation result based on the user feature vector of the target user and the product feature vector of the target user, thereby realizing personalized product recommendation for the target user. In addition, the product recommendation model can provide personalized product recommendation results for different business scenarios, while ensuring high-quality recommendation services, avoiding the situation of developing one model for one scenario, saving human resources, hardware resources and software resources, and ensuring commonalities and differences under multi-scenario recommendations.

实施例五Embodiment 5

图6为本发明实施例五提供的一种产品推荐模型的训练装置的结构示意图。如图6所示,该装置包括:FIG6 is a schematic diagram of the structure of a training device for a product recommendation model provided in Embodiment 5 of the present invention. As shown in FIG6 , the device includes:

特征数据获取模块510,用于获取用户特征、产品特征和交叉行为特征;A feature data acquisition module 510 is used to acquire user features, product features, and cross-behavior features;

特征向量确定模块520,用于基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量;A feature vector determination module 520, configured to determine a user feature vector and a product feature vector based on the user feature, the product feature and the cross-behavior feature;

产品推荐模型训练模块530,用于基于所述用户特征向量和所述产品特征向量确定所述产品推荐模型的损失函数的损失值,基于所述产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。The product recommendation model training module 530 is used to determine the loss value of the loss function of the product recommendation model based on the user feature vector and the product feature vector, and adjust the model parameters based on the loss value of the loss function of the product recommendation model until the training stop condition is met, thereby obtaining a trained product recommendation model.

本发明实施例的技术方案,通过获取用户特征、产品特征和交叉行为特征,进而基于用户特征、产品特征和交叉行为特征确定用户特征向量和产品特征向量,进而基于用户特征向量和产品特征向量确定产品推荐模型的损失函数的损失值,基于产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。上述技术方案,通过用户特征、产品特征和交叉行为特征生成高维的用户特征向量和产品特征向量,进而基于用户特征向量和产品特征向量进行产品推荐模型训练,有效提升了产品推荐模型的精准度。The technical solution of the embodiment of the present invention obtains user features, product features and cross-behavior features, and then determines the user feature vector and product feature vector based on the user features, product features and cross-behavior features, and then determines the loss value of the loss function of the product recommendation model based on the user feature vector and product feature vector, and adjusts the model parameters based on the loss value of the loss function of the product recommendation model until the training stop condition is met, thereby obtaining a trained product recommendation model. The above technical solution generates high-dimensional user feature vectors and product feature vectors through user features, product features and cross-behavior features, and then trains the product recommendation model based on the user feature vector and product feature vector, which effectively improves the accuracy of the product recommendation model.

在一些可选的实施方式中,特征向量确定模块520,包括:In some optional implementations, the feature vector determination module 520 includes:

用户特征向量确定单元,用于基于所述用户特征和所述交叉行为特征确定用户特征向量;A user feature vector determining unit, configured to determine a user feature vector based on the user feature and the cross-behavior feature;

产品特征向量确定单元,用于基于所述产品特征确定产品特征向量。The product feature vector determining unit is used to determine the product feature vector based on the product features.

在一些可选的实施方式中,用户特征向量确定单元,还可以具体用于:In some optional implementations, the user feature vector determination unit may also be specifically configured to:

将所述用户特征和所述交叉行为特征输入至第一特征向量层,得到第一用户特征;Inputting the user feature and the cross-behavior feature into a first feature vector layer to obtain a first user feature;

将所述第一用户特征输入至第一输入层,得到第二用户特征;Inputting the first user feature into a first input layer to obtain a second user feature;

将所述第二用户特征输入至第一隐藏层,得到第三用户特征;Inputting the second user feature into the first hidden layer to obtain a third user feature;

将所述第三用户特征输入至第一输出层,得到用户特征向量。The third user feature is input into the first output layer to obtain a user feature vector.

在一些可选的实施方式中,产品特征向量确定单元,还可以具体用于:In some optional implementations, the product feature vector determination unit may also be specifically configured to:

将所述产品特征输入第二特征向量层,得到第一产品特征;Inputting the product feature into the second feature vector layer to obtain the first product feature;

将所述第一产品特征输入至第二输入层,得到第二产品特征;Inputting the first product feature into a second input layer to obtain a second product feature;

将所述第二产品特征输入至第二隐藏层,得到第三产品特征;Inputting the second product feature into the second hidden layer to obtain a third product feature;

将所述第三产品特征输入至第二输出层,得到产品特征向量。The third product feature is input into the second output layer to obtain a product feature vector.

在一些可选的实施方式中,推荐模型的训练装置,还包括:In some optional implementations, the training device for the recommendation model further includes:

场景特征向量确定模块,用于获取推荐场景特征;将所述推荐场景特征输入至第三输入层,得到第一场景特征;将所述第一场景特征输入至第三隐藏层,得到第二场景特征;将所述第二场景特征输入至第三输出层,得到场景特征向量;A scene feature vector determination module is used to obtain a recommended scene feature; input the recommended scene feature into a third input layer to obtain a first scene feature; input the first scene feature into a third hidden layer to obtain a second scene feature; input the second scene feature into a third output layer to obtain a scene feature vector;

相应的,产品推荐模型训练模块530,包括:Accordingly, the product recommendation model training module 530 includes:

损失值确定单元,用于基于所述用户特征向量、所述产品特征向量和场景特征向量确定所述产品推荐模型的损失函数的损失值。A loss value determining unit is used to determine the loss value of the loss function of the product recommendation model based on the user feature vector, the product feature vector and the scene feature vector.

在一些可选的实施方式中,推荐模型的训练装置,还包括:In some optional implementations, the training device for the recommendation model further includes:

产品特征获取单元,用于获取产品行为序列;将所述产品行为序列输入至第四输入层,得到第一产品行为特征;将所述第一产品行为特征输入至第四隐藏层,得到第二产品行为特征;将所述第二产品行为特征输入至第四输出层,得到产品特征。The product feature acquisition unit is used to acquire a product behavior sequence; input the product behavior sequence into the fourth input layer to obtain a first product behavior feature; input the first product behavior feature into the fourth hidden layer to obtain a second product behavior feature; input the second product behavior feature into the fourth output layer to obtain a product feature.

本发明实施例所提供的产品推荐模型的训练装置可执行本发明任意实施例所提供的产品推荐模型的训练方法,具备执行方法相应的功能模块和有益效果。The product recommendation model training device provided in the embodiment of the present invention can execute the product recommendation model training method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

实施例六Embodiment 6

图7为本发明实施例六提供的一种产品推荐装置的结构示意图。如图7所示,该装置包括:FIG7 is a schematic diagram of the structure of a product recommendation device provided in Embodiment 6 of the present invention. As shown in FIG7 , the device includes:

目标用户特征获取模块610,用于获取目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征;A target user feature acquisition module 610 is used to acquire user features of the target user, product features of the target user, and cross-behavior features of the target user;

特征向量预测模块620,用于将目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征输入至产品推荐模型,得到目标用户的用户特征向量和目标用户的产品特征向量;A feature vector prediction module 620 is used to input the user features of the target user, the product features of the target user, and the cross-behavior features of the target user into the product recommendation model to obtain the user feature vector of the target user and the product feature vector of the target user;

产品推荐结果确定模块630,用于基于目标用户的用户特征向量和目标用户的产品特征向量确定产品推荐结果,其中,所述产品推荐模型为本发明任一实施例所述的产品推荐模型。The product recommendation result determination module 630 is used to determine the product recommendation result based on the user feature vector of the target user and the product feature vector of the target user, wherein the product recommendation model is the product recommendation model described in any embodiment of the present invention.

本发明实施例的技术方案,通过将目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征输入至产品推荐模型,得到目标用户的用户特征向量和目标用户的产品特征向量,进而基于目标用户的用户特征向量和目标用户的产品特征向量确定产品推荐结果,实现了目标用户的产品个性化推荐,此外,产品推荐模型可以为不同业务场景提供个性化产品推荐结果,在保证优质推荐服务的同时,避免了一个场景开发一个模型的情况,节省了人力资源、硬件资源和软件资源,同时保证多场景推荐下的共性和差异性。The technical solution of the embodiment of the present invention obtains the user feature vector of the target user and the product feature vector of the target user by inputting the user features of the target user, the product features of the target user and the cross-behavior features of the target user into the product recommendation model, and then determines the product recommendation result based on the user feature vector of the target user and the product feature vector of the target user, thereby realizing personalized product recommendation for the target user. In addition, the product recommendation model can provide personalized product recommendation results for different business scenarios, while ensuring high-quality recommendation services, avoiding the situation of developing one model for one scenario, saving human resources, hardware resources and software resources, and ensuring commonalities and differences under multi-scenario recommendations.

实施例七Embodiment 7

图8示出了可以用来实施本发明的实施例的电子设备10的结构示意图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字助理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。FIG8 shows a block diagram of an electronic device 10 that can be used to implement an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and/or required herein.

如图8所示,电子设备10包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(ROM)12、随机访问存储器(RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM 13中,还可存储电子设备10操作所需的各种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。I/O接口15也连接至总线14。As shown in FIG8 , the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. The I/O interface 15 is also connected to the bus 14.

电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

处理器11可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的各个方法和处理,例如产品推荐模型的训练方法,该方法包括:The processor 11 may be a variety of general and/or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a training method for a product recommendation model, which includes:

获取用户特征、产品特征和交叉行为特征;Obtain user characteristics, product characteristics, and cross-behavior characteristics;

基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量;Determine a user feature vector and a product feature vector based on the user feature, the product feature and the cross-behavior feature;

基于所述用户特征向量和所述产品特征向量确定所述产品推荐模型的损失函数的损失值,基于所述产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。The loss value of the loss function of the product recommendation model is determined based on the user feature vector and the product feature vector, and the model parameters are adjusted based on the loss value of the loss function of the product recommendation model until a training stop condition is met, thereby obtaining a trained product recommendation model.

在一些实施例中,产品推荐模型的训练方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM 12和/或通信单元19而被载入和/或安装到电子设备10上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的产品推荐模型的训练方法的一个或多个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行产品推荐模型的训练方法。In some embodiments, the training method of the product recommendation model may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed on the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the training method of the product recommendation model described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the training method of the product recommendation model in any other appropriate manner (e.g., by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、系统级芯片(SOC)、复杂可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and/or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

用于实施本发明的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions/operations specified in the flow chart and/or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

在本发明的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明的技术方案所期望的结果,本文在此不进行限制。It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1.一种产品推荐模型的训练方法,其特征在于,包括:1. A method for training a product recommendation model, comprising: 获取用户特征、产品特征和交叉行为特征;Obtain user characteristics, product characteristics, and cross-behavior characteristics; 基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量;Determine a user feature vector and a product feature vector based on the user feature, the product feature and the cross-behavior feature; 基于所述用户特征向量和所述产品特征向量确定所述产品推荐模型的损失函数的损失值,基于所述产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。The loss value of the loss function of the product recommendation model is determined based on the user feature vector and the product feature vector, and the model parameters are adjusted based on the loss value of the loss function of the product recommendation model until a training stop condition is met, thereby obtaining a trained product recommendation model. 2.根据权利要求1所述的方法,其特征在于,所述基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量,包括:2. The method according to claim 1, characterized in that the determining of the user feature vector and the product feature vector based on the user feature, the product feature and the cross-behavior feature comprises: 基于所述用户特征和所述交叉行为特征确定用户特征向量;Determine a user feature vector based on the user feature and the cross-behavior feature; 基于所述产品特征确定产品特征向量。A product feature vector is determined based on the product features. 3.根据权利要求2所述的方法,其特征在于,所述基于所述用户特征和所述交叉行为特征确定用户特征向量,包括:3. The method according to claim 2, characterized in that the determining of the user feature vector based on the user feature and the cross-behavior feature comprises: 将所述用户特征和所述交叉行为特征输入至第一特征向量层,得到第一用户特征;Inputting the user feature and the cross-behavior feature into a first feature vector layer to obtain a first user feature; 将所述第一用户特征输入至第一输入层,得到第二用户特征;Inputting the first user feature into a first input layer to obtain a second user feature; 将所述第二用户特征输入至第一隐藏层,得到第三用户特征;Inputting the second user feature into the first hidden layer to obtain a third user feature; 将所述第三用户特征输入至第一输出层,得到用户特征向量。The third user feature is input into the first output layer to obtain a user feature vector. 4.根据权利要求2所述的方法,其特征在于,所述基于所述产品特征确定产品特征向量,包括:4. The method according to claim 2, characterized in that the determining of the product feature vector based on the product feature comprises: 将所述产品特征输入第二特征向量层,得到第一产品特征;Inputting the product feature into the second feature vector layer to obtain the first product feature; 将所述第一产品特征输入至第二输入层,得到第二产品特征;Inputting the first product feature into a second input layer to obtain a second product feature; 将所述第二产品特征输入至第二隐藏层,得到第三产品特征;Inputting the second product feature into the second hidden layer to obtain a third product feature; 将所述第三产品特征输入至第二输出层,得到产品特征向量。The third product feature is input into the second output layer to obtain a product feature vector. 5.根据权利要求1所述的方法,其特征在于,在所述基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量之前,还包括:5. The method according to claim 1, characterized in that before determining the user feature vector and the product feature vector based on the user feature, the product feature and the cross-behavior feature, it also includes: 获取推荐场景特征;Obtain recommended scene features; 将所述推荐场景特征输入至第三输入层,得到第一场景特征;Inputting the recommended scene feature into the third input layer to obtain a first scene feature; 将所述第一场景特征输入至第三隐藏层,得到第二场景特征;Inputting the first scene feature into a third hidden layer to obtain a second scene feature; 将所述第二场景特征输入至第三输出层,得到场景特征向量;Inputting the second scene feature into the third output layer to obtain a scene feature vector; 相应的,所述基于所述用户特征向量和所述产品特征向量确定所述产品推荐模型的损失函数的损失值,包括:Accordingly, the determining the loss value of the loss function of the product recommendation model based on the user feature vector and the product feature vector includes: 基于所述用户特征向量、所述产品特征向量和场景特征向量确定所述产品推荐模型的损失函数的损失值。A loss value of a loss function of the product recommendation model is determined based on the user feature vector, the product feature vector, and the scene feature vector. 6.根据权利要求1所述的方法,其特征在于,在所述基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量之前,还包括:6. The method according to claim 1, characterized in that before determining the user feature vector and the product feature vector based on the user feature, the product feature and the cross-behavior feature, it also includes: 获取产品行为序列;Get product behavior sequence; 将所述产品行为序列输入至第四输入层,得到第一产品行为特征;Inputting the product behavior sequence into the fourth input layer to obtain a first product behavior feature; 将所述第一产品行为特征输入至第四隐藏层,得到第二产品行为特征;Inputting the first product behavior feature into the fourth hidden layer to obtain a second product behavior feature; 将所述第二产品行为特征输入至第四输出层,得到产品特征。The second product behavior feature is input into the fourth output layer to obtain product features. 7.一种产品推荐方法,其特征在于,包括:7. A product recommendation method, comprising: 获取目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征;Obtain user characteristics of target users, product characteristics of target users, and cross-behavior characteristics of target users; 将目标用户的用户特征、目标用户的产品特征和目标用户的交叉行为特征输入至产品推荐模型,得到目标用户的用户特征向量和目标用户的产品特征向量;Input the user characteristics of the target user, the product characteristics of the target user, and the cross-behavior characteristics of the target user into the product recommendation model to obtain the user characteristic vector of the target user and the product characteristic vector of the target user; 基于目标用户的用户特征向量和目标用户的产品特征向量确定产品推荐结果,其中,所述产品推荐模型为权利要求1-6中任一项所述的产品推荐模型。The product recommendation result is determined based on the user feature vector of the target user and the product feature vector of the target user, wherein the product recommendation model is the product recommendation model described in any one of claims 1 to 6. 8.一种产品推荐模型的训练装置,其特征在于,包括:8. A training device for a product recommendation model, comprising: 特征数据获取模块,用于获取用户特征、产品特征和交叉行为特征;Feature data acquisition module, used to acquire user features, product features and cross-behavior features; 特征向量确定模块,用于基于所述用户特征、所述产品特征和所述交叉行为特征确定用户特征向量和产品特征向量;A feature vector determination module, used to determine a user feature vector and a product feature vector based on the user feature, the product feature and the cross-behavior feature; 产品推荐模型训练模块,用于基于所述用户特征向量和所述产品特征向量确定所述产品推荐模型的损失函数的损失值,基于所述产品推荐模型的损失函数的损失值调整模型参数,直至满足训练停止条件,得到训练完成的产品推荐模型。The product recommendation model training module is used to determine the loss value of the loss function of the product recommendation model based on the user feature vector and the product feature vector, and adjust the model parameters based on the loss value of the loss function of the product recommendation model until the training stop condition is met, thereby obtaining a trained product recommendation model. 9.一种电子设备,其特征在于,所述电子设备包括:9. An electronic device, characterized in that the electronic device comprises: 至少一个处理器;at least one processor; 以及与所述至少一个处理器通信连接的存储器;and a memory communicatively coupled to the at least one processor; 其中,所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-6中任一项所述的产品推荐模型的训练方法,或者执行权利要求7所述的产品推荐方法。In which, the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the training method of the product recommendation model described in any one of claims 1 to 6, or execute the product recommendation method described in claim 7. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现权利要求1-6中任一项所述的产品推荐模型的训练方法,或者执行权利要求7所述的产品推荐方法。10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the training method of the product recommendation model described in any one of claims 1 to 6, or to execute the product recommendation method described in claim 7 when executed.
CN202410890214.4A 2024-07-04 2024-07-04 Product recommendation model training method, product recommendation method and device Pending CN118861681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410890214.4A CN118861681A (en) 2024-07-04 2024-07-04 Product recommendation model training method, product recommendation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410890214.4A CN118861681A (en) 2024-07-04 2024-07-04 Product recommendation model training method, product recommendation method and device

Publications (1)

Publication Number Publication Date
CN118861681A true CN118861681A (en) 2024-10-29

Family

ID=93163139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410890214.4A Pending CN118861681A (en) 2024-07-04 2024-07-04 Product recommendation model training method, product recommendation method and device

Country Status (1)

Country Link
CN (1) CN118861681A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119379403A (en) * 2024-12-30 2025-01-28 厦门南讯股份有限公司 A method, system and medium for screening target users

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119379403A (en) * 2024-12-30 2025-01-28 厦门南讯股份有限公司 A method, system and medium for screening target users

Similar Documents

Publication Publication Date Title
EP4016432A1 (en) Method and apparatus for training fusion ordering model, search ordering method and apparatus, electronic device, storage medium, and program product
CN112633276B (en) Training method, identification method, device, equipment, medium
CN113326420A (en) Question retrieval method, device, electronic equipment and medium
CN113761379B (en) Commodity recommendation method and device, electronic device and medium
CN107908615A (en) A kind of method and apparatus for obtaining search term corresponding goods classification
CN112507118B (en) Information classification extraction method, device and electronic equipment
CN115248890B (en) Method, device, electronic device and storage medium for generating user interest portrait
CN113722593B (en) Event data processing methods, devices, electronic equipment and media
CN112818230A (en) Content recommendation method and device, electronic equipment and storage medium
CN116662633A (en) Search method, model training method, device, electronic device and storage medium
CN110309293A (en) Text recommended method and device
CN116204624A (en) Response method, response device, electronic equipment and storage medium
CN114722299A (en) Search recommended methods, devices and electronic equipment
CN114428902A (en) Information search method, device, electronic device and storage medium
CN118861681A (en) Product recommendation model training method, product recommendation method and device
CN116992150A (en) A research and development component recommendation method, device, equipment and storage medium
CN114610914B (en) Information processing method and device and electronic equipment
CN119808866B (en) Training method of search word generation model, search word generation method and device
CN114880498A (en) Event information display method and device, device and medium
CN111046894B (en) Method and device for identifying waistcoat account number
CN115965817B (en) Training method and device for image classification model and electronic equipment
CN118690837A (en) Operator fusion method, device and electronic equipment
CN113360765B (en) Event information processing method and device, electronic equipment and medium
CN118552969A (en) Image detection method, image recognition method, device, electronic device, storage medium and program product based on large language model
CN117893011A (en) Risk assessment method, risk assessment device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination