CN117726403A - Product recommendation method and device, storage medium and electronic equipment - Google Patents

Product recommendation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117726403A
CN117726403A CN202311737427.5A CN202311737427A CN117726403A CN 117726403 A CN117726403 A CN 117726403A CN 202311737427 A CN202311737427 A CN 202311737427A CN 117726403 A CN117726403 A CN 117726403A
Authority
CN
China
Prior art keywords
sample
target
behavior data
products
prediction 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
CN202311737427.5A
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 Telecom Bestpay Co Ltd
Original Assignee
China Telecom Bestpay 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 Telecom Bestpay Co Ltd filed Critical China Telecom Bestpay Co Ltd
Priority to CN202311737427.5A priority Critical patent/CN117726403A/en
Publication of CN117726403A publication Critical patent/CN117726403A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a product recommendation method and device, a storage medium and electronic equipment, and relates to the technical field of computers. The method comprises the following steps: obtaining N target products, wherein the N target products are products to be recommended to a target object; acquiring a data information set based on N target products, wherein the data information set at least comprises: t pieces of historical behavior data, attribute information of each target product and attribute information of a target object; determining S prediction models, wherein the S prediction models at least comprise: a first prediction model, a second prediction model, and a third prediction model; and determining a target recommendation sequence for recommending N target products according to the data information set and the S prediction models, and recommending the N target products to the target object according to the target recommendation sequence. By the method and the device, the problem of low accuracy of recommending the product to the user in the related technology is solved.

Description

产品的推荐方法及装置、存储介质和电子设备Recommended methods and devices for products, storage media and electronic equipment

技术领域Technical field

本申请涉及计算机技术领域,具体而言,涉及一种产品的推荐方法及装置、存储介质和电子设备。This application relates to the field of computer technology, specifically, to a product recommendation method and device, storage media and electronic equipment.

背景技术Background technique

相关技术中,一般会使用机器学习模型对商品进行打分,并按照得分的高低对商品进行推荐。但是,随着商品丰富度的提高和用户行为丰富度的提高,传统的基于单一模型的推荐方法(如GBDT、DNN)难以精准刻画和捕捉用户的兴趣偏好及其兴趣的变化,进而会导致向用户推荐产品的准确性较低。In related technologies, machine learning models are generally used to score products and recommend products based on the scores. However, with the improvement of product richness and user behavior richness, traditional recommendation methods based on a single model (such as GBDT, DNN) are difficult to accurately characterize and capture users' interest preferences and changes in their interests, which will lead to User recommended products are less accurate.

针对相关技术中向用户推荐产品的准确性较低的问题,目前尚未提出有效的解决方案。To address the problem of low accuracy in recommending products to users in related technologies, no effective solution has yet been proposed.

发明内容Contents of the invention

本申请的主要目的在于提供一种产品的推荐方法及装置、存储介质和电子设备,以解决相关技术中向用户推荐产品的准确性较低的问题。The main purpose of this application is to provide a product recommendation method and device, storage media and electronic equipment, so as to solve the problem of low accuracy in recommending products to users in related technologies.

为了实现上述目的,根据本申请的一个方面,提供了一种产品的推荐方法。该方法包括:获取N个目标产品,其中,所述N个目标产品为待推荐给目标对象的产品,N为大于1的正整数;基于所述N个目标产品获取数据信息集合,其中,所述数据信息集合中至少包括:T个历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息,所述T个历史行为数据中至少包括M个对象对所述N个目标产品的历史行为数据,所述M个对象中至少包括所述目标对象,T和M均为大于1的正整数;确定S个预测模型,其中,所述预测模型用于预测推荐所述N个目标产品的推荐顺序,所述S个预测模型中至少包括:第一预测模型、第二预测模型和第三预测模型,所述第一预测模型至少包括决策树模型,所述第二预测模型至少包括因子分解机模型,所述第三预测模型至少包括多层感知机模型和因子分解机模型组合后的模型,S为大于1的正整数;依据所述数据信息集合和所述S个预测模型,确定推荐所述N个目标产品的目标推荐顺序,并依据所述目标推荐顺序向所述目标对象推荐所述N个目标产品。In order to achieve the above objectives, according to one aspect of the present application, a product recommendation method is provided. The method includes: obtaining N target products, wherein the N target products are products to be recommended to target objects, and N is a positive integer greater than 1; obtaining a data information set based on the N target products, wherein the The data information set at least includes: T historical behavior data, attribute information of each target product and attribute information of the target object. The T historical behavior data includes at least M objects for the N target products. Historical behavior data, the M objects include at least the target object, T and M are both positive integers greater than 1; S prediction models are determined, wherein the prediction model is used to predict and recommend the N targets Recommendation order of products, the S prediction models at least include: a first prediction model, a second prediction model and a third prediction model, the first prediction model at least includes a decision tree model, the second prediction model at least includes Factorization machine model, the third prediction model at least includes a combination of a multi-layer perceptron model and a factorization machine model, S is a positive integer greater than 1; based on the data information set and the S prediction models, Determine a target recommendation order for recommending the N target products, and recommend the N target products to the target object according to the target recommendation order.

进一步地,所述T个历史行为数据至少包括:第一历史行为数据、第二历史行为数据和第三历史行为数据,所述第一历史行为数据为所述目标对象对所述目标产品的历史行为数据,所述第二历史行为数据为所述M个对象中的每个对象对所述目标产品的历史行为数据,所述第三历史行为数据为所述M个对象中的每个对象对每个目标产品的历史行为数据,依据所述数据信息集合和所述S个预测模型,确定推荐所述N个目标产品的目标推荐顺序包括:将所述第二历史行为数据和所述第三历史行为数据输入所述第一预测模型预测推荐所述N个目标产品的推荐顺序,输出第一推荐顺序;将所述第一推荐顺序、所述第二历史行为数据、所述第三历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息输入所述第二预测模型预测推荐所述N个目标产品的推荐顺序,输出第二推荐顺序;将所述第一推荐顺序、所述第一历史行为数据、所述第二历史行为数据、所述第三历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息输入所述第三预测模型预测推荐所述N个目标产品的推荐顺序,输出第三推荐顺序;基于所述第二推荐顺序和所述第三推荐顺序,确定推荐所述N个目标产品的所述目标推荐顺序。Further, the T pieces of historical behavior data include at least: first historical behavior data, second historical behavior data and third historical behavior data. The first historical behavior data is the target object's history of the target product. Behavior data, the second historical behavior data is the historical behavior data of each of the M objects for the target product, and the third historical behavior data is the historical behavior data of each of the M objects for the target product. Based on the historical behavior data of each target product and the data information set and the S prediction models, determining the target recommendation sequence for recommending the N target products includes: combining the second historical behavior data and the third The historical behavior data is input into the first prediction model to predict and recommend the recommendation order of the N target products, and the first recommendation order is output; the first recommendation order, the second historical behavior data, and the third historical behavior are The data, the attribute information of each target product and the attribute information of the target object are input into the second prediction model to predict and recommend the recommendation order of the N target products, and output the second recommendation order; the first recommendation order, The first historical behavior data, the second historical behavior data, the third historical behavior data, the attribute information of each target product and the attribute information of the target object are input into the third prediction model to predict and recommend. The recommendation order of the N target products is output, and a third recommendation order is output; based on the second recommendation order and the third recommendation order, the target recommendation order for recommending the N target products is determined.

进一步地,基于所述第二推荐顺序和所述第三推荐顺序,确定推荐所述N个目标产品的所述目标推荐顺序包括:基于所述第二推荐顺序确定每个目标产品对应的得分值,得到N个第一得分值;基于所述第三推荐顺序确定每个目标产品对应的得分值,得到N个第二得分值;分别确定所述第二预测模型对应的权重和所述第三预测模型对应的权重;基于所述N个第一得分值、所述N个第二得分值、所述第二预测模型对应的权重和所述第三预测模型对应的权重,确定推荐所述N个目标产品的所述目标推荐顺序。Further, based on the second recommendation order and the third recommendation order, determining the target recommendation order for recommending the N target products includes: determining a score corresponding to each target product based on the second recommendation order. value, N first score values are obtained; the score value corresponding to each target product is determined based on the third recommendation order, and N second score values are obtained; the weight sum corresponding to the second prediction model is determined respectively. The weight corresponding to the third prediction model; based on the N first score values, the N second score values, the weight corresponding to the second prediction model and the weight corresponding to the third prediction model , determine the target recommendation order for recommending the N target products.

进一步地,所述S个预测模型通过以下方式得到:获取目标训练样本集,其中,所述目标训练样本集中至少包括历史过程中获取到的Q个样本行为数据、W个样本产品的属性信息和P个样本对象的属性信息,所述Q个样本行为数据中至少包括所述P个样本对象对所述W个样本产品的行为数据,Q、W和P均为大于1的正整数;利用所述目标训练样本集对S个原始预测模型中的每个原始预测模型进行学习训练,得到所述S个预测模型,其中,所述S个原始预测模型中至少包括:第一原始预测模型、第二原始预测模型和第三原始预测模型。Further, the S prediction models are obtained in the following manner: obtaining a target training sample set, wherein the target training sample set at least includes Q sample behavior data obtained in the historical process, attribute information of W sample products, and Attribute information of P sample objects, the Q sample behavior data at least includes the behavior data of the P sample objects for the W sample products, Q, W and P are all positive integers greater than 1; using all The target training sample set performs learning and training on each of the S original prediction models to obtain the S prediction models, wherein the S original prediction models at least include: the first original prediction model, the first The second original prediction model and the third original prediction model.

进一步地,利用所述目标训练样本集对S个原始预测模型中的每个原始预测模型进行学习训练,得到所述S个预测模型包括:对所述目标训练样本集中的所述Q个样本行为数据进行分类处理,得到第一样本行为数据、第二样本行为数据和第三样本行为数据,其中,所述第一样本行为数据为所述样本对象对所述样本产品的行为数据,所述第二样本行为数据为所述P个样本对象中的每个样本对象对所述样本产品的行为数据,所述第三样本行为数据为所述P个样本对象中的每个样本对象对每个样本产品的行为数据;利用所述第二样本行为数据和所述第三样本行为数据对所述S个原始预测模型中的所述第一原始预测模型进行学习训练,得到所述第一预测模型;获取所述第一预测模型输出的预测结果,并利用所述预测结果、所述第二样本行为数据、所述第三样本行为数据、所述W个样本产品的属性信息和所述P个样本对象的属性信息对所述S个原始预测模型中的所述第二原始预测模型进行学习训练,得到所述第二预测模型;利用所述预测结果、所述第一样本行为数据、所述第二样本行为数据、所述第三样本行为数据、所述W个样本产品的属性信息和所述P个样本对象的属性信息对所述S个原始预测模型中的所述第三原始预测模型进行学习训练,得到所述第三预测模型;基于所述第一预测模型、所述第二预测模型和所述第三预测模型,得到所述S个预测模型。Further, using the target training sample set to perform learning and training on each of the S original prediction models, obtaining the S prediction models includes: learning and training the Q sample behaviors in the target training sample set The data is classified and processed to obtain the first sample behavior data, the second sample behavior data and the third sample behavior data, wherein the first sample behavior data is the behavior data of the sample object towards the sample product, so The second sample behavior data is the behavior data of each sample object among the P sample objects to the sample product, and the third sample behavior data is the behavior data of each sample object among the P sample objects to each sample product. Behavior data of sample products; using the second sample behavior data and the third sample behavior data to learn and train the first original prediction model among the S original prediction models to obtain the first prediction Model; obtain the prediction result output by the first prediction model, and use the prediction result, the second sample behavior data, the third sample behavior data, the attribute information of the W sample products and the P Learn and train the second original prediction model among the S original prediction models with the attribute information of sample objects to obtain the second prediction model; use the prediction results, the first sample behavior data, The second sample behavior data, the third sample behavior data, the attribute information of the W sample products and the attribute information of the P sample objects have a positive impact on the third original prediction model among the S original prediction models. The prediction model is learned and trained to obtain the third prediction model; based on the first prediction model, the second prediction model and the third prediction model, the S prediction models are obtained.

进一步地,获取所述第一预测模型输出的预测结果包括:获取所述第二样本行为数据和所述第三样本行为数据;将所述第二样本行为数据和所述第三样本行为数据输入所述第一预测模型预测推荐所述W个样本产品的推荐顺序,输出预测的推荐所述W个样本产品的推荐顺序;将所述预测的推荐所述W个样本产品的推荐顺序作为所述预测结果。Further, obtaining the prediction result output by the first prediction model includes: obtaining the second sample behavior data and the third sample behavior data; inputting the second sample behavior data and the third sample behavior data The first prediction model predicts and recommends the order of recommendation of the W sample products, and outputs the predicted order of recommendation of the W sample products; and uses the predicted order of recommendation of the W sample products as the forecast result.

进一步地,获取目标训练样本集包括:获取所述P个样本对象中每个样本对象的画像信息,并基于每个样本对象的画像信息,确定所述P个样本对象的属性信息,其中,所述P个样本对象的属性信息中至少包括:每个样本对象的ID信息和每个样本对象的性别信息;获取所述W个样本产品的属性信息,其中,所述W个样本产品的属性信息中至少包括:每个样本产品的ID信息和每个样本产品的类别信息;获取所述P个样本对象对所述W个样本产品的行为数据;依据所述P个样本对象对所述W个样本产品的行为数据,确定所述Q个样本行为数据;基于所述P个样本对象的属性信息、所述W个样本产品的属性信息和所述Q个样本行为数据获取所述目标训练样本集。Further, obtaining the target training sample set includes: obtaining the portrait information of each sample object among the P sample objects, and determining the attribute information of the P sample objects based on the portrait information of each sample object, wherein, The attribute information of the P sample objects at least includes: ID information of each sample object and gender information of each sample object; obtain attribute information of the W sample products, wherein the attribute information of the W sample products including at least: ID information of each sample product and category information of each sample product; obtaining behavior data of the P sample objects for the W sample products; analyzing the W sample products based on the P sample objects. Behavior data of sample products, determine the Q sample behavior data; obtain the target training sample set based on the attribute information of the P sample objects, the attribute information of the W sample products and the Q sample behavior data .

为了实现上述目的,根据本申请的另一方面,提供了一种产品的推荐装置。该装置包括:第一获取单元,用于获取N个目标产品,其中,所述N个目标产品为待推荐给目标对象的产品,N为大于1的正整数;第二获取单元,用于基于所述N个目标产品获取数据信息集合,其中,所述数据信息集合中至少包括:T个历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息,所述T个历史行为数据中至少包括M个对象对所述N个目标产品的历史行为数据,所述M个对象中至少包括所述目标对象,T和M均为大于1的正整数;第一确定单元,用于确定S个预测模型,其中,所述预测模型用于预测推荐所述N个目标产品的推荐顺序,所述S个预测模型中至少包括:第一预测模型、第二预测模型和第三预测模型,所述第一预测模型至少包括决策树模型,所述第二预测模型至少包括因子分解机模型,所述第三预测模型至少包括多层感知机模型和因子分解机模型组合后的模型,S为大于1的正整数;第一处理单元,用于依据所述数据信息集合和所述S个预测模型,确定推荐所述N个目标产品的目标推荐顺序,并依据所述目标推荐顺序向所述目标对象推荐所述N个目标产品。In order to achieve the above object, according to another aspect of the present application, a product recommendation device is provided. The device includes: a first acquisition unit, used to acquire N target products, wherein the N target products are products to be recommended to target objects, and N is a positive integer greater than 1; a second acquisition unit, based on The N target products obtain a data information set, wherein the data information set at least includes: T historical behavior data, attribute information of each target product, and attribute information of the target object. The T historical behaviors The data includes at least M objects' historical behavior data for the N target products, the M objects include at least the target object, and both T and M are positive integers greater than 1; the first determination unit is used to Determine S prediction models, wherein the prediction models are used to predict the recommendation order of the N target products, and the S prediction models at least include: a first prediction model, a second prediction model and a third prediction model. , the first prediction model at least includes a decision tree model, the second prediction model at least includes a factorization machine model, and the third prediction model at least includes a model that is a combination of a multi-layer perceptron model and a factorization machine model, S is a positive integer greater than 1; the first processing unit is used to determine the target recommendation sequence for recommending the N target products based on the data information set and the S prediction models, and to recommend the target products to the target products based on the target recommendation sequence. The target object recommends the N target products.

进一步地,所述T个历史行为数据至少包括:第一历史行为数据、第二历史行为数据和第三历史行为数据,所述第一历史行为数据为所述目标对象对所述目标产品的历史行为数据,所述第二历史行为数据为所述M个对象中的每个对象对所述目标产品的历史行为数据,所述第三历史行为数据为所述M个对象中的每个对象对每个目标产品的历史行为数据,所述第一处理单元包括:第一处理模块,用于将所述第二历史行为数据和所述第三历史行为数据输入所述第一预测模型预测推荐所述N个目标产品的推荐顺序,输出第一推荐顺序;第二处理模块,用于将所述第一推荐顺序、所述第二历史行为数据、所述第三历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息输入所述第二预测模型预测推荐所述N个目标产品的推荐顺序,输出第二推荐顺序;第三处理模块,用于将所述第一推荐顺序、所述第一历史行为数据、所述第二历史行为数据、所述第三历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息输入所述第三预测模型预测推荐所述N个目标产品的推荐顺序,输出第三推荐顺序;第一确定模块,用于基于所述第二推荐顺序和所述第三推荐顺序,确定推荐所述N个目标产品的所述目标推荐顺序。Further, the T pieces of historical behavior data include at least: first historical behavior data, second historical behavior data and third historical behavior data. The first historical behavior data is the target object's history of the target product. Behavior data, the second historical behavior data is the historical behavior data of each of the M objects for the target product, and the third historical behavior data is the historical behavior data of each of the M objects for the target product. For historical behavior data of each target product, the first processing unit includes: a first processing module for inputting the second historical behavior data and the third historical behavior data into the first prediction model to predict and recommend the data. The recommended order of the N target products is output, and the first recommended order is output; the second processing module is used to combine the first recommended order, the second historical behavior data, the third historical behavior data, and each target product. The attribute information and the attribute information of the target object are input into the second prediction model to predict and recommend the recommendation order of the N target products, and output the second recommendation order; a third processing module is used to convert the first recommendation order , the first historical behavior data, the second historical behavior data, the third historical behavior data, the attribute information of each target product and the attribute information of the target object are input into the third prediction model to predict and recommend. The recommendation order of the N target products is output, and a third recommendation order is output; a first determination module is configured to determine the target recommendation that recommends the N target products based on the second recommendation order and the third recommendation order. order.

进一步地,所述第一确定模块包括:第一确定子模块,用于基于所述第二推荐顺序确定每个目标产品对应的得分值,得到N个第一得分值;第二确定子模块,用于基于所述第三推荐顺序确定每个目标产品对应的得分值,得到N个第二得分值;第三确定子模块,用于分别确定所述第二预测模型对应的权重和所述第三预测模型对应的权重;第四确定子模块,用于基于所述N个第一得分值、所述N个第二得分值、所述第二预测模型对应的权重和所述第三预测模型对应的权重,确定推荐所述N个目标产品的所述目标推荐顺序。Further, the first determination module includes: a first determination sub-module, used to determine the score value corresponding to each target product based on the second recommendation sequence, and obtain N first score values; a second determination sub-module. Module, used to determine the score value corresponding to each target product based on the third recommendation sequence, and obtain N second score values; a third determination sub-module, used to determine the weight corresponding to the second prediction model respectively The weight corresponding to the third prediction model; the fourth determination sub-module is used to determine the weight sum corresponding to the N first score values, the N second score values, and the second prediction model based on the The weight corresponding to the third prediction model determines the target recommendation order for recommending the N target products.

进一步地,所述S个预测模型通过以下单元得到:第三获取单元,用于获取目标训练样本集,其中,所述目标训练样本集中至少包括历史过程中获取到的Q个样本行为数据、W个样本产品的属性信息和P个样本对象的属性信息,所述Q个样本行为数据中至少包括所述P个样本对象对所述W个样本产品的行为数据,Q、W和P均为大于1的正整数;第一训练单元,用于利用所述目标训练样本集对S个原始预测模型中的每个原始预测模型进行学习训练,得到所述S个预测模型,其中,所述S个原始预测模型中至少包括:第一原始预测模型、第二原始预测模型和第三原始预测模型。Further, the S prediction models are obtained through the following units: a third acquisition unit, used to obtain a target training sample set, wherein the target training sample set includes at least Q sample behavior data, W obtained in the historical process. Attribute information of sample products and attribute information of P sample objects. The Q sample behavior data at least includes the behavior data of the P sample objects for the W sample products. Q, W and P are all greater than a positive integer of 1; the first training unit is used to use the target training sample set to perform learning and training on each of the S original prediction models to obtain the S prediction models, wherein the S The original prediction model at least includes: a first original prediction model, a second original prediction model and a third original prediction model.

进一步地,所述第一训练单元包括:第四处理模块,用于对所述目标训练样本集中的所述Q个样本行为数据进行分类处理,得到第一样本行为数据、第二样本行为数据和第三样本行为数据,其中,所述第一样本行为数据为所述样本对象对所述样本产品的行为数据,所述第二样本行为数据为所述P个样本对象中的每个样本对象对所述样本产品的行为数据,所述第三样本行为数据为所述P个样本对象中的每个样本对象对每个样本产品的行为数据;第一训练模块,用于利用所述第二样本行为数据和所述第三样本行为数据对所述S个原始预测模型中的所述第一原始预测模型进行学习训练,得到所述第一预测模型;第二训练模块,用于获取所述第一预测模型输出的预测结果,并利用所述预测结果、所述第二样本行为数据、所述第三样本行为数据、所述W个样本产品的属性信息和所述P个样本对象的属性信息对所述S个原始预测模型中的所述第二原始预测模型进行学习训练,得到所述第二预测模型;第三训练模块,用于利用所述预测结果、所述第一样本行为数据、所述第二样本行为数据、所述第三样本行为数据、所述W个样本产品的属性信息和所述P个样本对象的属性信息对所述S个原始预测模型中的所述第三原始预测模型进行学习训练,得到所述第三预测模型;第二确定模块,用于基于所述第一预测模型、所述第二预测模型和所述第三预测模型,得到所述S个预测模型。Further, the first training unit includes: a fourth processing module for classifying the Q sample behavior data in the target training sample set to obtain the first sample behavior data and the second sample behavior data. and third sample behavior data, wherein the first sample behavior data is the behavior data of the sample object toward the sample product, and the second sample behavior data is each sample in the P sample objects. The behavior data of the object to the sample product, the third sample behavior data is the behavior data of each sample object in the P sample objects to each sample product; the first training module is used to utilize the third sample object. The second sample behavioral data and the third sample behavioral data perform learning and training on the first original prediction model among the S original prediction models to obtain the first prediction model; a second training module is used to obtain the The prediction results output by the first prediction model are used, and the prediction results, the second sample behavior data, the third sample behavior data, the attribute information of the W sample products and the P sample objects are used. The attribute information is used to learn and train the second original prediction model among the S original prediction models to obtain the second prediction model; a third training module is used to use the prediction results, the first sample Behavior data, the second sample behavior data, the third sample behavior data, the attribute information of the W sample products, and the attribute information of the P sample objects are critical to the S original prediction models. The third original prediction model performs learning and training to obtain the third prediction model; a second determination module is used to obtain the S based on the first prediction model, the second prediction model and the third prediction model. a prediction model.

进一步地,所述第二训练模块包括:第一获取子模块,用于获取所述第二样本行为数据和所述第三样本行为数据;第一输出子模块,用于将所述第二样本行为数据和所述第三样本行为数据输入所述第一预测模型预测推荐所述W个样本产品的推荐顺序,输出预测的推荐所述W个样本产品的推荐顺序;第五确定子模块,用于将所述预测的推荐所述W个样本产品的推荐顺序作为所述预测结果。Further, the second training module includes: a first acquisition sub-module for acquiring the second sample behavior data and the third sample behavior data; a first output sub-module for converting the second sample into The behavior data and the third sample behavior data are input into the first prediction model to predict the recommendation order of the W sample products, and output the predicted recommendation order of the W sample products; the fifth determination sub-module is used The predicted recommendation order of the W sample products is used as the predicted result.

进一步地,所述第三获取单元包括:第五处理模块,用于获取所述P个样本对象中每个样本对象的画像信息,并基于每个样本对象的画像信息,确定所述P个样本对象的属性信息,其中,所述P个样本对象的属性信息中至少包括:每个样本对象的ID信息和每个样本对象的性别信息;第一获取模块,用于获取所述W个样本产品的属性信息,其中,所述W个样本产品的属性信息中至少包括:每个样本产品的ID信息和每个样本产品的类别信息;第二获取模块,用于获取所述P个样本对象对所述W个样本产品的行为数据;第三确定模块,用于依据所述P个样本对象对所述W个样本产品的行为数据,确定所述Q个样本行为数据;第三获取模块,用于基于所述P个样本对象的属性信息、所述W个样本产品的属性信息和所述Q个样本行为数据获取所述目标训练样本集。Further, the third acquisition unit includes: a fifth processing module, used to acquire the portrait information of each sample object among the P sample objects, and determine the P samples based on the portrait information of each sample object. Attribute information of the object, wherein the attribute information of the P sample objects at least includes: ID information of each sample object and gender information of each sample object; a first acquisition module, used to obtain the W sample products attribute information, wherein the attribute information of the W sample products at least includes: ID information of each sample product and category information of each sample product; the second acquisition module is used to obtain the P sample object pairs The behavior data of the W sample products; the third determination module is used to determine the Q sample behavior data based on the behavior data of the P sample objects for the W sample products; the third acquisition module is used The target training sample set is obtained based on the attribute information of the P sample objects, the attribute information of the W sample products, and the Q sample behavior data.

为了实现上述目的,根据本申请的另一方面,提供了一种计算机可读存储介质,所述存储介质存储程序,其中,所述程序执行上述的任意一项所述的产品的推荐方法。In order to achieve the above object, according to another aspect of the present application, a computer-readable storage medium is provided, the storage medium stores a program, wherein the program executes any one of the above product recommendation methods.

为了实现上述目的,根据本申请的另一方面,提供了一种电子设备,所述电子设备包括一个或多个处理器和存储器,所述存储器用于存储一个或多个程序,其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现上述的任意一项所述的产品的推荐方法。In order to achieve the above object, according to another aspect of the present application, an electronic device is provided. The electronic device includes one or more processors and a memory, and the memory is used to store one or more programs, wherein when the When the one or more programs are executed by the one or more processors, the one or more processors enable the one or more processors to implement the recommended method for any of the above-mentioned products.

通过本申请,采用以下步骤:获取N个目标产品,其中,N个目标产品为待推荐给目标对象的产品,N为大于1的正整数;基于N个目标产品获取数据信息集合,其中,数据信息集合中至少包括:T个历史行为数据、每个目标产品的属性信息和目标对象的属性信息,T个历史行为数据中至少包括M个对象对N个目标产品的历史行为数据,M个对象中至少包括目标对象,T和M均为大于1的正整数;确定S个预测模型,其中,预测模型用于预测推荐N个目标产品的推荐顺序,S个预测模型中至少包括:第一预测模型、第二预测模型和第三预测模型,第一预测模型至少包括决策树模型,第二预测模型至少包括因子分解机模型,第三预测模型至少包括多层感知机模型和因子分解机模型组合后的模型,S为大于1的正整数;依据数据信息集合和S个预测模型,确定推荐N个目标产品的目标推荐顺序,并依据目标推荐顺序向目标对象推荐N个目标产品,解决了相关技术中向用户推荐产品的准确性较低的问题。通过获取待推荐给用户的多个目标产品,并基于多个目标产品获取数据信息集合,然后根据数据信息集合和多个预测模型,确定推荐多个目标产品的目标推荐顺序,并依据目标推荐顺序向用户推荐多个目标产品,从而避免了相关技术中向用户推荐产品的准确性较低的问题,进而达到了提升向用户推荐产品的准确性的效果。Through this application, the following steps are adopted: obtain N target products, where N target products are products to be recommended to target objects, and N is a positive integer greater than 1; obtain a data information collection based on N target products, where, data The information collection at least includes: T pieces of historical behavior data, attribute information of each target product, and attribute information of the target object. The T pieces of historical behavior data include at least M objects' historical behavior data for N target products, and M objects. includes at least the target object, and both T and M are positive integers greater than 1; determine S prediction models, where the prediction models are used to predict the recommendation order of N target products, and the S prediction models at least include: the first prediction model, a second prediction model and a third prediction model, the first prediction model at least includes a decision tree model, the second prediction model at least includes a factor decomposition machine model, and the third prediction model at least includes a combination of a multi-layer perceptron model and a factor decomposition machine model. In the latter model, S is a positive integer greater than 1; based on the data information collection and S prediction models, the target recommendation sequence for recommending N target products is determined, and N target products are recommended to the target object according to the target recommendation sequence, solving the related problem The problem in technology of low accuracy in recommending products to users. By obtaining multiple target products to be recommended to users, and obtaining a data information collection based on the multiple target products, and then determining the target recommendation sequence for recommending multiple target products based on the data information collection and multiple prediction models, and based on the target recommendation sequence Recommend multiple target products to users, thereby avoiding the problem of low accuracy in recommending products to users in related technologies, thereby achieving the effect of improving the accuracy of recommending products to users.

附图说明Description of the drawings

构成本申请的一部分的附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings that form a part of this application are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an improper limitation of this application. In the attached picture:

图1是根据本申请实施例提供的产品的推荐方法的流程图一;Figure 1 is a flowchart 1 of a product recommendation method provided according to an embodiment of the present application;

图2是根据本申请实施例提供的产品的推荐方法的流程图二;Figure 2 is a flow chart 2 of a product recommendation method provided according to an embodiment of the present application;

图3是根据本申请实施例提供的产品的推荐方法的流程图三;Figure 3 is a flow chart 3 of a product recommendation method provided according to an embodiment of the present application;

图4是根据本申请实施例提供的产品的推荐装置的示意图;Figure 4 is a schematic diagram of a product recommendation device provided according to an embodiment of the present application;

图5是根据本申请实施例提供的电子设备的示意图。Figure 5 is a schematic diagram of an electronic device provided according to an embodiment of the present application.

具体实施方式Detailed ways

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, as long as there is no conflict, the embodiments and features in the embodiments of this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

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

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of this application 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 data so used may be interchanged where appropriate for the embodiments of the application described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.

需要说明的是,本公开所涉及的相关信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于展示的数据、分析的数据等),均为经用户授权或者经过各方充分授权的信息和数据。例如,本系统和相关用户或机构间设置有接口,在获取相关信息之前,需要通过接口向前述的用户或机构发送获取请求,并在接收到前述的用户或机构反馈的同意信息后,获取相关信息。It should be noted that the relevant information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for display, analysis data, etc.) involved in this disclosure are authorized by the user. Or information and data fully authorized by all parties. For example, there is an interface between this system and relevant users or institutions. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned users or institutions through the interface, and after receiving the consent information fed back by the aforementioned users or institutions, obtain the relevant information. information.

为了便于描述,以下对本申请实施例涉及的部分名词或术语进行说明:For the convenience of description, some nouns or terms involved in the embodiments of this application are described below:

DNN:DNN是深度神经网络(Deep Neural Network)的缩写,它是一种由多层神经元组成的人工神经网络。DNN: DNN is the abbreviation of Deep Neural Network, which is an artificial neural network composed of multiple layers of neurons.

下面结合优选的实施步骤对本发明进行说明,图1是根据本申请实施例提供的产品的推荐方法的流程图一,如图1所示,该方法包括如下步骤:The present invention will be described below with reference to preferred implementation steps. Figure 1 is a flow chart 1 of a product recommendation method provided according to an embodiment of the present application. As shown in Figure 1, the method includes the following steps:

步骤S101,获取N个目标产品,其中,N个目标产品为待推荐给目标对象的产品,N为大于1的正整数。Step S101: Obtain N target products, where the N target products are products to be recommended to the target object, and N is a positive integer greater than 1.

例如,上述的目标对象可以为用户,且上述的N个目标产品可以为待向用户推荐的多个商品。For example, the above-mentioned target object may be a user, and the above-mentioned N target products may be multiple products to be recommended to the user.

步骤S102,基于N个目标产品获取数据信息集合,其中,数据信息集合中至少包括:T个历史行为数据、每个目标产品的属性信息和目标对象的属性信息,T个历史行为数据中至少包括M个对象对N个目标产品的历史行为数据,M个对象中至少包括目标对象,T和M均为大于1的正整数。Step S102: Obtain a data information set based on N target products, where the data information set at least includes: T pieces of historical behavior data, attribute information of each target product, and attribute information of the target object. The T pieces of historical behavior data include at least Historical behavioral data of M objects for N target products. The M objects include at least the target object. Both T and M are positive integers greater than 1.

例如,上述的T个历史行为数据中可以包括用户(上述的目标对象)的历史行为数据,包括商品曝光、点击、加购、购买数据等,也可以包括不同用户在历史过程中对同一商品的点击、加购、交易频次数据等和不同用户在历史过程中对不同商品的点击、加购、交易频次数据等。上述的每个目标产品的属性信息可以包括商品ID(Identification,标识)标识和类目信息等;上述的目标对象的属性信息可以包括用户ID(Identification,标识)标识和性别信息等。For example, the above-mentioned T pieces of historical behavior data may include the historical behavior data of the user (the above-mentioned target object), including product exposure, clicks, additional purchases, purchase data, etc., and may also include the historical behavior data of different users on the same product in the historical process. Clicks, additional purchases, transaction frequency data, etc. and different users' clicks, additional purchases, transaction frequency data, etc. for different products in the historical process. The above-mentioned attribute information of each target product may include product ID (Identification, identification) identification and category information, etc.; the above-mentioned attribute information of the target object may include user ID (Identification, identification) identification, gender information, etc.

步骤S103,确定S个预测模型,其中,预测模型用于预测推荐N个目标产品的推荐顺序,S个预测模型中至少包括:第一预测模型、第二预测模型和第三预测模型,第一预测模型至少包括决策树模型,第二预测模型至少包括因子分解机模型,第三预测模型至少包括多层感知机模型和因子分解机模型组合后的模型,S为大于1的正整数。Step S103: Determine S prediction models, where the prediction models are used to predict the recommendation order of N target products. The S prediction models at least include: a first prediction model, a second prediction model and a third prediction model. The first prediction model The prediction model at least includes a decision tree model, the second prediction model at least includes a factorization machine model, the third prediction model at least includes a model that is a combination of a multi-layer perceptron model and a factorization machine model, and S is a positive integer greater than 1.

例如,上述的第一预测模型可以为梯度提升决策树(GBDT,Gradient BoostingDecision Trees)预测模型;上述的第二预测模型可以为因子分解机(FM,FactorizationMachine)预测模型;上述的第三预测模型可以为多层感知机及因子分解机组合的模型。For example, the above-mentioned first prediction model can be a gradient boosting decision tree (GBDT) prediction model; the above-mentioned second prediction model can be a factorization machine (FM) prediction model; the above-mentioned third prediction model can be It is a model combining multi-layer perceptron and factorization machine.

步骤S104,依据数据信息集合和S个预测模型,确定推荐N个目标产品的目标推荐顺序,并依据目标推荐顺序向目标对象推荐N个目标产品。Step S104: Determine a target recommendation order for recommending N target products based on the data information set and S prediction models, and recommend N target products to the target object according to the target recommendation order.

例如,可以将梯度提升决策树(GBDT)预测模型(上述的第一预测模型)、因子分解机(FM)预测模型(上述的第二预测模型)和多层感知机及因子分解机组合的模型(上述的第三预测模型)进行融合,得到一个融合模型。然后可以将获取到的多个历史行为数据、用户ID标识和性别信息,以及商品ID标识和类目信息输入至融合模型中,并可以通过融合模型预测向用户(上述的目标对象)推荐待推荐的多个商品的推荐顺序,然可以根据推荐顺序向该用户推荐待推荐的多个商品。For example, a model that combines a gradient boosting decision tree (GBDT) prediction model (the above-mentioned first prediction model), a factorization machine (FM) prediction model (the above-mentioned second prediction model), a multi-layer perceptron and a factorization machine (the above-mentioned third prediction model) are fused to obtain a fusion model. Then, the acquired multiple historical behavioral data, user ID identification and gender information, as well as product ID identification and category information can be input into the fusion model, and recommendations can be made to the user (the above-mentioned target object) through the prediction of the fusion model The recommendation sequence of multiple products can then recommend multiple products to be recommended to the user according to the recommendation sequence.

通过上述的步骤S101至S104,通过获取待推荐给用户的多个目标产品,并基于多个目标产品获取数据信息集合,然后根据数据信息集合和多个预测模型,确定推荐多个目标产品的目标推荐顺序,并依据目标推荐顺序向用户推荐多个目标产品,从而避免了相关技术中向用户推荐产品的准确性较低的问题,进而达到了提升向用户推荐产品的准确性的效果。Through the above-mentioned steps S101 to S104, multiple target products to be recommended to the user are obtained, a data information set is obtained based on the multiple target products, and then a goal of recommending multiple target products is determined based on the data information set and multiple prediction models. recommendation sequence, and recommends multiple target products to users based on the target recommendation sequence, thereby avoiding the problem of low accuracy in recommending products to users in related technologies, thereby achieving the effect of improving the accuracy of recommending products to users.

可选地,在本申请实施例提供的产品的推荐方法中,获取目标训练样本集包括:获取P个样本对象中每个样本对象的画像信息,并基于每个样本对象的画像信息,确定P个样本对象的属性信息,其中,P个样本对象的属性信息中至少包括:每个样本对象的ID信息和每个样本对象的性别信息;获取W个样本产品的属性信息,其中,W个样本产品的属性信息中至少包括:每个样本产品的ID信息和每个样本产品的类别信息;获取P个样本对象对W个样本产品的行为数据;依据P个样本对象对W个样本产品的行为数据,确定Q个样本行为数据;基于P个样本对象的属性信息、W个样本产品的属性信息和Q个样本行为数据获取目标训练样本集。Optionally, in the product recommendation method provided by the embodiment of the present application, obtaining the target training sample set includes: obtaining the portrait information of each sample object among the P sample objects, and determining P based on the portrait information of each sample object. Attribute information of sample objects, wherein the attribute information of P sample objects at least includes: ID information of each sample object and gender information of each sample object; obtain attribute information of W sample products, where, W samples The attribute information of the product at least includes: ID information of each sample product and category information of each sample product; obtaining behavior data of P sample objects on W sample products; based on the behavior of P sample objects on W sample products data, determine Q sample behavioral data; obtain the target training sample set based on the attribute information of P sample objects, the attribute information of W sample products, and Q sample behavioral data.

例如,可以先获取用户在平台的用户画像信息,然后根据用户的用户画像信息,得到用户的ID标识信息和性别信息等。然后可以获取商品的ID标识和类目信息等;再获取多个样本对象对多个样本产品的行为数据,且这些行为数据可以为样本对象对样本产品的点击、加购、交易频次等数据,然后可以将获取到的用户的ID标识信息和性别信息、商品的ID标识和类目信息,以及样本对象对样本产品的点击、加购、交易频次等数据汇总在一起,作为用于训练预测模型的训练样本集。For example, you can first obtain the user's user portrait information on the platform, and then obtain the user's ID identification information and gender information based on the user's user portrait information. Then the ID identification and category information of the product can be obtained; and then the behavioral data of multiple sample objects for multiple sample products can be obtained, and these behavioral data can be the sample objects' clicks, additional purchases, transaction frequency and other data on the sample products. The obtained ID information and gender information of the user, the ID identification and category information of the product, as well as the sample subject's clicks, additional purchases, transaction frequency and other data on the sample product can be summarized together as used to train the prediction model training sample set.

通过上述的方案,可以方便的得到用于训练预测模型的训练样本集。Through the above solution, the training sample set for training the prediction model can be easily obtained.

可选地,在本申请实施例提供的产品的推荐方法中,S个预测模型通过以下方式得到:获取目标训练样本集,其中,目标训练样本集中至少包括历史过程中获取到的Q个样本行为数据、W个样本产品的属性信息和P个样本对象的属性信息,Q个样本行为数据中至少包括P个样本对象对W个样本产品的行为数据,Q、W和P均为大于1的正整数;利用目标训练样本集对S个原始预测模型中的每个原始预测模型进行学习训练,得到S个预测模型,其中,S个原始预测模型中至少包括:第一原始预测模型、第二原始预测模型和第三原始预测模型。Optionally, in the product recommendation method provided by the embodiment of the present application, S prediction models are obtained in the following manner: obtaining a target training sample set, where the target training sample set includes at least Q sample behaviors obtained in the historical process. data, attribute information of W sample products and attribute information of P sample objects. Q sample behavior data includes at least the behavior data of P sample objects for W sample products. Q, W and P are all positive values greater than 1. Integer; use the target training sample set to learn and train each of the S original prediction models to obtain S prediction models. Among them, the S original prediction models include at least: the first original prediction model, the second original prediction model, and the second original prediction model. prediction model and the third original prediction model.

例如,可以使用训练样本集中的用户的ID标识信息和性别信息、商品的ID标识和类目信息,以及样本对象对样本产品的点击、加购、交易频次等数据对多个原始预测模型进行学习训练,并可以得到训练好的梯度提升决策树(GBDT)预测模型、因子分解机(FM)预测模型和多层感知机及因子分解机组合的模型,然后可以将训练好的梯度提升决策树(GBDT)预测模型、因子分解机(FM)预测模型和多层感知机及因子分解机组合的模型作为上述的S个预测模型。For example, you can use the user's ID identification information and gender information in the training sample set, the ID identification and category information of the product, as well as the sample object's clicks, additional purchases, transaction frequency and other data on the sample product to learn multiple original prediction models. training, and can obtain the trained gradient boosting decision tree (GBDT) prediction model, factorization machine (FM) prediction model and multi-layer perceptron and factorization machine combination model, and then the trained gradient boosting decision tree ( GBDT) prediction model, factorization machine (FM) prediction model and a model that combines multi-layer perceptron and factorization machine as the above S prediction models.

通过上述的方案,使用训练样本集可以方便的对原始预测模型进行学习训练,并可以快速准确的得到训练好的模型。Through the above solution, the original prediction model can be easily learned and trained using the training sample set, and the trained model can be obtained quickly and accurately.

可选地,在本申请实施例提供的产品的推荐方法中,获取第一预测模型输出的预测结果包括:获取第二样本行为数据和第三样本行为数据;将第二样本行为数据和第三样本行为数据输入第一预测模型预测推荐W个样本产品的推荐顺序,输出预测的推荐W个样本产品的推荐顺序;将预测的推荐W个样本产品的推荐顺序作为预测结果。Optionally, in the product recommendation method provided by the embodiment of the present application, obtaining the prediction result output by the first prediction model includes: obtaining the second sample behavior data and the third sample behavior data; combining the second sample behavior data and the third sample behavior data. The sample behavior data is input into the first prediction model to predict the recommendation order of W sample products, and output the predicted recommendation order of W sample products; the predicted recommendation order of W sample products is used as the prediction result.

例如,上述的第二样本行为数据可以为不同的样本对象对同一样本产品的点击、加购、交易频次数据等;上述的第三样本行为数据可以为不同的样本对象对不同的样本产品的点击、加购、交易频次数据等;上述的第一预测模型可以为梯度提升决策树(GBDT)预测模型。比如,可以将不同的样本对象对同一样本产品的点击、加购、交易频次数据等,以及同的样本对象对不同的样本产品的点击、加购、交易频次数据等输入至梯度提升决策树(GBDT)预测模型中,然后可以输出预测的对多个样本产品进行推荐的推荐顺序,并将输出的预测的对多个样本产品进行推荐的推荐顺序作为上述的预测结果。For example, the above-mentioned second sample behavior data can be different sample objects' clicks, additional purchases, transaction frequency data, etc. on the same sample product; the above-mentioned third sample behavior data can be different sample objects' clicks on different sample products. , additional purchases, transaction frequency data, etc.; the above-mentioned first prediction model can be a gradient boosting decision tree (GBDT) prediction model. For example, the data of clicks, additional purchases, and transaction frequency of different sample objects on the same sample product, and the data of clicks, additional purchases, and transaction frequency of the same sample object on different sample products can be input into the gradient boosting decision tree ( GBDT) prediction model, then the predicted recommendation order for recommending multiple sample products can be output, and the output predicted recommendation order for recommending multiple sample products can be used as the above prediction result.

综上所述,通过将用户对商品的点击和购买数据等输入至梯度提升决策树预测模型,可以快速准确的预测出推荐商品的推荐顺序。In summary, by inputting user clicks and purchase data on products into the gradient boosting decision tree prediction model, the order of recommended products can be quickly and accurately predicted.

可选地,在本申请实施例提供的产品的推荐方法中,利用目标训练样本集对S个原始预测模型中的每个原始预测模型进行学习训练,得到S个预测模型包括:对目标训练样本集中的Q个样本行为数据进行分类处理,得到第一样本行为数据、第二样本行为数据和第三样本行为数据,其中,第一样本行为数据为样本对象对样本产品的行为数据,第二样本行为数据为P个样本对象中的每个样本对象对样本产品的行为数据,第三样本行为数据为P个样本对象中的每个样本对象对每个样本产品的行为数据;利用第二样本行为数据和第三样本行为数据对S个原始预测模型中的第一原始预测模型进行学习训练,得到第一预测模型;获取第一预测模型输出的预测结果,并利用预测结果、第二样本行为数据、第三样本行为数据、W个样本产品的属性信息和P个样本对象的属性信息对S个原始预测模型中的第二原始预测模型进行学习训练,得到第二预测模型;利用预测结果、第一样本行为数据、第二样本行为数据、第三样本行为数据、W个样本产品的属性信息和P个样本对象的属性信息对S个原始预测模型中的第三原始预测模型进行学习训练,得到第三预测模型;基于第一预测模型、第二预测模型和第三预测模型,得到S个预测模型。Optionally, in the product recommendation method provided by the embodiment of the present application, using the target training sample set to learn and train each of the S original prediction models, obtaining the S prediction models includes: The concentrated Q sample behavior data are classified and processed to obtain the first sample behavior data, the second sample behavior data and the third sample behavior data. Among them, the first sample behavior data is the behavior data of the sample object towards the sample product, and the The second sample behavior data is the behavior data of each sample object among the P sample objects for the sample product, and the third sample behavior data is the behavior data of each sample object among the P sample objects for each sample product; using the second The sample behavior data and the third sample behavior data learn and train the first original prediction model among the S original prediction models to obtain the first prediction model; obtain the prediction result output by the first prediction model, and use the prediction result and the second sample The behavioral data, the third sample behavioral data, the attribute information of W sample products and the attribute information of P sample objects are learned and trained on the second original prediction model among the S original prediction models to obtain the second prediction model; the prediction results are used , the first sample behavior data, the second sample behavior data, the third sample behavior data, the attribute information of W sample products and the attribute information of P sample objects are used to learn the third original prediction model among the S original prediction models. After training, a third prediction model is obtained; based on the first prediction model, the second prediction model and the third prediction model, S prediction models are obtained.

例如,上述的第一样本行为数据可以为样本对象在历史过程中对同一样本产品的曝光、点击、加购、购买数据等;上述的第二样本行为数据可以为不同的样本对象在历史过程中对同一样本产品的点击、加购、交易频次数据等;上述的第三样本行为数据可以为不同的样本对象在历史过程中对不同的样本产品的点击、加购、交易频次数据等;上述的第一原始预测模型可以为未经过训练的梯度提升决策树(GBDT)预测模型;上述的第二原始预测模型可以为未经过训练的因子分解机(FM)预测模型;上述的第三原始预测模型可以为未经过训练的多层感知机及因子分解机组合的模型;上述的第一预测模型可以为训练好的梯度提升决策树(GBDT)预测模型;上述的第二预测模型可以为训练好的因子分解机(FM)预测模型;上述的第三预测模型可以为训练好的多层感知机及因子分解机组合的模型。For example, the above-mentioned first sample behavior data can be the sample object's exposure, clicks, additional purchases, purchase data, etc. for the same sample product in the historical process; the above-mentioned second sample behavior data can be the historical process of different sample objects. Clicks, additional purchases, transaction frequency data, etc. on the same sample product; the above-mentioned third sample behavior data can be different sample objects' clicks, additional purchases, transaction frequency data, etc. on different sample products in the historical process; the above-mentioned The first original prediction model can be an untrained gradient boosting decision tree (GBDT) prediction model; the above-mentioned second original prediction model can be an untrained factorization machine (FM) prediction model; the above-mentioned third original prediction The model can be a combination of an untrained multi-layer perceptron and a factorization machine; the above-mentioned first prediction model can be a trained gradient boosting decision tree (GBDT) prediction model; the above-mentioned second prediction model can be a trained Factorization machine (FM) prediction model; the above-mentioned third prediction model can be a model that is a combination of a trained multi-layer perceptron and a factorization machine.

比如,可以先使用不同的样本对象在历史过程中对同一样本产品的点击、加购、交易频次数据等,以及不同的样本对象在历史过程中对不同的样本产品的点击、加购、交易频次数据等对未经过训练的梯度提升决策树(GBDT)预测模型进行学习训练,得到训练好的梯度提升决策树(GBDT)预测模型;再获取练好的梯度提升决策树(GBDT)预测模型输出的预测的推荐多个样本产品的推荐顺序,然后可以使用练好的梯度提升决策树(GBDT)预测模型输出的预测的推荐多个样本产品的推荐顺序、不同的样本对象在历史过程中对同一样本产品的点击、加购、交易频次数据等,以及不同的样本对象在历史过程中对不同的样本产品的点击、加购、交易频次数据等、样本产品的ID标识和类目信息等和用户ID标识和性别信息等对未经过训练的因子分解机(FM)预测模型进行学习训练,得到训练好的因子分解机(FM)预测模型;再利用练好的梯度提升决策树(GBDT)预测模型输出的预测的推荐多个样本产品的推荐顺序、样本对象在历史过程中对同一样本产品的曝光、点击、加购、购买数据等、不同的样本对象在历史过程中对同一样本产品的点击、加购、交易频次数据等,以及不同的样本对象在历史过程中对不同的样本产品的点击、加购、交易频次数据等、样本产品的ID标识和类目信息等和用户ID标识和性别信息等对未经过训练的多层感知机及因子分解机组合的模型进行学习训练,得到训练好的多层感知机及因子分解机组合的模型。然后可以将训练好的梯度提升决策树(GBDT)预测模型、训练好的因子分解机(FM)预测模型和训练好的多层感知机及因子分解机组合的模型作为上述的S个预测模型。For example, you can first use data on clicks, additional purchases, and transaction frequencies of the same sample product by different sample objects in the historical process, and data on clicks, additional purchases, and transaction frequencies of different sample objects on different sample products in the historical process. Use the data to learn and train the untrained Gradient Boosting Decision Tree (GBDT) prediction model to obtain the trained Gradient Boosting Decision Tree (GBDT) prediction model; then obtain the output of the trained Gradient Boosting Decision Tree (GBDT) prediction model. Predicted recommendation order of multiple sample products, and then you can use the well-trained gradient boosting decision tree (GBDT) prediction model output to predict the recommended order of multiple sample products, different sample objects in the historical process for the same sample Product clicks, additional purchases, transaction frequency data, etc., as well as different sample objects' clicks, additional purchases, transaction frequency data, etc. for different sample products in the historical process, sample product ID identification and category information, etc. and user ID Identify and gender information, etc., learn and train the untrained factorization machine (FM) prediction model to obtain the trained factorization machine (FM) prediction model; then use the trained gradient boosting decision tree (GBDT) prediction model output Predictive recommendation of the order of recommendation of multiple sample products, exposure, clicks, additional purchases, and purchase data of the same sample product by sample objects in the historical process, and clicks, additions, and purchases of the same sample product by different sample objects in the historical process. Purchase and transaction frequency data, etc., as well as the clicks, additional purchases, transaction frequency data of different sample objects on different sample products in the historical process, the ID identification and category information of the sample products, and the user ID identification and gender information, etc. Learn and train the model that is a combination of an untrained multi-layer perceptron and a factorization machine, and obtain a model that is a combination of a trained multi-layer perceptron and a factorization machine. Then the model combining the trained gradient boosting decision tree (GBDT) prediction model, the trained factorization machine (FM) prediction model, and the trained multi-layer perceptron and factorization machine can be used as the above S prediction models.

通过上述的方案,可以快速准确的得到训练好的梯度提升决策树(GBDT)预测模型、训练好的因子分解机(FM)预测模型和训练好的多层感知机及因子分解机组合的模型。Through the above solution, the trained gradient boosting decision tree (GBDT) prediction model, the trained factorization machine (FM) prediction model, and the trained multi-layer perceptron and factorization machine combination model can be quickly and accurately obtained.

图2是根据本申请实施例提供的产品的推荐方法的流程图二,如图2所示,在本申请实施例提供的产品的推荐方法中,T个历史行为数据至少包括:第一历史行为数据、第二历史行为数据和第三历史行为数据,第一历史行为数据为目标对象对目标产品的历史行为数据,第二历史行为数据为M个对象中的每个对象对目标产品的历史行为数据,第三历史行为数据为M个对象中的每个对象对每个目标产品的历史行为数据,依据数据信息集合和S个预测模型,确定推荐N个目标产品的目标推荐顺序包括:Figure 2 is a flowchart 2 of the product recommendation method provided according to the embodiment of the present application. As shown in Figure 2, in the product recommendation method provided by the embodiment of the present application, T pieces of historical behavior data at least include: the first historical behavior data, the second historical behavior data and the third historical behavior data. The first historical behavior data is the historical behavior data of the target object towards the target product, and the second historical behavior data is the historical behavior of each of the M objects towards the target product. Data, the third historical behavior data is the historical behavior data of each of the M objects for each target product. Based on the data information collection and S prediction models, the target recommendation sequence for recommending the N target products is determined, including:

步骤S201,将第二历史行为数据和第三历史行为数据输入第一预测模型预测推荐N个目标产品的推荐顺序,输出第一推荐顺序;Step S201, input the second historical behavior data and the third historical behavior data into the first prediction model to predict and recommend the recommendation order of N target products, and output the first recommendation order;

步骤S202,将第一推荐顺序、第二历史行为数据、第三历史行为数据、每个目标产品的属性信息和目标对象的属性信息输入第二预测模型预测推荐N个目标产品的推荐顺序,输出第二推荐顺序;Step S202, input the first recommendation order, the second historical behavior data, the third historical behavior data, the attribute information of each target product and the attribute information of the target object into the second prediction model to predict and recommend the recommendation order of N target products, and output Second recommendation order;

步骤S203,将第一推荐顺序、第一历史行为数据、第二历史行为数据、第三历史行为数据、每个目标产品的属性信息和目标对象的属性信息输入第三预测模型预测推荐N个目标产品的推荐顺序,输出第三推荐顺序;Step S203, input the first recommendation sequence, the first historical behavior data, the second historical behavior data, the third historical behavior data, the attribute information of each target product and the attribute information of the target object into the third prediction model to predict and recommend N targets. Product recommendation order, output the third recommendation order;

步骤S204,基于第二推荐顺序和第三推荐顺序,确定推荐N个目标产品的目标推荐顺序。Step S204: Based on the second recommendation order and the third recommendation order, determine the target recommendation order for recommending N target products.

例如,上述的第一历史行为数据可以为用户(上述的目标对象)的历史行为数据,包括商品曝光、点击、加购、购买数据等;上述的第二历史行为数据可以为不同用户在历史过程中对同一商品的点击、加购、交易频次数据等;上述的第三历史行为数据可以为不同用户在历史过程中对不同商品的点击、加购、交易频次数据等;上述的每个目标产品的属性信息可以包括每个商品的ID标识和类目信息等;上述的目标对象的属性信息可以包括用户ID标识和性别信息等。上述的第一预测模型可以为训练好的梯度提升决策树(GBDT)预测模型;上述的第二预测模型可以为训练好的因子分解机(FM)预测模型;上述的第三预测模型可以为训练好的多层感知机及因子分解机组合的模型。For example, the above-mentioned first historical behavior data can be the historical behavior data of the user (the above-mentioned target object), including product exposure, clicks, additional purchases, purchase data, etc.; the above-mentioned second historical behavior data can be the historical behavior data of different users in the historical process. Clicks, additional purchases, transaction frequency data, etc. on the same product; the above third historical behavior data can be different users' clicks, additional purchases, transaction frequency data, etc. on different products in the historical process; each of the above target products The attribute information may include the ID identification and category information of each product; the attribute information of the target object may include the user ID identification, gender information, etc. The above-mentioned first prediction model can be a trained gradient boosting decision tree (GBDT) prediction model; the above-mentioned second prediction model can be a trained factorization machine (FM) prediction model; the above-mentioned third prediction model can be a trained A good model combining multilayer perceptron and factorization machine.

比如,可以将不同用户在历史过程中对同一商品的点击、加购、交易频次数据等,以及不同用户在历史过程中对不同商品的点击、加购、交易频次数据等输入至训练好的梯度提升决策树(GBDT)预测模型,并输出梯度提升决策树(GBDT)预测模型的预测输出结果(上述的第一推荐顺序);然后可以将梯度提升决策树(GBDT)预测模型的预测输出结果、不同用户在历史过程中对同一商品的点击、加购、交易频次数据等,以及不同用户在历史过程中对不同商品的点击、加购、交易频次数据等,以及每个商品的ID标识和类目信息等和用户的ID标识和性别信息等输入至训练好的因子分解机(FM)预测模型,并输出因子分解机(FM)预测模型的预测输出结果(上述的第二推荐顺序);再将梯度提升决策树(GBDT)预测模型的预测输出结果、用户(上述的目标对象)的历史行为数据,包括商品曝光、点击、加购、购买数据等,以及不同用户在历史过程中对同一商品的点击、加购、交易频次数据等,以及不同用户在历史过程中对不同商品的点击、加购、交易频次数据等,以及每个商品的ID标识和类目信息等和用户的ID标识和性别信息等输入至训练好的多层感知机及因子分解机组合的模型,并输出多层感知机及因子分解机组合的模型的预测输出结果(上述的第三推荐顺序);然后可以根据因子分解机(FM)预测模型的预测输出结果(上述的第二推荐顺序)和多层感知机及因子分解机组合的模型的预测输出结果(上述的第三推荐顺序)确定最终向用户推荐多个商品的推荐顺序。For example, the data of clicks, additional purchases, and transaction frequencies of different users on the same product in the historical process, as well as the data of clicks, additional purchases, and transaction frequencies of different users on different products in the historical process, can be input into the trained gradient. Boost the decision tree (GBDT) prediction model, and output the prediction output results of the gradient boosting decision tree (GBDT) prediction model (the first recommended order above); then you can use the prediction output results of the gradient boosting decision tree (GBDT) prediction model, The data of clicks, additional purchases, and transaction frequency of different users on the same product in the historical process, as well as the data of clicks, additional purchases, and transaction frequency of different users on different products in the historical process, as well as the ID identification and category of each product. The item information, user ID identification and gender information, etc. are input into the trained factorization machine (FM) prediction model, and the prediction output result of the factorization machine (FM) prediction model is output (the second recommendation sequence mentioned above); Combine the prediction output results of the gradient boosting decision tree (GBDT) prediction model, the historical behavior data of users (the above-mentioned target objects), including product exposure, clicks, additional purchases, purchase data, etc., as well as the views of different users on the same product in the historical process. Clicks, additional purchases, transaction frequency data, etc., as well as different users' clicks, additional purchases, transaction frequency data on different products in the historical process, etc., as well as the ID identification and category information of each product, and the user's ID identification and Gender information, etc. are input into the trained model combining multi-layer perceptron and factor decomposition machine, and the predicted output result of the model combining multi-layer perceptron and factor decomposition machine is output (the third recommended order above); then the model can be based on the factors The prediction output result of the factorization machine (FM) prediction model (the above-mentioned second recommendation sequence) and the prediction output result of the model combined with the multi-layer perceptron and factor decomposition machine (the above-mentioned third recommendation sequence) determine the final recommendation to the user. Recommended order of products.

通过上述的方案,使用融合模型可以快速准确的确定最终向用户推荐多个商品的推荐顺序。Through the above solution, the fusion model can be used to quickly and accurately determine the order of recommendation of multiple products to the user.

可选地,在本申请实施例提供的产品的推荐方法中,基于第二推荐顺序和第三推荐顺序,确定推荐N个目标产品的目标推荐顺序包括:基于第二推荐顺序确定每个目标产品对应的得分值,得到N个第一得分值;基于第三推荐顺序确定每个目标产品对应的得分值,得到N个第二得分值;分别确定第二预测模型对应的权重和第三预测模型对应的权重;基于N个第一得分值、N个第二得分值、第二预测模型对应的权重和第三预测模型对应的权重,确定推荐N个目标产品的目标推荐顺序。Optionally, in the product recommendation method provided by the embodiment of the present application, based on the second recommendation order and the third recommendation order, determining the target recommendation order for recommending N target products includes: determining each target product based on the second recommendation order. According to the corresponding score value, N first score values are obtained; the score value corresponding to each target product is determined based on the third recommendation order, and N second score values are obtained; the weight sum corresponding to the second prediction model is determined respectively. The weight corresponding to the third prediction model; based on the N first score values, N second score values, the weight corresponding to the second prediction model and the weight corresponding to the third prediction model, determine the target recommendation for recommending N target products order.

例如,可以按照每个商品的得分的高低对商品进行推荐。比如,可以先根据因子分解机(FM)预测模型的预测输出结果(上述的第二推荐顺序)确定每个商品对应的得分值;并可以根据多层感知机及因子分解机组合的模型的预测输出结果(上述的第三推荐顺序)确定每个商品对应的得分值;再确定因子分解机(FM)预测模型和多层感知机及因子分解机组合的模型分别对应的权重,然后可以根据由因子分解机(FM)预测模型的预测输出结果确定的每个商品对应的得分值、由多层感知机及因子分解机组合的模型的预测输出结果确定的每个商品对应的得分值、因子分解机(FM)预测模型和多层感知机及因子分解机组合的模型分别对应的权重,得到最终向用户推荐多个商品的推荐顺序。For example, products can be recommended based on the score of each product. For example, you can first determine the score value corresponding to each product based on the prediction output result of the factorization machine (FM) prediction model (the second recommendation sequence mentioned above); and you can also determine the score value corresponding to each product based on the model of the combination of multi-layer perceptron and factorization machine. The prediction output result (the third recommendation sequence mentioned above) determines the score value corresponding to each product; then determines the corresponding weights of the factorization machine (FM) prediction model and the model combined with the multi-layer perceptron and factorization machine, and then you can The score corresponding to each product is determined based on the prediction output result of the factorization machine (FM) prediction model, and the score corresponding to each product is determined based on the prediction output result of the model combining the multi-layer perceptron and factorization machine. The corresponding weights of the value, factorization machine (FM) prediction model and the model combined with the multi-layer perceptron and factorization machine are used to obtain the recommendation sequence for recommending multiple products to the user.

通过上述的方案,通过根据每个商品的得分值的高低可以快速准确的确定最终向用户推荐多个商品的推荐顺序。Through the above solution, the order of recommendation of multiple products to the user can be determined quickly and accurately based on the score value of each product.

例如,本实施例提供了一种基于融合模型的商品推荐方法和系统,且本实施例属于计算机技术领域,尤其涉及商品推荐系统领域。而且,在本实施例中,提供了一种基于融合模型的商品推荐方法,能够提高推荐的准确性。For example, this embodiment provides a product recommendation method and system based on a fusion model, and this embodiment belongs to the field of computer technology, and particularly relates to the field of product recommendation systems. Moreover, in this embodiment, a product recommendation method based on a fusion model is provided, which can improve the accuracy of recommendation.

例如,本实施例主要解决的技术问题是克服传统单一模型在商品推荐系统中难以精准推荐的问题,提供一种基于多模型融合的推荐方法,提高推荐的准确性,提高用户购物体验和平台商品销量。For example, the main technical problem solved by this embodiment is to overcome the problem that traditional single models are difficult to accurately recommend in product recommendation systems, and provide a recommendation method based on multi-model fusion to improve the accuracy of recommendations, user shopping experience and platform products. sales volume.

例如,图3是根据本申请实施例提供的产品的推荐方法的流程图三,如图3所示,本实施例提供的一种基于多模型融合的商品推荐方法,提供了如下技术方案:For example, Figure 3 is flow chart 3 of a product recommendation method provided according to an embodiment of the present application. As shown in Figure 3, a product recommendation method based on multi-model fusion provided by this embodiment provides the following technical solution:

S1、获取用户在平台的用户画像和其历史行为数据,包括商品曝光、点击、加购、购买数据;S1. Obtain the user's user portrait and historical behavior data on the platform, including product exposure, clicks, additional purchases, and purchase data;

S2、根据S1获取到的数据,确定训练样本集和测试样本集,其中,训练样本集的数据发生时间节点应早于测试样本集;样本集合中需要包含用户在平台的唯一ID标识,以区分不同的用户;S2. Based on the data obtained in S1, determine the training sample set and the test sample set. The data occurrence time node of the training sample set should be earlier than the test sample set; the sample set needs to include the user's unique ID identification on the platform to distinguish different users;

S3、根据S2中确定的样本集,构造模型训练特征,特征包括用户行为序列特征、商品特征,特征类型可根据特征值的类型进行更细粒度的划分,具体的,如商品点击、加购、交易频次等可称为后验统计特征;用户ID标识、性别、商品ID标识、类目信息等可称为类别型特征;不同用户对不同商品的点击、加购、交易频次等可称为显示交叉特征;S3. Construct model training features based on the sample set determined in S2. Features include user behavior sequence features and product features. Feature types can be divided into more fine-grained categories based on the type of feature values. Specifically, such as product clicks, additional purchases, Transaction frequency, etc. can be called posterior statistical features; user ID identification, gender, product ID identification, category information, etc. can be called category features; different users' clicks, additional purchases, transaction frequencies, etc. on different products can be called display cross characteristics;

S4、根据S2确定的训练数据集,将S3中的不同类型训练特征,训练多个模型。具体的,使用后验统计特征、显示交叉特征,训练一个梯度提升决策树(GBDT)预测模型;使用后验统计特征、类别型特征、显示交叉特征以及提升决策树预测模型的预测输出结果,训练一个因子分解机(FM)预测模型;使用后验统计特征、类别型特征、显示交叉特征、用户行为序列特征以及梯度提升决策树预测模型的预测输出结果,训练一个多层感知机及因子分解机组合的模型;S4. Based on the training data set determined in S2, train multiple models with different types of training features in S3. Specifically, a gradient boosting decision tree (GBDT) prediction model is trained using posterior statistical features, explicit cross-features, and prediction output results of the improved decision tree prediction model using posterior statistical features, categorical features, explicit cross-features, and improved decision tree prediction models. A factorization machine (FM) prediction model; using posterior statistical features, categorical features, display cross features, user behavior sequence features, and the prediction output results of the gradient boosting decision tree prediction model to train a multi-layer perceptron and factorization machine combined models;

S5、使用S4中训练后的预测模型,对S2中的测试样本集进行预测,向S1中的用户进行商品推荐。S5. Use the prediction model trained in S4 to predict the test sample set in S2 and recommend products to users in S1.

另外,本实施例与现有技术相比,具有如下优点:In addition, compared with the existing technology, this embodiment has the following advantages:

1、对不同属性的特征进行划分,并基于特征训练不同模型,充分利用了各类模型的特点,尽可能大的发挥了模型的作用;1. Divide the features of different attributes and train different models based on the features, making full use of the characteristics of various models and maximizing the role of the models;

2、对各类预测模型的结果进行融合,充分吸收了各类模型的优点,相比单一模型的推荐方法,极大提高了商品推荐的精准性。2. Fusion of the results of various prediction models, fully absorbing the advantages of various models, greatly improving the accuracy of product recommendation compared to the recommendation method of a single model.

综上,本申请实施例提供的产品的推荐方法,通过获取N个目标产品,其中,N个目标产品为待推荐给目标对象的产品,N为大于1的正整数;基于N个目标产品获取数据信息集合,其中,数据信息集合中至少包括:T个历史行为数据、每个目标产品的属性信息和目标对象的属性信息,T个历史行为数据中至少包括M个对象对N个目标产品的历史行为数据,M个对象中至少包括目标对象,T和M均为大于1的正整数;确定S个预测模型,其中,预测模型用于预测推荐N个目标产品的推荐顺序,S个预测模型中至少包括:第一预测模型、第二预测模型和第三预测模型,第一预测模型至少包括决策树模型,第二预测模型至少包括因子分解机模型,第三预测模型至少包括多层感知机模型和因子分解机模型组合后的模型,S为大于1的正整数;依据数据信息集合和S个预测模型,确定推荐N个目标产品的目标推荐顺序,并依据目标推荐顺序向目标对象推荐N个目标产品,解决了相关技术中向用户推荐产品的准确性较低的问题。通过获取待推荐给用户的多个目标产品,并基于多个目标产品获取数据信息集合,然后根据数据信息集合和多个预测模型,确定推荐多个目标产品的目标推荐顺序,并依据目标推荐顺序向用户推荐多个目标产品,从而避免了相关技术中向用户推荐产品的准确性较低的问题,进而达到了提升向用户推荐产品的准确性的效果。In summary, the product recommendation method provided by the embodiments of this application obtains N target products, where the N target products are products to be recommended to the target objects, and N is a positive integer greater than 1; based on the N target products, A collection of data information, wherein the collection of data information includes at least: T pieces of historical behavior data, attribute information of each target product, and attribute information of the target object. The T pieces of historical behavior data include at least M objects for N target products. Historical behavioral data, M objects include at least the target object, T and M are both positive integers greater than 1; determine S prediction models, where the prediction model is used to predict the recommendation order of N target products, and S prediction models including at least: a first prediction model, a second prediction model and a third prediction model. The first prediction model at least includes a decision tree model, the second prediction model at least includes a factor decomposition machine model, and the third prediction model at least includes a multi-layer perceptron. The model after combining the model and the factor decomposition machine model, S is a positive integer greater than 1; based on the data information collection and S prediction models, determine the target recommendation sequence for recommending N target products, and recommend N to the target object based on the target recommendation sequence A target product solves the problem of low accuracy in recommending products to users in related technologies. By obtaining multiple target products to be recommended to users, and obtaining a data information collection based on the multiple target products, and then determining the target recommendation sequence for recommending multiple target products based on the data information collection and multiple prediction models, and based on the target recommendation sequence Recommend multiple target products to users, thereby avoiding the problem of low accuracy in recommending products to users in related technologies, thereby achieving the effect of improving the accuracy of recommending products to users.

需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although a logical sequence is shown in the flowchart, in some cases, The steps shown or described may be performed in a different order than here.

本申请实施例还提供了一种产品的推荐装置,需要说明的是,本申请实施例的产品的推荐装置可以用于执行本申请实施例所提供的用于产品的推荐方法。以下对本申请实施例提供的产品的推荐装置进行介绍。The embodiment of the present application also provides a product recommendation device. It should be noted that the product recommendation device of the embodiment of the present application can be used to execute the product recommendation method provided by the embodiment of the present application. The recommended device of the product provided by the embodiment of this application is introduced below.

图4是根据本申请实施例提供的产品的推荐装置的示意图。如图4所示,该装置包括:第一获取单元401、第二获取单元402、第一确定单元403和第一处理单元404。Figure 4 is a schematic diagram of a product recommendation device provided according to an embodiment of the present application. As shown in Figure 4, the device includes: a first obtaining unit 401, a second obtaining unit 402, a first determining unit 403 and a first processing unit 404.

具体地,第一获取单元401,用于获取N个目标产品,其中,N个目标产品为待推荐给目标对象的产品,N为大于1的正整数;Specifically, the first acquisition unit 401 is used to acquire N target products, where the N target products are products to be recommended to the target object, and N is a positive integer greater than 1;

第二获取单元402,用于基于N个目标产品获取数据信息集合,其中,数据信息集合中至少包括:T个历史行为数据、每个目标产品的属性信息和目标对象的属性信息,T个历史行为数据中至少包括M个对象对N个目标产品的历史行为数据,M个对象中至少包括目标对象,T和M均为大于1的正整数;The second acquisition unit 402 is used to acquire a data information set based on N target products, where the data information set at least includes: T pieces of historical behavior data, attribute information of each target product and attribute information of the target object, T pieces of history The behavioral data includes at least M objects' historical behavioral data for N target products, the M objects include at least the target object, and both T and M are positive integers greater than 1;

第一确定单元403,用于确定S个预测模型,其中,预测模型用于预测推荐N个目标产品的推荐顺序,S个预测模型中至少包括:第一预测模型、第二预测模型和第三预测模型,第一预测模型至少包括决策树模型,第二预测模型至少包括因子分解机模型,第三预测模型至少包括多层感知机模型和因子分解机模型组合后的模型,S为大于1的正整数;The first determination unit 403 is used to determine S prediction models, where the prediction models are used to predict the recommendation order of N target products. The S prediction models at least include: a first prediction model, a second prediction model and a third prediction model. Prediction model, the first prediction model at least includes a decision tree model, the second prediction model at least includes a factor decomposition machine model, the third prediction model at least includes a combination of a multi-layer perceptron model and a factor decomposition machine model, S is greater than 1 positive integer;

第一处理单元404,用于依据数据信息集合和S个预测模型,确定推荐N个目标产品的目标推荐顺序,并依据目标推荐顺序向目标对象推荐N个目标产品。The first processing unit 404 is configured to determine a target recommendation sequence for recommending N target products based on the data information set and S prediction models, and recommend N target products to the target object according to the target recommendation sequence.

综上,本申请实施例提供的产品的推荐装置,通过第一获取单元401获取N个目标产品,其中,N个目标产品为待推荐给目标对象的产品,N为大于1的正整数;第二获取单元402基于N个目标产品获取数据信息集合,其中,数据信息集合中至少包括:T个历史行为数据、每个目标产品的属性信息和目标对象的属性信息,T个历史行为数据中至少包括M个对象对N个目标产品的历史行为数据,M个对象中至少包括目标对象,T和M均为大于1的正整数;第一确定单元403确定S个预测模型,其中,预测模型用于预测推荐N个目标产品的推荐顺序,S个预测模型中至少包括:第一预测模型、第二预测模型和第三预测模型,第一预测模型至少包括决策树模型,第二预测模型至少包括因子分解机模型,第三预测模型至少包括多层感知机模型和因子分解机模型组合后的模型,S为大于1的正整数;第一处理单元404依据数据信息集合和S个预测模型,确定推荐N个目标产品的目标推荐顺序,并依据目标推荐顺序向目标对象推荐N个目标产品,解决了相关技术中向用户推荐产品的准确性较低的问题。通过获取待推荐给用户的多个目标产品,并基于多个目标产品获取数据信息集合,然后根据数据信息集合和多个预测模型,确定推荐多个目标产品的目标推荐顺序,并依据目标推荐顺序向用户推荐多个目标产品,从而避免了相关技术中向用户推荐产品的准确性较低的问题,进而达到了提升向用户推荐产品的准确性的效果。In summary, the product recommendation device provided by the embodiment of the present application acquires N target products through the first acquisition unit 401, where the N target products are products to be recommended to the target object, and N is a positive integer greater than 1; The second acquisition unit 402 acquires a data information set based on N target products, wherein the data information set includes at least: T pieces of historical behavior data, attribute information of each target product, and attribute information of the target object, and at least T pieces of historical behavior data Including the historical behavior data of M objects for N target products, the M objects include at least the target object, and T and M are both positive integers greater than 1; the first determination unit 403 determines S prediction models, where the prediction model is For predicting and recommending the order of recommending N target products, the S prediction models at least include: a first prediction model, a second prediction model and a third prediction model. The first prediction model at least includes a decision tree model, and the second prediction model at least includes The factorization machine model, the third prediction model at least includes a combination of the multi-layer perceptron model and the factorization machine model, S is a positive integer greater than 1; the first processing unit 404 determines based on the data information set and S prediction models Recommend the target recommendation sequence of N target products, and recommend N target products to the target object according to the target recommendation sequence, which solves the problem of low accuracy in recommending products to users in related technologies. By obtaining multiple target products to be recommended to users, and obtaining a data information collection based on the multiple target products, and then determining the target recommendation sequence for recommending multiple target products based on the data information collection and multiple prediction models, and based on the target recommendation sequence Recommend multiple target products to users, thereby avoiding the problem of low accuracy in recommending products to users in related technologies, thereby achieving the effect of improving the accuracy of recommending products to users.

可选地,在本申请实施例提供的产品的推荐装置中,T个历史行为数据至少包括:第一历史行为数据、第二历史行为数据和第三历史行为数据,第一历史行为数据为目标对象对目标产品的历史行为数据,第二历史行为数据为M个对象中的每个对象对目标产品的历史行为数据,第三历史行为数据为M个对象中的每个对象对每个目标产品的历史行为数据,第一处理单元包括:第一处理模块,用于将第二历史行为数据和第三历史行为数据输入第一预测模型预测推荐N个目标产品的推荐顺序,输出第一推荐顺序;第二处理模块,用于将第一推荐顺序、第二历史行为数据、第三历史行为数据、每个目标产品的属性信息和目标对象的属性信息输入第二预测模型预测推荐N个目标产品的推荐顺序,输出第二推荐顺序;第三处理模块,用于将第一推荐顺序、第一历史行为数据、第二历史行为数据、第三历史行为数据、每个目标产品的属性信息和目标对象的属性信息输入第三预测模型预测推荐N个目标产品的推荐顺序,输出第三推荐顺序;第一确定模块,用于基于第二推荐顺序和第三推荐顺序,确定推荐N个目标产品的目标推荐顺序。Optionally, in the product recommendation device provided by the embodiment of the present application, the T pieces of historical behavior data include at least: first historical behavior data, second historical behavior data and third historical behavior data, and the first historical behavior data is the target. The object's historical behavior data for the target product, the second historical behavior data is the historical behavior data of each of the M objects for the target product, and the third historical behavior data is the historical behavior data of each of the M objects for each target product. Historical behavior data, the first processing unit includes: a first processing module, used to input the second historical behavior data and the third historical behavior data into the first prediction model to predict and recommend the recommendation order of N target products, and output the first recommendation order ; The second processing module is used to input the first recommendation sequence, the second historical behavior data, the third historical behavior data, the attribute information of each target product and the attribute information of the target object into the second prediction model to predict and recommend N target products. The recommendation sequence, outputs the second recommendation sequence; the third processing module is used to combine the first recommendation sequence, the first historical behavior data, the second historical behavior data, the third historical behavior data, the attribute information and target of each target product The attribute information of the object is input into the third prediction model to predict the recommendation order of N target products and output the third recommendation order; the first determination module is used to determine the recommendation order of N target products based on the second recommendation order and the third recommendation order. Target recommendation sequence.

可选地,在本申请实施例提供的产品的推荐装置中,第一确定模块包括:第一确定子模块,用于基于第二推荐顺序确定每个目标产品对应的得分值,得到N个第一得分值;第二确定子模块,用于基于第三推荐顺序确定每个目标产品对应的得分值,得到N个第二得分值;第三确定子模块,用于分别确定第二预测模型对应的权重和第三预测模型对应的权重;第四确定子模块,用于基于N个第一得分值、N个第二得分值、第二预测模型对应的权重和第三预测模型对应的权重,确定推荐N个目标产品的目标推荐顺序。Optionally, in the product recommendation device provided by the embodiment of the present application, the first determination module includes: a first determination sub-module, used to determine the score value corresponding to each target product based on the second recommendation order, and obtain N The first score value; the second determination sub-module is used to determine the score value corresponding to each target product based on the third recommendation order, and obtain N second score values; the third determination sub-module is used to determine the first score value respectively. The weight corresponding to the second prediction model and the weight corresponding to the third prediction model; the fourth determination submodule is used to determine the weight based on N first score values, N second score values, the weight corresponding to the second prediction model and the third The weight corresponding to the prediction model determines the target recommendation sequence for recommending N target products.

可选地,在本申请实施例提供的产品的推荐装置中,S个预测模型通过以下单元得到:第三获取单元,用于获取目标训练样本集,其中,目标训练样本集中至少包括历史过程中获取到的Q个样本行为数据、W个样本产品的属性信息和P个样本对象的属性信息,Q个样本行为数据中至少包括P个样本对象对W个样本产品的行为数据,Q、W和P均为大于1的正整数;第一训练单元,用于利用目标训练样本集对S个原始预测模型中的每个原始预测模型进行学习训练,得到S个预测模型,其中,S个原始预测模型中至少包括:第一原始预测模型、第二原始预测模型和第三原始预测模型。Optionally, in the product recommendation device provided by the embodiment of the present application, S prediction models are obtained through the following units: a third acquisition unit, used to obtain a target training sample set, wherein the target training sample set at least includes The obtained Q sample behavior data, W sample product attribute information and P sample object attribute information, the Q sample behavior data at least includes the behavior data of P sample objects for W sample products, Q, W and P is a positive integer greater than 1; the first training unit is used to use the target training sample set to learn and train each of the S original prediction models to obtain S prediction models, among which, S original predictions The model at least includes: a first original prediction model, a second original prediction model and a third original prediction model.

可选地,在本申请实施例提供的产品的推荐装置中,第一训练单元包括:第四处理模块,用于对目标训练样本集中的Q个样本行为数据进行分类处理,得到第一样本行为数据、第二样本行为数据和第三样本行为数据,其中,第一样本行为数据为样本对象对样本产品的行为数据,第二样本行为数据为P个样本对象中的每个样本对象对样本产品的行为数据,第三样本行为数据为P个样本对象中的每个样本对象对每个样本产品的行为数据;第一训练模块,用于利用第二样本行为数据和第三样本行为数据对S个原始预测模型中的第一原始预测模型进行学习训练,得到第一预测模型;第二训练模块,用于获取第一预测模型输出的预测结果,并利用预测结果、第二样本行为数据、第三样本行为数据、W个样本产品的属性信息和P个样本对象的属性信息对S个原始预测模型中的第二原始预测模型进行学习训练,得到第二预测模型;第三训练模块,用于利用预测结果、第一样本行为数据、第二样本行为数据、第三样本行为数据、W个样本产品的属性信息和P个样本对象的属性信息对S个原始预测模型中的第三原始预测模型进行学习训练,得到第三预测模型;第二确定模块,用于基于第一预测模型、第二预测模型和第三预测模型,得到S个预测模型。Optionally, in the product recommendation device provided by the embodiment of the present application, the first training unit includes: a fourth processing module, used to classify Q sample behavior data in the target training sample set to obtain the first sample Behavior data, second sample behavior data and third sample behavior data, where the first sample behavior data is the behavior data of sample objects for sample products, and the second sample behavior data is each sample object pair among the P sample objects. The behavioral data of the sample product, the third sample behavioral data is the behavioral data of each sample object among the P sample objects for each sample product; the first training module is used to utilize the second sample behavioral data and the third sample behavioral data Learn and train the first original prediction model among the S original prediction models to obtain the first prediction model; the second training module is used to obtain the prediction results output by the first prediction model, and use the prediction results and the second sample behavior data , the third sample behavioral data, the attribute information of W sample products and the attribute information of P sample objects are learned and trained on the second original prediction model among the S original prediction models to obtain the second prediction model; the third training module, Used to use the prediction results, the first sample behavior data, the second sample behavior data, the third sample behavior data, the attribute information of W sample products and the attribute information of P sample objects to predict the third of the S original prediction models. The original prediction model undergoes learning and training to obtain a third prediction model; the second determination module is used to obtain S prediction models based on the first prediction model, the second prediction model and the third prediction model.

可选地,在本申请实施例提供的产品的推荐装置中,第二训练模块包括:第一获取子模块,用于获取第二样本行为数据和第三样本行为数据;第一输出子模块,用于将第二样本行为数据和第三样本行为数据输入第一预测模型预测推荐W个样本产品的推荐顺序,输出预测的推荐W个样本产品的推荐顺序;第五确定子模块,用于将预测的推荐W个样本产品的推荐顺序作为预测结果。Optionally, in the product recommendation device provided by the embodiment of the present application, the second training module includes: a first acquisition sub-module, used to acquire the second sample behavior data and the third sample behavior data; a first output sub-module, Used to input the second sample behavior data and the third sample behavior data into the first prediction model to predict the recommendation order of W sample products, and output the predicted recommendation order of W sample products; the fifth determination sub-module is used to The predicted recommendation order of W sample products is used as the prediction result.

可选地,在本申请实施例提供的产品的推荐装置中,第三获取单元包括:第五处理模块,用于获取P个样本对象中每个样本对象的画像信息,并基于每个样本对象的画像信息,确定P个样本对象的属性信息,其中,P个样本对象的属性信息中至少包括:每个样本对象的ID信息和每个样本对象的性别信息;第一获取模块,用于获取W个样本产品的属性信息,其中,W个样本产品的属性信息中至少包括:每个样本产品的ID信息和每个样本产品的类别信息;第二获取模块,用于获取P个样本对象对W个样本产品的行为数据;第三确定模块,用于依据P个样本对象对W个样本产品的行为数据,确定Q个样本行为数据;第三获取模块,用于基于P个样本对象的属性信息、W个样本产品的属性信息和Q个样本行为数据获取目标训练样本集。Optionally, in the product recommendation device provided by the embodiment of the present application, the third acquisition unit includes: a fifth processing module, used to acquire the portrait information of each sample object among the P sample objects, and based on each sample object The portrait information of P sample objects is determined to determine the attribute information of P sample objects, wherein the attribute information of P sample objects at least includes: the ID information of each sample object and the gender information of each sample object; the first acquisition module is used to obtain Attribute information of W sample products, where the attribute information of W sample products at least includes: ID information of each sample product and category information of each sample product; the second acquisition module is used to obtain P sample object pairs Behavioral data of W sample products; the third determination module is used to determine Q sample behavior data based on the behavior data of W sample products based on P sample objects; the third acquisition module is used to determine Q sample behavior data based on the attributes of P sample objects Information, attribute information of W sample products and Q sample behavioral data to obtain the target training sample set.

产品的推荐装置包括处理器和存储器,上述的第一获取单元401、第二获取单元402、第一确定单元403和第一处理单元404等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。The product recommendation device includes a processor and a memory. The above-mentioned first acquisition unit 401, second acquisition unit 402, first determination unit 403, first processing unit 404, etc. are all stored in the memory as program units, and the storage is executed by the processor. The above program units in the memory implement corresponding functions.

处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来提升向用户推荐产品的准确性。The processor contains a core, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the accuracy of product recommendations to users can be improved by adjusting kernel parameters.

存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory includes at least one memory chip.

本发明实施例提供了一种计算机可读存储介质,其上存储有程序,该程序被处理器执行时实现所述产品的推荐方法。Embodiments of the present invention provide a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the recommended method for the product is implemented.

本发明实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述产品的推荐方法。An embodiment of the present invention provides a processor, which is configured to run a program, wherein when the program is run, the recommended method for the product is executed.

如图5所示,本发明实施例提供了一种电子设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现以下步骤:获取N个目标产品,其中,所述N个目标产品为待推荐给目标对象的产品,N为大于1的正整数;基于所述N个目标产品获取数据信息集合,其中,所述数据信息集合中至少包括:T个历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息,所述T个历史行为数据中至少包括M个对象对所述N个目标产品的历史行为数据,所述M个对象中至少包括所述目标对象,T和M均为大于1的正整数;确定S个预测模型,其中,所述预测模型用于预测推荐所述N个目标产品的推荐顺序,所述S个预测模型中至少包括:第一预测模型、第二预测模型和第三预测模型,所述第一预测模型至少包括决策树模型,所述第二预测模型至少包括因子分解机模型,所述第三预测模型至少包括多层感知机模型和因子分解机模型组合后的模型,S为大于1的正整数;依据所述数据信息集合和所述S个预测模型,确定推荐所述N个目标产品的目标推荐顺序,并依据所述目标推荐顺序向所述目标对象推荐所述N个目标产品。As shown in Figure 5, an embodiment of the present invention provides an electronic device. The device includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements the following steps: Obtain N Target products, wherein the N target products are products to be recommended to target objects, and N is a positive integer greater than 1; a data information set is obtained based on the N target products, wherein the data information set at least includes : T pieces of historical behavior data, attribute information of each target product and attribute information of the target object. The T pieces of historical behavior data include at least the historical behavior data of M objects for the N target products, and the The M objects at least include the target object, and T and M are both positive integers greater than 1; determine S prediction models, wherein the prediction models are used to predict and recommend the recommendation order of the N target products, and the The S prediction models at least include: a first prediction model, a second prediction model and a third prediction model, the first prediction model at least includes a decision tree model, the second prediction model at least includes a factor decomposition machine model, the The third prediction model at least includes a combination of a multi-layer perceptron model and a factorization machine model, and S is a positive integer greater than 1; based on the data information set and the S prediction models, determine and recommend the N targets The target recommendation order of products, and recommend the N target products to the target object according to the target recommendation order.

处理器执行程序时还实现以下步骤:所述T个历史行为数据至少包括:第一历史行为数据、第二历史行为数据和第三历史行为数据,所述第一历史行为数据为所述目标对象对所述目标产品的历史行为数据,所述第二历史行为数据为所述M个对象中的每个对象对所述目标产品的历史行为数据,所述第三历史行为数据为所述M个对象中的每个对象对每个目标产品的历史行为数据,依据所述数据信息集合和所述S个预测模型,确定推荐所述N个目标产品的目标推荐顺序包括:将所述第二历史行为数据和所述第三历史行为数据输入所述第一预测模型预测推荐所述N个目标产品的推荐顺序,输出第一推荐顺序;将所述第一推荐顺序、所述第二历史行为数据、所述第三历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息输入所述第二预测模型预测推荐所述N个目标产品的推荐顺序,输出第二推荐顺序;将所述第一推荐顺序、所述第一历史行为数据、所述第二历史行为数据、所述第三历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息输入所述第三预测模型预测推荐所述N个目标产品的推荐顺序,输出第三推荐顺序;基于所述第二推荐顺序和所述第三推荐顺序,确定推荐所述N个目标产品的所述目标推荐顺序。When the processor executes the program, the following steps are also implemented: the T pieces of historical behavior data include at least: first historical behavior data, second historical behavior data and third historical behavior data, and the first historical behavior data is the target object. For the historical behavior data of the target product, the second historical behavior data is the historical behavior data of each of the M objects towards the target product, and the third historical behavior data is the M Based on the historical behavior data of each object in the object for each target product, based on the data information set and the S prediction models, determining the target recommendation sequence for recommending the N target products includes: converting the second history Behavior data and the third historical behavior data are input into the first prediction model to predict and recommend the recommendation order of the N target products, and the first recommendation order is output; the first recommendation order, the second historical behavior data are , the third historical behavior data, the attribute information of each target product and the attribute information of the target object are input into the second prediction model to predict and recommend the recommendation order of the N target products, and output the second recommendation order; The first recommendation sequence, the first historical behavior data, the second historical behavior data, the third historical behavior data, the attribute information of each target product and the attribute information of the target object are input into the third The three prediction models predict and recommend the recommendation order of the N target products, and output a third recommendation order; based on the second recommendation order and the third recommendation order, determine the target recommendation order for recommending the N target products. .

处理器执行程序时还实现以下步骤:基于所述第二推荐顺序和所述第三推荐顺序,确定推荐所述N个目标产品的所述目标推荐顺序包括:基于所述第二推荐顺序确定每个目标产品对应的得分值,得到N个第一得分值;基于所述第三推荐顺序确定每个目标产品对应的得分值,得到N个第二得分值;分别确定所述第二预测模型对应的权重和所述第三预测模型对应的权重;基于所述N个第一得分值、所述N个第二得分值、所述第二预测模型对应的权重和所述第三预测模型对应的权重,确定推荐所述N个目标产品的所述目标推荐顺序。When the processor executes the program, the processor also implements the following steps: based on the second recommendation order and the third recommendation order, determining the target recommendation order to recommend the N target products includes: determining each of the N target products based on the second recommendation order. Score values corresponding to the target products are obtained, and N first score values are obtained; the score value corresponding to each target product is determined based on the third recommendation sequence, and N second score values are obtained; and the first score values are determined respectively. The weight corresponding to the second prediction model and the weight corresponding to the third prediction model; based on the N first score values, the N second score values, the weight corresponding to the second prediction model and the The weight corresponding to the third prediction model determines the target recommendation order for recommending the N target products.

处理器执行程序时还实现以下步骤:所述S个预测模型通过以下方式得到:获取目标训练样本集,其中,所述目标训练样本集中至少包括历史过程中获取到的Q个样本行为数据、W个样本产品的属性信息和P个样本对象的属性信息,所述Q个样本行为数据中至少包括所述P个样本对象对所述W个样本产品的行为数据,Q、W和P均为大于1的正整数;利用所述目标训练样本集对S个原始预测模型中的每个原始预测模型进行学习训练,得到所述S个预测模型,其中,所述S个原始预测模型中至少包括:第一原始预测模型、第二原始预测模型和第三原始预测模型。When the processor executes the program, the following steps are also implemented: the S prediction models are obtained in the following manner: obtaining a target training sample set, wherein the target training sample set includes at least Q sample behavioral data, W obtained in the historical process Attribute information of sample products and attribute information of P sample objects. The Q sample behavior data at least includes the behavior data of the P sample objects for the W sample products. Q, W and P are all greater than A positive integer of 1; use the target training sample set to perform learning and training on each of the S original prediction models to obtain the S prediction models, wherein the S original prediction models at least include: The first original prediction model, the second original prediction model and the third original prediction model.

处理器执行程序时还实现以下步骤:利用所述目标训练样本集对S个原始预测模型中的每个原始预测模型进行学习训练,得到所述S个预测模型包括:对所述目标训练样本集中的所述Q个样本行为数据进行分类处理,得到第一样本行为数据、第二样本行为数据和第三样本行为数据,其中,所述第一样本行为数据为所述样本对象对所述样本产品的行为数据,所述第二样本行为数据为所述P个样本对象中的每个样本对象对所述样本产品的行为数据,所述第三样本行为数据为所述P个样本对象中的每个样本对象对每个样本产品的行为数据;利用所述第二样本行为数据和所述第三样本行为数据对所述S个原始预测模型中的所述第一原始预测模型进行学习训练,得到所述第一预测模型;获取所述第一预测模型输出的预测结果,并利用所述预测结果、所述第二样本行为数据、所述第三样本行为数据、所述W个样本产品的属性信息和所述P个样本对象的属性信息对所述S个原始预测模型中的所述第二原始预测模型进行学习训练,得到所述第二预测模型;利用所述预测结果、所述第一样本行为数据、所述第二样本行为数据、所述第三样本行为数据、所述W个样本产品的属性信息和所述P个样本对象的属性信息对所述S个原始预测模型中的所述第三原始预测模型进行学习训练,得到所述第三预测模型;基于所述第一预测模型、所述第二预测模型和所述第三预测模型,得到所述S个预测模型。When the processor executes the program, the following steps are also implemented: using the target training sample set to perform learning and training on each of the S original prediction models. Obtaining the S prediction models includes: using the target training sample set to learn and train The Q sample behavior data are classified and processed to obtain the first sample behavior data, the second sample behavior data and the third sample behavior data, wherein the first sample behavior data is the sample object's response to the Behavior data of sample products, the second sample behavior data is the behavior data of each sample object in the P sample objects to the sample product, and the third sample behavior data is the behavior data of each of the P sample objects. Behavior data of each sample object for each sample product; use the second sample behavior data and the third sample behavior data to learn and train the first original prediction model among the S original prediction models , obtain the first prediction model; obtain the prediction result output by the first prediction model, and use the prediction result, the second sample behavior data, the third sample behavior data, and the W sample products The attribute information of the P sample objects and the attribute information of the P sample objects are learned and trained on the second original prediction model among the S original prediction models to obtain the second prediction model; using the prediction results, the The first sample behavior data, the second sample behavior data, the third sample behavior data, the attribute information of the W sample products and the attribute information of the P sample objects compare to the S original prediction models. The third original prediction model in is learned and trained to obtain the third prediction model; based on the first prediction model, the second prediction model and the third prediction model, the S prediction models are obtained .

处理器执行程序时还实现以下步骤:获取所述第一预测模型输出的预测结果包括:获取所述第二样本行为数据和所述第三样本行为数据;将所述第二样本行为数据和所述第三样本行为数据输入所述第一预测模型预测推荐所述W个样本产品的推荐顺序,输出预测的推荐所述W个样本产品的推荐顺序;将所述预测的推荐所述W个样本产品的推荐顺序作为所述预测结果。When the processor executes the program, the following steps are also implemented: Obtaining the prediction result output by the first prediction model includes: obtaining the second sample behavior data and the third sample behavior data; combining the second sample behavior data and the The third sample behavior data is input into the first prediction model to predict and recommend the recommendation order of the W sample products, and output the predicted recommendation order of the W sample products; and the predicted recommendation order of the W samples is output The recommended order of products is used as the predicted result.

处理器执行程序时还实现以下步骤:获取目标训练样本集包括:获取所述P个样本对象中每个样本对象的画像信息,并基于每个样本对象的画像信息,确定所述P个样本对象的属性信息,其中,所述P个样本对象的属性信息中至少包括:每个样本对象的ID信息和每个样本对象的性别信息;获取所述W个样本产品的属性信息,其中,所述W个样本产品的属性信息中至少包括:每个样本产品的ID信息和每个样本产品的类别信息;获取所述P个样本对象对所述W个样本产品的行为数据;依据所述P个样本对象对所述W个样本产品的行为数据,确定所述Q个样本行为数据;基于所述P个样本对象的属性信息、所述W个样本产品的属性信息和所述Q个样本行为数据获取所述目标训练样本集。The processor also implements the following steps when executing the program: Obtaining the target training sample set includes: obtaining the portrait information of each sample object among the P sample objects, and determining the P sample objects based on the portrait information of each sample object. attribute information, wherein the attribute information of the P sample objects at least includes: ID information of each sample object and gender information of each sample object; obtain attribute information of the W sample products, wherein, the The attribute information of the W sample products at least includes: the ID information of each sample product and the category information of each sample product; obtaining the behavior data of the P sample objects for the W sample products; based on the P The sample object determines the Q sample behavior data based on the behavior data of the W sample products; based on the attribute information of the P sample objects, the attribute information of the W sample products and the Q sample behavior data Obtain the target training sample set.

本文中的设备可以是服务器、PC、PAD、手机等。The devices in this article can be servers, PCs, PADs, mobile phones, etc.

本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有如下方法步骤的程序:获取N个目标产品,其中,所述N个目标产品为待推荐给目标对象的产品,N为大于1的正整数;基于所述N个目标产品获取数据信息集合,其中,所述数据信息集合中至少包括:T个历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息,所述T个历史行为数据中至少包括M个对象对所述N个目标产品的历史行为数据,所述M个对象中至少包括所述目标对象,T和M均为大于1的正整数;确定S个预测模型,其中,所述预测模型用于预测推荐所述N个目标产品的推荐顺序,所述S个预测模型中至少包括:第一预测模型、第二预测模型和第三预测模型,所述第一预测模型至少包括决策树模型,所述第二预测模型至少包括因子分解机模型,所述第三预测模型至少包括多层感知机模型和因子分解机模型组合后的模型,S为大于1的正整数;依据所述数据信息集合和所述S个预测模型,确定推荐所述N个目标产品的目标推荐顺序,并依据所述目标推荐顺序向所述目标对象推荐所述N个目标产品。This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program initialized with the following method steps: acquiring N target products, wherein the N target products are to be recommended to the target The product of the object, N is a positive integer greater than 1; a data information set is obtained based on the N target products, wherein the data information set at least includes: T pieces of historical behavior data, attribute information of each target product and all The attribute information of the target object, the T historical behavior data includes at least the historical behavior data of M objects for the N target products, the M objects include at least the target object, and both T and M are A positive integer greater than 1; determine S prediction models, wherein the prediction models are used to predict the recommendation order of the N target products, and the S prediction models at least include: a first prediction model, a second prediction model and a third prediction model, the first prediction model at least includes a decision tree model, the second prediction model at least includes a factorization machine model, and the third prediction model at least includes a multi-layer perceptron model and a factorization machine model. In the combined model, S is a positive integer greater than 1; based on the data information set and the S prediction models, the target recommendation order for recommending the N target products is determined, and the target recommendation order is determined according to the target recommendation order. The target object recommends the N target products.

当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:所述T个历史行为数据至少包括:第一历史行为数据、第二历史行为数据和第三历史行为数据,所述第一历史行为数据为所述目标对象对所述目标产品的历史行为数据,所述第二历史行为数据为所述M个对象中的每个对象对所述目标产品的历史行为数据,所述第三历史行为数据为所述M个对象中的每个对象对每个目标产品的历史行为数据,依据所述数据信息集合和所述S个预测模型,确定推荐所述N个目标产品的目标推荐顺序包括:将所述第二历史行为数据和所述第三历史行为数据输入所述第一预测模型预测推荐所述N个目标产品的推荐顺序,输出第一推荐顺序;将所述第一推荐顺序、所述第二历史行为数据、所述第三历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息输入所述第二预测模型预测推荐所述N个目标产品的推荐顺序,输出第二推荐顺序;将所述第一推荐顺序、所述第一历史行为数据、所述第二历史行为数据、所述第三历史行为数据、每个目标产品的属性信息和所述目标对象的属性信息输入所述第三预测模型预测推荐所述N个目标产品的推荐顺序,输出第三推荐顺序;基于所述第二推荐顺序和所述第三推荐顺序,确定推荐所述N个目标产品的所述目标推荐顺序。When executed on a data processing device, it is also suitable to execute a program initialized with the following method steps: the T pieces of historical behavior data at least include: first historical behavior data, second historical behavior data and third historical behavior data, so The first historical behavior data is the historical behavior data of the target object towards the target product, the second historical behavior data is the historical behavior data of each of the M objects towards the target product, so The third historical behavior data is the historical behavior data of each of the M objects for each target product. Based on the data information set and the S prediction models, it is determined to recommend the N target products. The target recommendation sequence includes: inputting the second historical behavior data and the third historical behavior data into the first prediction model to predict and recommend the recommendation sequence of the N target products, and outputting the first recommendation sequence; A recommendation sequence, the second historical behavior data, the third historical behavior data, attribute information of each target product and attribute information of the target object are input into the second prediction model to predict and recommend the N target products. the recommendation sequence, output the second recommendation sequence; combine the first recommendation sequence, the first historical behavior data, the second historical behavior data, the third historical behavior data, the attribute information of each target product and The attribute information of the target object is input into the third prediction model to predict and recommend the recommendation order of the N target products, and a third recommendation order is output; based on the second recommendation order and the third recommendation order, the recommended order is determined. The target recommendation order of the N target products.

当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:基于所述第二推荐顺序和所述第三推荐顺序,确定推荐所述N个目标产品的所述目标推荐顺序包括:基于所述第二推荐顺序确定每个目标产品对应的得分值,得到N个第一得分值;基于所述第三推荐顺序确定每个目标产品对应的得分值,得到N个第二得分值;分别确定所述第二预测模型对应的权重和所述第三预测模型对应的权重;基于所述N个第一得分值、所述N个第二得分值、所述第二预测模型对应的权重和所述第三预测模型对应的权重,确定推荐所述N个目标产品的所述目标推荐顺序。When executed on a data processing device, it is also suitable to execute a program initialized with the following method steps: based on the second recommendation sequence and the third recommendation sequence, determine the target recommendation sequence for recommending the N target products The method includes: determining the score value corresponding to each target product based on the second recommendation sequence, and obtaining N first score values; determining the score value corresponding to each target product based on the third recommendation sequence, and obtaining N first score values. The second score value; respectively determine the weight corresponding to the second prediction model and the weight corresponding to the third prediction model; based on the N first score values, the N second score values, and the The weight corresponding to the second prediction model and the weight corresponding to the third prediction model determine the target recommendation order for recommending the N target products.

当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:所述S个预测模型通过以下方式得到:获取目标训练样本集,其中,所述目标训练样本集中至少包括历史过程中获取到的Q个样本行为数据、W个样本产品的属性信息和P个样本对象的属性信息,所述Q个样本行为数据中至少包括所述P个样本对象对所述W个样本产品的行为数据,Q、W和P均为大于1的正整数;利用所述目标训练样本集对S个原始预测模型中的每个原始预测模型进行学习训练,得到所述S个预测模型,其中,所述S个原始预测模型中至少包括:第一原始预测模型、第二原始预测模型和第三原始预测模型。When executed on a data processing device, it is also suitable to execute a program initialized with the following method steps: the S prediction models are obtained in the following manner: obtaining a target training sample set, wherein the target training sample set at least includes historical processes Q sample behavior data, attribute information of W sample products, and attribute information of P sample objects obtained from Behavioral data, Q, W and P are all positive integers greater than 1; use the target training sample set to learn and train each of the S original prediction models to obtain the S prediction models, where, The S original prediction models include at least: a first original prediction model, a second original prediction model and a third original prediction model.

当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:利用所述目标训练样本集对S个原始预测模型中的每个原始预测模型进行学习训练,得到所述S个预测模型包括:对所述目标训练样本集中的所述Q个样本行为数据进行分类处理,得到第一样本行为数据、第二样本行为数据和第三样本行为数据,其中,所述第一样本行为数据为所述样本对象对所述样本产品的行为数据,所述第二样本行为数据为所述P个样本对象中的每个样本对象对所述样本产品的行为数据,所述第三样本行为数据为所述P个样本对象中的每个样本对象对每个样本产品的行为数据;利用所述第二样本行为数据和所述第三样本行为数据对所述S个原始预测模型中的所述第一原始预测模型进行学习训练,得到所述第一预测模型;获取所述第一预测模型输出的预测结果,并利用所述预测结果、所述第二样本行为数据、所述第三样本行为数据、所述W个样本产品的属性信息和所述P个样本对象的属性信息对所述S个原始预测模型中的所述第二原始预测模型进行学习训练,得到所述第二预测模型;利用所述预测结果、所述第一样本行为数据、所述第二样本行为数据、所述第三样本行为数据、所述W个样本产品的属性信息和所述P个样本对象的属性信息对所述S个原始预测模型中的所述第三原始预测模型进行学习训练,得到所述第三预测模型;基于所述第一预测模型、所述第二预测模型和所述第三预测模型,得到所述S个预测模型。When executed on a data processing device, it is also suitable to execute a program initialized with the following method steps: using the target training sample set to perform learning and training on each of the S original prediction models to obtain the S The prediction model includes: classifying the Q sample behavior data in the target training sample set to obtain the first sample behavior data, the second sample behavior data and the third sample behavior data, wherein the first sample behavior data This behavior data is the behavior data of the sample object towards the sample product, the second sample behavior data is the behavior data of each sample object in the P sample objects towards the sample product, and the third The sample behavior data is the behavior data of each of the P sample objects for each sample product; the second sample behavior data and the third sample behavior data are used to analyze the S original prediction models. Perform learning and training on the first original prediction model to obtain the first prediction model; obtain the prediction results output by the first prediction model, and use the prediction results, the second sample behavior data, and the third Three samples of behavioral data, attribute information of the W sample products and attribute information of the P sample objects are used to learn and train the second original prediction model among the S original prediction models, and obtain the second original prediction model. Prediction model; using the prediction results, the first sample behavior data, the second sample behavior data, the third sample behavior data, the attribute information of the W sample products and the P sample objects The third original prediction model among the S original prediction models is learned and trained with the attribute information to obtain the third prediction model; based on the first prediction model, the second prediction model and the third prediction model Three prediction models are used to obtain the S prediction models.

当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:获取所述第一预测模型输出的预测结果包括:获取所述第二样本行为数据和所述第三样本行为数据;将所述第二样本行为数据和所述第三样本行为数据输入所述第一预测模型预测推荐所述W个样本产品的推荐顺序,输出预测的推荐所述W个样本产品的推荐顺序;将所述预测的推荐所述W个样本产品的推荐顺序作为所述预测结果。When executed on a data processing device, it is also suitable to execute a program initialized with the following method steps: obtaining the prediction result output by the first prediction model includes: obtaining the second sample behavior data and the third sample behavior data ; Input the second sample behavior data and the third sample behavior data into the first prediction model to predict the recommendation order of the W sample products, and output the predicted recommendation order of the W sample products; The predicted recommendation order of the W sample products is used as the prediction result.

当在数据处理设备上执行时,还适于执行初始化有如下方法步骤的程序:获取目标训练样本集包括:获取所述P个样本对象中每个样本对象的画像信息,并基于每个样本对象的画像信息,确定所述P个样本对象的属性信息,其中,所述P个样本对象的属性信息中至少包括:每个样本对象的ID信息和每个样本对象的性别信息;获取所述W个样本产品的属性信息,其中,所述W个样本产品的属性信息中至少包括:每个样本产品的ID信息和每个样本产品的类别信息;获取所述P个样本对象对所述W个样本产品的行为数据;依据所述P个样本对象对所述W个样本产品的行为数据,确定所述Q个样本行为数据;基于所述P个样本对象的属性信息、所述W个样本产品的属性信息和所述Q个样本行为数据获取所述目标训练样本集。When executed on a data processing device, it is also suitable to execute a program initialized with the following method steps: obtaining the target training sample set includes: obtaining the portrait information of each sample object among the P sample objects, and based on each sample object portrait information, determine the attribute information of the P sample objects, wherein the attribute information of the P sample objects at least includes: ID information of each sample object and gender information of each sample object; obtain the W Attribute information of the W sample products, wherein the attribute information of the W sample products at least includes: ID information of each sample product and category information of each sample product; Obtain the P sample objects for the W sample products Behavior data of sample products; Determine the Q sample behavior data based on the behavior data of the P sample objects for the W sample products; Based on the attribute information of the P sample objects, the W sample products The target training sample set is obtained from the attribute information and the Q sample behavior data.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for implementing the functions specified in one process or processes of the flowchart and/or one block or blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。Memory may include non-volatile memory in computer-readable media, random access memory (RAM), and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory. (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, tape disk storage or other magnetic storage devices or any other non-transmission medium can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements not only includes those elements, but also includes Other elements are not expressly listed or are inherent to the process, method, article or equipment. Without further limitation, an element qualified by the statement "comprises a..." does not exclude the presence of additional identical elements in the process, method, good, or device that includes the element.

本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are only examples of the present application and are not used to limit the present application. To those skilled in the art, various modifications and variations may be made to this application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application shall be included in the scope of the claims of this application.

Claims (10)

1. A method of recommending a product, comprising:
obtaining N target products, wherein the N target products are products to be recommended to a target object, and N is a positive integer greater than 1;
acquiring a data information set based on the N target products, wherein the data information set at least comprises: t pieces of historical behavior data, attribute information of each target product and attribute information of the target object, wherein the T pieces of historical behavior data at least comprise historical behavior data of M objects on the N target products, the M pieces of historical behavior data at least comprise the target objects, and T and M are positive integers larger than 1;
Determining S prediction models, wherein the prediction models are used for predicting and recommending the recommendation sequence of the N target products, and the S prediction models at least comprise: the system comprises a first prediction model, a second prediction model and a third prediction model, wherein the first prediction model at least comprises a decision tree model, the second prediction model at least comprises a factorizer model, the third prediction model at least comprises a model formed by combining a multi-layer perceptron model and the factorizer model, and S is a positive integer greater than 1;
and determining a target recommendation sequence for recommending the N target products according to the data information set and the S prediction models, and recommending the N target products to the target object according to the target recommendation sequence.
2. The method of claim 1, wherein the T historical behavior data comprises at least: the method comprises the steps of determining a target recommendation sequence of recommending N target products according to a data information set and S prediction models, wherein the data information set comprises first historical behavior data, second historical behavior data and third historical behavior data, the first historical behavior data is the historical behavior data of the target objects on the target products, the second historical behavior data is the historical behavior data of each of the M objects on the target products, the third historical behavior data is the historical behavior data of each of the M objects on the target products, and the target recommendation sequence of recommending the N target products comprises:
Inputting the second historical behavior data and the third historical behavior data into the first prediction model to predict and recommend the recommendation sequence of the N target products, and outputting a first recommendation sequence;
inputting the first recommendation sequence, the second historical behavior data, the third historical behavior data, the attribute information of each target product and the attribute information of the target object into the second prediction model to predict and recommend the recommendation sequence of the N target products, and outputting a second recommendation sequence;
inputting the first recommendation sequence, the first historical behavior data, the second historical behavior data, the third historical behavior data, the attribute information of each target product and the attribute information of the target object into the third prediction model to predict and recommend the recommendation sequence of the N target products, and outputting a third recommendation sequence;
and determining the target recommendation order of recommending the N target products based on the second recommendation order and the third recommendation order.
3. The method of claim 2, wherein determining the target recommendation order to recommend the N target products based on the second recommendation order and the third recommendation order comprises:
Determining a score value corresponding to each target product based on the second recommendation sequence to obtain N first score values;
determining a score value corresponding to each target product based on the third recommendation sequence to obtain N second score values;
respectively determining the weight corresponding to the second prediction model and the weight corresponding to the third prediction model;
and determining the target recommendation sequence for recommending the N target products based on the N first score values, the N second score values, the weights corresponding to the second prediction model and the weights corresponding to the third prediction model.
4. The method of claim 1, wherein the S predictive models are obtained by:
obtaining a target training sample set, wherein the target training sample set at least comprises Q sample behavior data, attribute information of W sample products and attribute information of P sample objects obtained in a history process, the Q sample behavior data at least comprises behavior data of the P sample objects on the W sample products, and Q, W and P are positive integers larger than 1;
learning and training each original prediction model in S original prediction models by using the target training sample set to obtain the S prediction models, wherein the S original prediction models at least comprise: the first, second and third original prediction models.
5. The method of claim 4, wherein learning each of the S original predictive models using the set of target training samples comprises:
classifying the Q sample behavior data in the target training sample set to obtain first sample behavior data, second sample behavior data and third sample behavior data, wherein the first sample behavior data is behavior data of the sample objects on the sample products, the second sample behavior data is behavior data of each sample object of the P sample objects on the sample products, and the third sample behavior data is behavior data of each sample object of the P sample objects on each sample product;
learning and training the first original prediction model in the S original prediction models by using the second sample behavior data and the third sample behavior data to obtain the first prediction model;
obtaining a prediction result output by the first prediction model, and learning and training the second original prediction model in the S original prediction models by using the prediction result, the second sample behavior data, the third sample behavior data, the attribute information of the W sample products and the attribute information of the P sample objects to obtain the second prediction model;
Learning and training the third initial prediction model in the S initial prediction models by using the prediction result, the first sample behavior data, the second sample behavior data, the third sample behavior data, the attribute information of the W sample products and the attribute information of the P sample objects to obtain a third prediction model;
and obtaining the S prediction models based on the first prediction model, the second prediction model and the third prediction model.
6. The method of claim 5, wherein obtaining the prediction result output by the first prediction model comprises:
acquiring the second sample behavior data and the third sample behavior data;
inputting the second sample behavior data and the third sample behavior data into the first prediction model to predict and recommend the recommendation sequence of the W sample products, and outputting the predicted recommendation sequence of the W sample products;
and taking the predicted recommendation sequence of recommending the W sample products as the prediction result.
7. The method of claim 4, wherein obtaining a set of target training samples comprises:
Acquiring the portrait information of each sample object in the P sample objects, and determining the attribute information of the P sample objects based on the portrait information of each sample object, wherein the attribute information of the P sample objects at least comprises: ID information of each sample object and sex information of each sample object;
acquiring attribute information of the W sample products, wherein the attribute information of the W sample products at least comprises: ID information of each sample product and category information of each sample product;
acquiring behavior data of the P sample objects on the W sample products;
determining the Q sample behavior data according to the behavior data of the P sample objects on the W sample products;
and acquiring the target training sample set based on the attribute information of the P sample objects, the attribute information of the W sample products and the Q sample behavior data.
8. A recommendation device for a product, comprising:
the first acquisition unit is used for acquiring N target products, wherein the N target products are products to be recommended to a target object, and N is a positive integer greater than 1;
the second obtaining unit is configured to obtain a data information set based on the N target products, where the data information set at least includes: t pieces of historical behavior data, attribute information of each target product and attribute information of the target object, wherein the T pieces of historical behavior data at least comprise historical behavior data of M objects on the N target products, the M pieces of historical behavior data at least comprise the target objects, and T and M are positive integers larger than 1;
The first determining unit is configured to determine S prediction models, where the prediction models are used to predict and recommend a recommendation order of the N target products, and the S prediction models at least include: the system comprises a first prediction model, a second prediction model and a third prediction model, wherein the first prediction model at least comprises a decision tree model, the second prediction model at least comprises a factorizer model, the third prediction model at least comprises a model formed by combining a multi-layer perceptron model and the factorizer model, and S is a positive integer greater than 1;
the first processing unit is used for determining a target recommendation sequence for recommending the N target products according to the data information set and the S prediction models, and recommending the N target products to the target object according to the target recommendation sequence.
9. A computer-readable storage medium, characterized in that the storage medium stores a program, wherein the program performs the recommendation method of the product according to any one of claims 1 to 7.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of recommending an article of manufacture of any of claims 1-7.
CN202311737427.5A 2023-12-15 2023-12-15 Product recommendation method and device, storage medium and electronic equipment Pending CN117726403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311737427.5A CN117726403A (en) 2023-12-15 2023-12-15 Product recommendation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311737427.5A CN117726403A (en) 2023-12-15 2023-12-15 Product recommendation method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117726403A true CN117726403A (en) 2024-03-19

Family

ID=90208383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311737427.5A Pending CN117726403A (en) 2023-12-15 2023-12-15 Product recommendation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117726403A (en)

Similar Documents

Publication Publication Date Title
CN108829808B (en) Page personalized sorting method and device and electronic equipment
WO2019223379A1 (en) Product recommendation method and device
CN111815415A (en) A product recommendation method, system and device
US11682093B2 (en) Document term recognition and analytics
CN112966189B (en) Fund product recommendation system
CN111967892A (en) Information recommendation method and device
CN114417174B (en) Content recommendation method, device, equipment and computer storage medium
WO2022111095A1 (en) Product recommendation method and apparatus, computer storage medium, and system
CN111026973B (en) Commodity interest degree prediction method and device and electronic equipment
CN110766513B (en) Information ordering method, device, electronic equipment and readable storage medium
CN109801077A (en) A kind of arbitrage user detection method, device and equipment
CN109933678B (en) Artwork recommendation method and device, readable medium and electronic equipment
CN114780753A (en) Dialogue recommendation method, device and equipment based on knowledge graph and storage medium
CN116257798A (en) Click rate prediction model training and click rate prediction method, system and equipment
Reddy et al. A Fusion Model for Personalized Adaptive Multi-Product Recommendation System Using Transfer Learning and Bi-GRU.
CN118446744A (en) Equity data conversion method and system based on artificial intelligence
CN113297462A (en) Data processing method, device, equipment and storage medium
CN111369315A (en) Resource object recommendation method and device, and data prediction model training method and device
CN114943543B (en) Model training method, abnormal commodity identification method, electronic device and storage medium
CN117726403A (en) Product recommendation method and device, storage medium and electronic equipment
US20140324524A1 (en) Evolving a capped customer linkage model using genetic models
CN113961665B (en) Network object processing method, device, electronic device and readable storage medium
CN116956204A (en) Network structure determining method, data predicting method and device of multi-task model
CN114692970A (en) User intention prediction model training method, user intention prediction method and device
CN111798265A (en) A precision marketing method and device suitable for enterprise users

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
CB02 Change of applicant information

Country or region after: China

Address after: 100037 No. 31, Fuchengmenwai Street, Xicheng District, Beijing 4th Floor, Room 429D

Applicant after: Tianyi Payment Technology Co.,Ltd.

Address before: 429D, 4th Floor, No. 31 Fuchengmenwai Street, Xicheng District, Beijing

Applicant before: TIANYI ELECTRONIC COMMERCE Co.,Ltd.

Country or region before: China

CB02 Change of applicant information