CN113312552B - Data processing method, device, electronic device and medium - Google Patents

Data processing method, device, electronic device and medium Download PDF

Info

Publication number
CN113312552B
CN113312552B CN202110647282.4A CN202110647282A CN113312552B CN 113312552 B CN113312552 B CN 113312552B CN 202110647282 A CN202110647282 A CN 202110647282A CN 113312552 B CN113312552 B CN 113312552B
Authority
CN
China
Prior art keywords
user
recall
nodes
decision tree
users
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.)
Active
Application number
CN202110647282.4A
Other languages
Chinese (zh)
Other versions
CN113312552A (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110647282.4A priority Critical patent/CN113312552B/en
Publication of CN113312552A publication Critical patent/CN113312552A/en
Application granted granted Critical
Publication of CN113312552B publication Critical patent/CN113312552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/243Classification techniques relating to the number of classes
    • G06F18/24323Tree-organised classifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides a data processing method, a data processing device, electronic equipment and a medium, relates to the field of artificial intelligence, and particularly relates to the technical field of deep learning and intelligent recommendation. The implementation scheme is as follows: acquiring sample user data; performing supervised training on sample user data based on a classification algorithm and generating a decision tree; and generating recall rules related to the user attributes based on one or more nodes in the decision tree.

Description

数据处理方法、装置、电子设备和介质Data processing method, device, electronic device and medium

技术领域Technical Field

本公开涉及人工智能领域,尤其涉及深度学习、智能推荐技术领域,具体涉及一种数据处理方法、装置、电子设备、计算机可读存储介质和计算机程序产品。The present disclosure relates to the field of artificial intelligence, in particular to the field of deep learning and intelligent recommendation technology, and specifically to a data processing method, device, electronic device, computer-readable storage medium and computer program product.

背景技术Background Art

人工智能是研究使计算机来模拟人的某些思维过程和智能行为(如学习、推理、思考、规划等)的学科,既有硬件层面的技术也有软件层面的技术。人工智能硬件技术一般包括如传感器、专用人工智能芯片、云计算、分布式存储、大数据处理等技术:人工智能软件技术主要包括计算机视觉技术、语音识别技术、自然语言处理技术以及机器学习/深度学习、大数据处理技术、知识图谱技术等几大方向。Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing. Artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning/deep learning, big data processing technology, knowledge graph technology, and other major directions.

通过数据处理确定目标用户有利于向用户进行个性化推荐。例如,如果通过数据处理确定用户是目标用户,则可以向用户推荐与该目标相关的内容或服务。Determining the target user through data processing is conducive to making personalized recommendations to the user. For example, if the user is determined to be a target user through data processing, content or services related to the target can be recommended to the user.

在此部分中描述的方法不一定是之前已经设想到或采用的方法。除非另有指明,否则不应假定此部分中描述的任何方法仅因其包括在此部分中就被认为是现有技术。类似地,除非另有指明,否则此部分中提及的问题不应认为在任何现有技术中已被公认。The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art.

发明内容Summary of the invention

本公开提供了一种数据处理方法、装置、电子设备、计算机可读存储介质和计算机程序产品。The present disclosure provides a data processing method, apparatus, electronic device, computer-readable storage medium, and computer program product.

根据本公开的一个方面,提供了一种数据处理方法,包括:获取样本用户数据;基于二分类算法对所述样本用户数据进行有监督训练并生成决策树;以及基于所述决策树中的一个或多个节点,生成与用户属性相关的召回规则。According to one aspect of the present disclosure, a data processing method is provided, including: acquiring sample user data; performing supervised training on the sample user data based on a binary classification algorithm and generating a decision tree; and generating recall rules related to user attributes based on one or more nodes in the decision tree.

根据本公开的一个方面,提供了一种数据处理装置,包括:获取模块,被配置为获取样本用户数据;训练模块,被配置为基于二分类算法对所述样本用户数据进行有监督训练并生成决策树;以及召回规则生成模块,被配置为基于所述决策树中的一个或多个节点,生成与用户属性相关的召回规则。According to one aspect of the present disclosure, a data processing device is provided, including: an acquisition module, configured to acquire sample user data; a training module, configured to perform supervised training on the sample user data based on a binary classification algorithm and generate a decision tree; and a recall rule generation module, configured to generate recall rules related to user attributes based on one or more nodes in the decision tree.

根据本公开的一个方面,提供了一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时使得所述至少一个处理器能够执行数据处理方法。According to one aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to perform a data processing method.

根据本公开的一个方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行数据处理方法。According to one aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute a data processing method.

根据本公开的一个方面,提供了一种计算机程序产品,包括计算机程序,其中,计算机程序在被处理器执行时实现数据处理方法。According to one aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements a data processing method when executed by a processor.

根据本公开的一个或多个实施例,通过有监督训练来确定目标用户,扩大对目标用户的挖掘范围以及挖掘的准确率。应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。According to one or more embodiments of the present disclosure, the target user is determined by supervised training, and the mining scope and mining accuracy of the target user are expanded. It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easy to understand through the following description.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

附图示例性地示出了实施例并且构成说明书的一部分,与说明书的文字描述一起用于讲解实施例的示例性实施方式。所示出的实施例仅出于例示的目的,并不限制权利要求的范围。在所有附图中,相同的附图标记指代类似但不一定相同的要素。The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

图1示出了根据本公开示例性实施例的数据处理方法的流程图;FIG1 shows a flow chart of a data processing method according to an exemplary embodiment of the present disclosure;

图2示出了根据本公开示例性实施例的生成召回规则的示意图;FIG2 shows a schematic diagram of generating a recall rule according to an exemplary embodiment of the present disclosure;

图3示出了根据本公开示例性实施例的排序模型工作流程的示意图;FIG3 is a schematic diagram showing a workflow of a sorting model according to an exemplary embodiment of the present disclosure;

图4示出了根据本公开示例性实施例的基于决策树生成召回规则的示意图;FIG4 shows a schematic diagram of generating a recall rule based on a decision tree according to an exemplary embodiment of the present disclosure;

图5示出了根据本公开示例性实施例的数据处理装置的结构框图;以及FIG5 shows a structural block diagram of a data processing device according to an exemplary embodiment of the present disclosure; and

图6示出了能够用于实现本公开的实施例的示例性电子设备的结构框图。FIG. 6 shows a block diagram of an exemplary electronic device that can be used to implement an embodiment of the present disclosure.

具体实施方式DETAILED DESCRIPTION

以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

在本公开中,除非另有说明,否则使用术语“第一”、“第二”等来描述各种要素不意图限定这些要素的位置关系、时序关系或重要性关系,这种术语只是用于将一个元件与另一元件区分开。在一些示例中,第一要素和第二要素可以指向该要素的同一实例,而在某些情况下,基于上下文的描述,它们也可以指代不同实例。In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

在本公开中对各种所述示例的描述中所使用的术语只是为了描述特定示例的目的,而并非旨在进行限制。除非上下文另外明确地表明,如果不特意限定要素的数量,则该要素可以是一个也可以是多个。此外,本公开中所使用的术语“和/或”涵盖所列出的项目中的任何一个以及全部可能的组合方式。The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and/or" used in this disclosure covers any one of the listed items and all possible combinations.

相关技术中,通常是根据业务规则来进行目标用户的挖掘和确定,规则可以例如是年龄、性别、地域、学历或收入等。这种业务规则的制订需要累计大量的业务领域经验,并对相关领域知识进行充分的分析。这一方式对相关领域的经验要求较高,实现起来比较困难,且经分析穷举得到的规则依旧存在不够完善、覆盖范围较为局限的可能,准确率也较低。In related technologies, target users are usually mined and determined based on business rules, which may be, for example, age, gender, region, education or income. The formulation of such business rules requires the accumulation of a large amount of business field experience and a thorough analysis of relevant field knowledge. This method requires high experience in relevant fields and is difficult to implement. In addition, the rules obtained through exhaustive analysis may still be imperfect, have a limited coverage, and have a low accuracy rate.

为解决上述问题中的一个或多个,本公开通过基于二分类算法的有监督训练生成用于召回用户的召回规则,有效扩充了召回规则并实现了对更大范围内的用户的召回。To solve one or more of the above problems, the present disclosure generates recall rules for recalling users through supervised training based on a binary classification algorithm, which effectively expands the recall rules and realizes the recall of users in a wider range.

需要说明的是,在本公开的技术方案中,所涉及的用户个人信息(例如历史行为信息、地理位置信息)的获取、存储和应用等,均符合相关法律法规的规定,且不违背公序良俗。并且,用户个人信息在被获取、存储和应用的过程中均经过了脱敏处理(即匿名化处理)。It should be noted that in the technical solution of this disclosure, the acquisition, storage and application of user personal information (such as historical behavior information and geographic location information) involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good customs. In addition, user personal information has been desensitized (i.e., anonymized) during the acquisition, storage and application process.

以下将结合附图对本公开的数据处理方法进行进一步描述。The data processing method of the present disclosure will be further described below in conjunction with the accompanying drawings.

图1示出了根据本公开示例性实施例的数据处理方法的流程图。FIG. 1 shows a flow chart of a data processing method according to an exemplary embodiment of the present disclosure.

如图1所示,所述方法包括:步骤S101、获取样本用户数据;步骤S102、基于二分类算法对所述样本用户数据进行有监督训练并生成决策树;步骤S103、基于所述决策树中的一个或多个节点,生成与用户属性相关的召回规则。As shown in FIG1 , the method includes: step S101 , obtaining sample user data; step S102 , performing supervised training on the sample user data based on a binary classification algorithm and generating a decision tree; step S103 , generating recall rules related to user attributes based on one or more nodes in the decision tree.

根据一些实施例,所述二分类算法可以是包括但不限于逻辑回归(LogisticRegression,LG)、梯度提升决策树(Gradient Boosting Decision Tree,GBDT)和极限梯度提升(eXtreme Gradient Boosting,XGBoost)等二分类算法中的一种或几种或是其中几种算法的任意组合,本公开对所述二分类算法的类型不做限定。According to some embodiments, the binary classification algorithm may be one or more of binary classification algorithms including but not limited to logistic regression (LG), gradient boosting decision tree (GBDT) and eXtreme Gradient Boosting (XGBoost), or any combination of several of these algorithms. The present disclosure does not limit the type of the binary classification algorithm.

为了便于描述和理解,下面内容中将以二分类算法为XGBoost算法为例,来具体描述本公开的技术方案。需要说明的是,本公开的技术方案并不局限于仅基于XGBoost这一种二分类算法,对于其它的二分类算法同样适用。For ease of description and understanding, the following content will take the binary classification algorithm as the XGBoost algorithm as an example to specifically describe the technical solution of the present disclosure. It should be noted that the technical solution of the present disclosure is not limited to the binary classification algorithm based on XGBoost, but is also applicable to other binary classification algorithms.

根据一些实施例,样本用户可以根据目标用户的定义来确定。例如,目标用户可以是某类产品或服务的潜在用户。在这种情况下,样本用户可以是购买了该产品或服务的用户和未购买该产品或服务的用户,分别作为有监督训练的正样本和负样本。样本用户的用户属性对应的所有实例可以作为有监督训练中的特征输入,例如,用户属性可以是用户的检索词,相应的,对样本用户检索历史做分词处理得到的词语集合可以作为有监督训练中的特征输入;可以理解的是,有监督训练最终生成的决策树中的节点可以是上述词语集合中的全部或部分词语。According to some embodiments, the sample users can be determined based on the definition of the target users. For example, the target users can be potential users of a certain type of product or service. In this case, the sample users can be users who have purchased the product or service and users who have not purchased the product or service, serving as positive samples and negative samples for supervised training, respectively. All instances corresponding to the user attributes of the sample users can be used as feature inputs in supervised training. For example, the user attributes can be the user's search terms. Accordingly, the word set obtained by performing word segmentation processing on the sample user's search history can be used as feature input in supervised training. It can be understood that the nodes in the decision tree finally generated by the supervised training can be all or part of the words in the above word set.

根据一些实施例,步骤S103还包括:对所述决策树中的一个或多个节点进行加权计算,以生成与用户属性相关的所述召回规则。这一过程相当于在决策树的所有节点中,根据预设的计算规则,筛选出与目标用户的目标行为(例如,购买某产品或服务的行为)较为相关的特征,并将筛选出的特征作为召回规则,以提高对目标用户挖掘的准确率。对于节点的加权计算的具体方式,将在后续的实施例中给出详细的描述。According to some embodiments, step S103 further includes: performing weighted calculation on one or more nodes in the decision tree to generate the recall rule related to the user attribute. This process is equivalent to screening out features that are more relevant to the target behavior of the target user (for example, the behavior of purchasing a product or service) in all nodes of the decision tree according to preset calculation rules, and using the screened features as recall rules to improve the accuracy of mining the target user. The specific method of weighted calculation of the nodes will be described in detail in subsequent embodiments.

根据一些实施例,对所述决策树中的一个或多个节点进行加权计算,以生成与用户属性相关的所述召回规则,包括:基于所述决策树中的一个或多个节点的相应的特征值生成特征值列表,其中,特征值为相应的节点用于分裂的次数与该节点分裂时的增益的乘积,所述特征值列表包含所述决策树中的所述一个或多个节点及其对应的特征值;以及对所述特征值列表进行排序并生成与所述用户属性有关的所述召回规则。According to some embodiments, weighted calculation is performed on one or more nodes in the decision tree to generate the recall rule related to the user attributes, including: generating a feature value list based on the corresponding feature values of one or more nodes in the decision tree, wherein the feature value is the product of the number of times the corresponding node is used for splitting and the gain of the node when split, and the feature value list contains the one or more nodes in the decision tree and their corresponding feature values; and sorting the feature value list and generating the recall rule related to the user attributes.

可以理解的是,节点的特征值等于该节点用于分裂的次数乘以分裂时的增益,特征值越大表示该特征与目标用户的目标行为的相关度越高,因此,特征值计算提供了一种筛选特征的方式。对决策树中所有的节点生成特征值列表,并根据上述公式得到的计算结果对所有节点的特征值进行排序,以筛选出高特征值的特征作为召回用户的召回规则。It can be understood that the feature value of a node is equal to the number of times the node is used for splitting multiplied by the gain during splitting. The larger the feature value, the higher the correlation between the feature and the target behavior of the target user. Therefore, feature value calculation provides a way to filter features. Generate a feature value list for all nodes in the decision tree, and sort the feature values of all nodes according to the calculation results obtained by the above formula to filter out features with high feature values as the recall rules for recalling users.

根据一些实施例,所述数据处理方法还包括:在由上述步骤生成召回规则之后,可以根据所述召回规则在数据源中匹配用户,其中,经匹配得到的用户为可召回用户。According to some embodiments, the data processing method further includes: after the recall rules are generated by the above steps, users can be matched in the data source according to the recall rules, wherein the users obtained by matching are recallable users.

根据一些实施例,所述用户属性可以对应于来自用户的检索词,相应的,所述数据源可以为全量用户的搜索日志。可以理解的是,用户的检索词在一定程度上可以反映用户的意愿,例如当某用户搜索了某一产品时,可以推测该用户可能具有购买该产品的意愿。因此,根据检索词所召回的用户准确率较高。According to some embodiments, the user attribute may correspond to a search term from the user, and accordingly, the data source may be a search log of all users. It is understandable that the user's search term may reflect the user's intention to a certain extent. For example, when a user searches for a product, it can be inferred that the user may have the intention to purchase the product. Therefore, the accuracy of users recalled based on the search term is relatively high.

在一个示例中,所述方法可以包括:将购买了某一产品的用户和未购买这一产品的用户分别作为正、负样本,对样本用户的检索历史做分词处理并得到检索词的集合,对正、负样本和作为特征的检索词的集合进行XGBoost多轮训练并得到决策树;对该决策树中的所有节点做加权计算并排序以得到特征值列表,权重较高的节点所对应的检索词可以作为最终用于召回用户的召回规则;在全量用户的搜索日志中匹配上述在有监督训练中得到的检索词,在搜索日志中匹配到的结果所对应的用户即为可召回用户。在搜索日志中匹配检索词的过程中,可以根据需要设置数据源的时间范围,例如数据源可以是全量用户在一年之内的检索日志。In one example, the method may include: using users who have purchased a product and users who have not purchased the product as positive and negative samples, respectively, performing word segmentation on the search history of the sample users and obtaining a set of search terms, performing multiple rounds of XGBoost training on the positive and negative samples and the set of search terms as features and obtaining a decision tree; performing weighted calculations and sorting on all nodes in the decision tree to obtain a list of feature values, and the search terms corresponding to the nodes with higher weights can be used as the final recall rules for recalling users; matching the search terms obtained in the supervised training in the search logs of all users, and the users corresponding to the results matched in the search logs are the recallable users. In the process of matching the search terms in the search logs, the time range of the data source can be set as needed, for example, the data source can be the search logs of all users within one year.

需要说明的是,在本公开的实施例中,用户的搜索日志基于用户的授权和同意而被获取、存储以及使用。并且,搜索日志在被获取、存储以及使用的过程中均经过了脱敏处理(即匿名化处理)。It should be noted that in the embodiments of the present disclosure, the user's search log is obtained, stored and used based on the user's authorization and consent. In addition, the search log is desensitized (i.e., anonymized) during the process of being obtained, stored and used.

根据一些实施例,可以通过词向量算法对上述检索词进行扩词处理,以进一步扩充召回规则。According to some embodiments, the above search terms may be expanded using a word vector algorithm to further expand the recall rules.

根据另一些实施例,所述用户属性还可以对应于用户所安装的应用程序(APP),相应的,所述数据源为应用程序安装日志。与检索词类似的,用户所安装的APP也可以作为用户属性,用于确定目标用户,在检索词的基础上,进一步扩大了用户召回的范围。According to some other embodiments, the user attribute may also correspond to an application (APP) installed by the user, and accordingly, the data source is an application installation log. Similar to the search term, the APP installed by the user may also be used as a user attribute to determine the target user, further expanding the scope of user recall based on the search term.

图2示出了根据本公开示例性实施例的生成召回规则的示意图。由图2所示,利用用户所安装的APP来生成召回规则的过程与上述应用检索词的工作流程类似,此处不再赘述。进一步的,在得到高特征值的APP列表之后,可以对其中的每一个APP计算其正样本率,并针对正样本率进行排序,以进一步得到高意向APP簇作为召回规则。FIG2 shows a schematic diagram of generating recall rules according to an exemplary embodiment of the present disclosure. As shown in FIG2, the process of generating recall rules using the APPs installed by the user is similar to the workflow of the above-mentioned application search terms, and will not be repeated here. Furthermore, after obtaining a list of APPs with high feature values, the positive sample rate of each APP can be calculated, and the positive sample rate can be sorted to further obtain a high-intention APP cluster as a recall rule.

根据一些实施例,用户属性还可以对应于用户的贴吧访问历史、用户的地理位置信息等,以从不同的数据源中召回用户、扩大用户的召回范围。用户属性的具体实例与其对应的数据源同样可以根据目标用户的定义来确定,亦可以根据具体的应用场景来设置。可以理解的是,对于不同的用户属性,其用于生成召回规则的过程与上述应用检索词生成召回规则的过程是类似的,本公开在此不一一赘述。According to some embodiments, user attributes may also correspond to the user's post bar visit history, the user's geographic location information, etc., to recall users from different data sources and expand the user's recall scope. The specific instance of the user attribute and its corresponding data source can also be determined according to the definition of the target user, and can also be set according to the specific application scenario. It is understandable that for different user attributes, the process for generating recall rules is similar to the process of generating recall rules by applying search terms as described above, and the present disclosure will not go into details here.

需要说明的是,在本公开的实施例中,与用户的搜索日志类似的,用户的贴吧访问历史等历史行为信息以及地理位置信息均是基于用户的授权和同意而被获取、存储以及使用。并且,上述信息在被获取、存储以及使用的过程中均经过了脱敏处理(即匿名化处理)。It should be noted that in the embodiments of the present disclosure, similar to the user's search log, the user's post bar visit history and other historical behavior information and geographic location information are all acquired, stored and used based on the user's authorization and consent. In addition, the above information has been desensitized (i.e., anonymized) during the acquisition, storage and use process.

在一个示例中,所述方法得到的可召回用户可以是从上述各个数据源中采用不同召回规则所召回的用户的合集。In one example, the recallable users obtained by the method may be a collection of users recalled from the above-mentioned various data sources using different recall rules.

根据一些实施例,所述数据处理方法还包括:将所述可召回用户的用户特征输入预设的排序模型;以及根据所述排序模型的输出结果,确定所述可召回用户是否是目标用户。其中,预设的排序模型可以是基于二分类算法的有监督训练得到的模型。排序模型对可召回用户进行了进一步的筛选,提高了对目标用户挖掘的准确率。According to some embodiments, the data processing method further includes: inputting the user features of the recallable user into a preset sorting model; and determining whether the recallable user is a target user based on the output result of the sorting model. The preset sorting model can be a model obtained by supervised training based on a binary classification algorithm. The sorting model further screens the recallable users and improves the accuracy of mining the target users.

图3示出了根据本公开示例性实施例的排序模型工作流程的示意图。如图3所示,排序模型工作流程可分为两个部分:301、排序模型的训练;302、排序模型对用户做打分排序。在301中,购买了某一产品的用户和未购买这一产品的用户可分别作为正、负样本,将正、负样本、样本用户的特征(例如,用户画像、上网行为和衍生特征等)和该产品的产品特征作为输入进行基于二分类算法的有监督训练以得到所述排序模型。在302中,将上述可召回用户的用户特征输入排序模型,训练好的排序模型将对可召回用户做打分排序并输出分数排序,该分数表示其对应的可召回用户购买该产品的概率。FIG3 shows a schematic diagram of the workflow of the sorting model according to an exemplary embodiment of the present disclosure. As shown in FIG3 , the workflow of the sorting model can be divided into two parts: 301, training of the sorting model; 302, the sorting model scores and ranks users. In 301, users who have purchased a product and users who have not purchased the product can be used as positive and negative samples, respectively. The positive and negative samples, the features of the sample users (for example, user portraits, online behaviors and derived features, etc.) and the product features of the product are used as inputs for supervised training based on a binary classification algorithm to obtain the sorting model. In 302, the user features of the above-mentioned recallable users are input into the sorting model. The trained sorting model will score and rank the recallable users and output a score ranking, which represents the probability that the corresponding recallable user will purchase the product.

根据一些实施例,所述数据处理方法可以进一步包括:基于上述排序模型所输出的分数排序,设置推送规则并据此向相应的目标用户推送相关的产品或服务。例如,可以针对每个阈值分数查看其准确率和召回率,当其准确率和召回率满足预设标准时,对该阈值内的所有可召回用户进行相关产品或服务的推送。具体的推送规则及标准可根据具体的应用场景进行设置,本公开对此不作限定。According to some embodiments, the data processing method may further include: setting push rules based on the score ranking output by the above-mentioned ranking model and pushing relevant products or services to the corresponding target users accordingly. For example, the accuracy and recall rate of each threshold score can be checked, and when the accuracy and recall rate meet the preset standards, the relevant products or services are pushed to all recallable users within the threshold. Specific push rules and standards can be set according to specific application scenarios, and this disclosure does not limit this.

图4示出了根据本公开示例性实施例的基于决策树生成召回规则的示意图。需要指出,仅出于阐释本公开方案的目的,本实施例采用了推荐潜在保险用户的应用场景。本领域技术人员可以理解,本公开的方案并不限于本实施例的应用场景;相反,基于本公开的教导,其他的应用场景也是可以设想的。在本实施例中,目标用户是信贷高风险用户,用户属性为来自用户的检索词,通过对样本用户数据的XGBoost训练可以得到如图4所示的决策树,其中,树上的每一个节点均为来自用户的检索词。经过XGBoost的多轮训练,可以得到多个如图4所示的决策树,这里仅以图4为例,对基于决策树生成召回规则的过程做出描述。决策树中的每一个节点对应着一个来自用户的检索词,同时,决策树中的每一个节点对应着一个增益。根据本公开中介绍的特征值计算公式,即,某个检索词出现在所有决策树节点中的次数与该节点所对应的增益的乘积,可以计算得到决策树中每一个节点的特征值。特征值越大表示该节点所对应的检索词与信贷高风险用户的行为的相关度越高,高特征值节点所对应的检索词即为召回规则。用这样的方式生成召回规则并对用户进行召回具有召回范围广、准确率高的优点。FIG4 shows a schematic diagram of generating a recall rule based on a decision tree according to an exemplary embodiment of the present disclosure. It should be noted that, for the purpose of explaining the scheme of the present disclosure only, the present embodiment adopts an application scenario of recommending potential insurance users. It can be understood by those skilled in the art that the scheme of the present disclosure is not limited to the application scenario of the present embodiment; on the contrary, based on the teaching of the present disclosure, other application scenarios are also conceivable. In the present embodiment, the target user is a high-risk credit user, and the user attribute is a search term from the user. By training the sample user data with XGBoost, a decision tree as shown in FIG4 can be obtained, wherein each node on the tree is a search term from the user. After multiple rounds of XGBoost training, multiple decision trees as shown in FIG4 can be obtained. Here, FIG4 is taken as an example to describe the process of generating a recall rule based on a decision tree. Each node in the decision tree corresponds to a search term from the user, and at the same time, each node in the decision tree corresponds to a gain. According to the characteristic value calculation formula introduced in the present disclosure, that is, the product of the number of times a certain search term appears in all decision tree nodes and the gain corresponding to the node, the characteristic value of each node in the decision tree can be calculated. The larger the eigenvalue, the higher the correlation between the search term corresponding to the node and the behavior of the high-risk credit user. The search term corresponding to the high-eigenvalue node is the recall rule. Generating recall rules and recalling users in this way has the advantages of wide recall range and high accuracy.

根据本公开的另一方面,提供了一种数据处理装置,用于执行上述任一方法。如图5所示,所述数据处理装置500包括:获取模块501,被配置为获取样本用户数据;训练模块502,被配置为基于二分类算法对所述样本用户数据进行有监督训练并生成决策树;召回规则生成模块503,被配置为基于所述决策树中的一个或多个节点,生成与用户属性相关的召回规则。According to another aspect of the present disclosure, a data processing device is provided for executing any of the above methods. As shown in FIG5 , the data processing device 500 includes: an acquisition module 501 configured to acquire sample user data; a training module 502 configured to perform supervised training on the sample user data based on a binary classification algorithm and generate a decision tree; and a recall rule generation module 503 configured to generate a recall rule related to user attributes based on one or more nodes in the decision tree.

数据处理装置500的单元501-503的操作与前述描述的步骤S101-步骤S103的操作类似,在此不作赘述。The operations of the units 501 - 503 of the data processing device 500 are similar to the operations of the aforementioned steps S101 - S103 , and are not described in detail herein.

根据一些实施例,所述召回规则生成模块503被进一步配置为:对所述决策树中的一个或多个节点进行加权计算,以生成与用户属性相关的所述召回规则。这一过程相当于通过计算单元筛选出与目标用户的目标行为(例如,购买某产品或服务的行为)较为相关的特征,对于节点的加权计算的具体方式,将在后续的实施例中给出详细的描述。According to some embodiments, the recall rule generation module 503 is further configured to: perform weighted calculation on one or more nodes in the decision tree to generate the recall rule related to the user attribute. This process is equivalent to screening out features that are more relevant to the target behavior of the target user (for example, the behavior of purchasing a product or service) through a calculation unit. The specific method of weighted calculation of the nodes will be described in detail in subsequent embodiments.

根据一些实施例,所述召回规则生成模块503包括:列表生成单元,被配置为基于所述决策树中的一个或多个节点的相应的特征值生成特征值列表,其中特征值为相应的节点用于分裂的次数与该节点分裂时的增益的乘积,所述特征值列表包含所述决策树中的所述一个或多个节点及其对应的特征值;以及排序单元,对所述特征值列表进行排序并生成与所述用户属性有关的所述召回规则。According to some embodiments, the recall rule generation module 503 includes: a list generation unit, configured to generate a feature value list based on the corresponding feature values of one or more nodes in the decision tree, wherein the feature value is the product of the number of times the corresponding node is used for splitting and the gain of the node when splitting, and the feature value list contains the one or more nodes in the decision tree and their corresponding feature values; and a sorting unit, which sorts the feature value list and generates the recall rule related to the user attributes.

可以理解的是,节点的特征值等于该节点用于分裂的次数乘以分裂时的增益,特征值越大表示该特征与目标用户的目标行为相关度越高。列表生成单元基于决策树中所有的节点生成特征值列表,以及排序单元根据上述公式得到的计算结果对所有节点的特征值进行排序,以筛选出权重较大的特征作为召回用户的召回规则。It can be understood that the feature value of a node is equal to the number of times the node is used for splitting multiplied by the gain during splitting, and the larger the feature value, the higher the relevance of the feature to the target behavior of the target user. The list generation unit generates a feature value list based on all nodes in the decision tree, and the sorting unit sorts the feature values of all nodes according to the calculation results obtained by the above formula to screen out features with larger weights as recall rules for recalling users.

根据一些实施例,所数据处理装置还包括:匹配模块,被配置为,根据所述召回规则在数据源中匹配用户,其中,经匹配得到的用户为可召回用户。According to some embodiments, the data processing device further includes: a matching module configured to match users in the data source according to the recall rule, wherein the users obtained by matching are recallable users.

根据一些实施例,所述用户属性可以对应于来自用户的检索词,相应的,所述数据源可以为全量用户的搜索日志。可以理解的,用户的检索词在一定程度上可以反映用户的意愿,例如当某用户搜索了某一产品时,可以推测该用户可能具有购买该产品的意愿。According to some embodiments, the user attribute may correspond to a search term from the user, and accordingly, the data source may be a search log of all users. It is understandable that the user's search term may reflect the user's intention to a certain extent. For example, when a user searches for a product, it can be inferred that the user may have the intention to purchase the product.

根据一些实施例,可以通过词向量算法对上述检索词进行扩词处理,以进一步扩充召回规则。According to some embodiments, the above search terms may be expanded using a word vector algorithm to further expand the recall rules.

根据另一些实施例,所述用户属性还可以对应于用户所安装的应用程序(APP),相应的,所述数据源为应用程序安装日志。与检索词类似的,用户所安装的APP也可以作为用户属性,用于确定目标用户。According to some other embodiments, the user attribute may also correspond to an application (APP) installed by the user, and accordingly, the data source is an application installation log. Similar to the search term, the APP installed by the user may also be used as a user attribute to determine the target user.

需要说明的是,在本公开的实施例中,用户的历史行为信息等均是基于用户的授权和同意而被获取、存储以及使用。并且,上述信息在被获取、存储以及使用的过程中均经过了脱敏处理(即匿名化处理)。It should be noted that in the embodiments of the present disclosure, the user's historical behavior information is acquired, stored, and used based on the user's authorization and consent. In addition, the above information is desensitized (i.e., anonymized) during the acquisition, storage, and use process.

在一个示例中,所述匹配模块得到的可召回用户可以是从不同数据源中应用不同召回规则所召回的用户的合集。In one example, the recallable users obtained by the matching module may be a collection of users recalled from different data sources by applying different recall rules.

根据一些实施例,所述数据处理装置还包括:输入模块:被配置为将所述可召回用户的用户特征输入预设的排序模型;以及确定模块,被配置为根据所述排序模型的输出结果,确定所述可召回用户是否是目标用户。其中,预设的排序模型可以是基于二分类算法的有监督训练得到的模型。According to some embodiments, the data processing device further includes: an input module configured to input the user features of the recallable user into a preset ranking model; and a determination module configured to determine whether the recallable user is a target user based on an output result of the ranking model. The preset ranking model may be a model obtained through supervised training based on a binary classification algorithm.

根据一些实施例,所述数据处理装置可以进一步包括:推送模块,被配置为基于上述排序模型的所输出的分数排序,设置推送规则并据此向相应的目标用户推送相关的产品或服务。例如,可以针对每个阈值分数查看其准确率和召回率,当其准确率和召回率满足预设标准时,对该阈值内的所有可召回用户进行相关产品或服务的推送。具体的推送规则及标准可根据具体的应用场景进行设置,本公开对此不作限定。According to some embodiments, the data processing device may further include: a push module, configured to set push rules based on the output score ranking of the above-mentioned ranking model and push relevant products or services to the corresponding target users accordingly. For example, the accuracy and recall rate of each threshold score can be checked, and when the accuracy and recall rate meet the preset standards, the relevant products or services are pushed to all recallable users within the threshold. Specific push rules and standards can be set according to specific application scenarios, and this disclosure does not limit this.

根据本公开的另一方面,还提供一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的数据处理方法。According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned data processing method.

根据本公开的另一方面,还提供一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行上述的数据处理方法。According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is also provided, wherein the computer instructions are used to enable the computer to execute the above-mentioned data processing method.

根据本公开的另一方面,还提供一种计算机程序产品,包括计算机程序,其中,所述计算机程序在被处理器执行时实现上述的数据处理方法。According to another aspect of the present disclosure, a computer program product is further provided, including a computer program, wherein the computer program implements the above data processing method when executed by a processor.

参考图6,现将描述可以作为本公开的服务器的电子设备600的结构框图,其是可以应用于本公开的各方面的硬件设备的示例。电子设备旨在表示各种形式的数字电子的计算机设备,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。With reference to Figure 6, a block diagram of an electronic device 600 that can be used as a server of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present disclosure described and/or required herein.

如图6所示,设备600包括计算单元601,其可以根据存储在只读存储器(ROM)602中的计算机程序或者从存储单元608加载到随机访问存储器(RAM)603中的计算机程序,来执行各种适当的动作和处理。在RAM 603中,还可存储设备600操作所需的各种程序和数据。计算单元601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in Figure 6, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to the bus 604.

设备600中的多个部件连接至I/O接口605,包括:输入单元606、输出单元607、存储单元608以及通信单元609。输入单元606可以是能向设备600输入信息的任何类型的设备,输入单元606可以接收输入的数字或字符信息,以及产生与电子设备的用户设置和/或功能控制有关的键信号输入,并且可以包括但不限于鼠标、键盘、触摸屏、轨迹板、轨迹球、操作杆、麦克风和/或遥控器。输出单元607可以是能呈现信息的任何类型的设备,并且可以包括但不限于显示器、扬声器、视频/音频输出终端、振动器和/或打印机。存储单元608可以包括但不限于磁盘、光盘。通信单元609允许设备600通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据,并且可以包括但不限于调制解调器、网卡、红外通信设备、无线通信收发机和/或芯片组,例如蓝牙TM设备、1302.11设备、WiFi设备、WiMax设备、蜂窝通信设备和/或类似物。Multiple components in the device 600 are connected to the I/O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 can be any type of device that can input information to the device 600. The input unit 606 can receive input digital or character information and generate key signal input related to user settings and/or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and/or a remote controller. The output unit 607 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video/audio output terminal, a vibrator, and/or a printer. The storage unit 608 can include but is not limited to a disk, an optical disk. The communication unit 609 allows the device 600 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and/or a chipset, such as a Bluetooth™ device, a 1302.11 device, a WiFi device, a WiMax device, a cellular communication device, and/or the like.

计算单元601可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元601的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元601执行上文所描述的各个方法和处理,例如数据处理方法。例如,在一些实施例中,数据处理方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元608。在一些实施例中,计算机程序的部分或者全部可以经由ROM 602和/或通信单元609而被载入和/或安装到设备600上。当计算机程序加载到RAM 603并由计算单元601执行时,可以执行上文描述的方法的一个或多个步骤。备选地,在其他实施例中,计算单元601可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行数据处理方法。The computing unit 601 may be a variety of general and/or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as data processing methods. For example, in some embodiments, the data processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed on the device 600 via ROM 602 and/or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the data processing method in any other appropriate manner (e.g., by means of firmware).

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

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

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

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

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

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

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

虽然已经参照附图描述了本公开的实施例或示例,但应理解,上述的方法、系统和设备仅仅是示例性的实施例或示例,本发明的范围并不由这些实施例或示例限制,而是仅由授权后的权利要求书及其等同范围来限定。实施例或示例中的各种要素可以被省略或者可由其等同要素替代。此外,可以通过不同于本公开中描述的次序来执行各步骤。进一步地,可以以各种方式组合实施例或示例中的各种要素。重要的是随着技术的演进,在此描述的很多要素可以由本公开之后出现的等同要素进行替换。Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims (13)

1. A data processing method, comprising:
acquiring sample user data;
performing supervised training on the sample user data based on a classification algorithm and generating a decision tree; and
Generating recall rules related to user attributes based on a plurality of nodes in the decision tree, comprising:
Weighting a plurality of nodes in the decision tree to generate the recall rule related to a user attribute, comprising:
Generating a characteristic value list based on corresponding characteristic values of a plurality of nodes in the decision tree, wherein the characteristic values are products of the times of splitting of the corresponding nodes and gains when the nodes split, and the characteristic value list comprises the plurality of nodes and the corresponding characteristic values of the nodes in the decision tree; and
Ranking the list of feature values and generating the recall rule related to the user attribute includes:
Sorting the characteristic value list to obtain a high characteristic value list through screening;
Calculating a positive sample rate corresponding to each node in the high eigenvalue list; and
Generating the recall rule related to the user attribute based on a positive sample rate corresponding to each node,
Wherein the user attributes correspond to terms from the user and/or the user attributes correspond to applications installed by the user.
2. The method of claim 1, further comprising:
and matching the users in the data source according to the recall rule, wherein the matched users are recall users.
3. The method of claim 2, wherein the data source is a search log of a full number of users when the user attribute corresponds to a term from a user.
4. The method of claim 2, wherein the data source is an application installation log when the user attribute corresponds to an application installed by a user.
5. The method of any of claims 2 to 4, further comprising:
inputting the user characteristics of the recallable user into a preset sequencing model; and
And determining whether the recallable user is a target user according to an output result of the sequencing model.
6. A data processing apparatus comprising:
An acquisition module configured to acquire sample user data;
a training module configured to supervise training the sample user data based on a classification algorithm and generate a decision tree; and
A recall rule generation module configured to generate recall rules related to user attributes based on a plurality of nodes in the decision tree, wherein the recall rule generation module is further configured to weight the plurality of nodes in the decision tree to generate the recall rules related to user attributes, wherein the recall rule generation module comprises:
A list generation unit configured to generate a feature value list based on respective feature values of a plurality of nodes in the decision tree, wherein a feature value is a product of the number of times a respective node is split and a gain at which the node is split, the feature value list containing the plurality of nodes in the decision tree and their corresponding feature values; and
A ranking unit configured to rank the feature value list and generate the recall rule related to the user attribute, wherein the ranking unit is further configured to:
Sorting the characteristic value list to obtain a high characteristic value list through screening;
Calculating a positive sample rate corresponding to each node in the high eigenvalue list; and
Generating the recall rule related to the user attribute based on a positive sample rate corresponding to each node,
Wherein the user attributes correspond to terms from the user and/or the user attributes correspond to applications installed by the user.
7. The apparatus of claim 6, further comprising,
And the matching module is configured to match users in the data source according to the recall rule, wherein the matched users are recall users.
8. The apparatus of claim 7, wherein the data source is a search log of a full number of users when the user attribute corresponds to a term from a user.
9. The apparatus of claim 7, wherein the data source is an application installation log when the user attribute corresponds to an application installed by a user.
10. The apparatus of any of claims 7 to 9, further comprising:
The input module is configured to input the user characteristics of the recallable user into a preset ordering model; and
And the determining module is configured to determine whether the recall user is a target user according to the output result of the sequencing model.
11. An electronic device, comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein the method comprises the steps of
The memory stores instructions executable by the at least one processor, which when executed by the at least one processor, enable the at least one processor to perform the method of any one of claims 1 to 5.
12. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1 to 5.
13. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the method of any one of claims 1 to 5.
CN202110647282.4A 2021-06-10 2021-06-10 Data processing method, device, electronic device and medium Active CN113312552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110647282.4A CN113312552B (en) 2021-06-10 2021-06-10 Data processing method, device, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110647282.4A CN113312552B (en) 2021-06-10 2021-06-10 Data processing method, device, electronic device and medium

Publications (2)

Publication Number Publication Date
CN113312552A CN113312552A (en) 2021-08-27
CN113312552B true CN113312552B (en) 2024-11-08

Family

ID=77378019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110647282.4A Active CN113312552B (en) 2021-06-10 2021-06-10 Data processing method, device, electronic device and medium

Country Status (1)

Country Link
CN (1) CN113312552B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112651790B (en) * 2021-01-19 2024-04-12 恩亿科(北京)数据科技有限公司 OCPX self-adaptive learning method and system based on user touch in quick-elimination industry
CN114021650A (en) * 2021-11-04 2022-02-08 北京百度网讯科技有限公司 Data processing method, device, electronic equipment and medium
CN116050543A (en) * 2023-02-09 2023-05-02 北京百度网讯科技有限公司 Data processing method, device, electronic device, medium and chip
CN116821495A (en) * 2023-06-28 2023-09-29 中国第一汽车股份有限公司 A Tieba management method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106846061A (en) * 2017-01-25 2017-06-13 百度在线网络技术(北京)有限公司 Potential user's method for digging and device
CN111860858A (en) * 2020-04-15 2020-10-30 北京嘀嘀无限科技发展有限公司 Method and device for determining model updating parameters and readable storage medium
CN112559900A (en) * 2021-02-26 2021-03-26 深圳索信达数据技术有限公司 Product recommendation method and device, computer equipment and storage medium
CN112785397A (en) * 2021-03-09 2021-05-11 中国工商银行股份有限公司 Product recommendation method, device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947498B (en) * 2017-12-20 2021-06-29 Oppo广东移动通信有限公司 Application preloading method, device, storage medium and mobile terminal
CN110992097B (en) * 2019-12-03 2024-02-13 上海钧正网络科技有限公司 Processing method and device for price of revenue product, computer equipment and storage medium
CN112035453B (en) * 2020-08-27 2024-03-12 平安科技(深圳)有限公司 Recommendation method, device and storage medium based on GBDT high-order feature combination
CN112036476A (en) * 2020-08-28 2020-12-04 上海冰鉴信息科技有限公司 Data feature selection method and device based on two-classification service and computer equipment
CN112149807B (en) * 2020-09-28 2024-06-28 北京百度网讯科技有限公司 Method and device for processing user characteristic information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106846061A (en) * 2017-01-25 2017-06-13 百度在线网络技术(北京)有限公司 Potential user's method for digging and device
CN111860858A (en) * 2020-04-15 2020-10-30 北京嘀嘀无限科技发展有限公司 Method and device for determining model updating parameters and readable storage medium
CN112559900A (en) * 2021-02-26 2021-03-26 深圳索信达数据技术有限公司 Product recommendation method and device, computer equipment and storage medium
CN112785397A (en) * 2021-03-09 2021-05-11 中国工商银行股份有限公司 Product recommendation method, device and storage medium

Also Published As

Publication number Publication date
CN113312552A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
KR102871692B1 (en) Object recommendation method and device, computer device and medium
CN113312552B (en) Data processing method, device, electronic device and medium
CN111639516B (en) Analysis platform based on machine learning
US12462151B2 (en) Generating new machine learning models based on combinations of historical feature-extraction rules and historical machine-learning models
CN117931991B (en) Training sample acquisition and large model optimization training method and device
US11741956B2 (en) Methods and apparatus for intent recognition
CN113761379B (en) Commodity recommendation method and device, electronic device and medium
CN113961765B (en) Search methods, devices, equipment and media based on neural network models
CN113392920B (en) Method, apparatus, device, medium, and program product for generating cheating prediction model
JP2025036308A (en) Human-machine interaction method, apparatus, electronic device and storage medium
CN110705255A (en) Method and device for detecting association relation between sentences
JP2022088540A (en) User interest image generation method, device, electronic device and storage medium
US20230316301A1 (en) System and method for proactive customer support
CN118520090A (en) Method, device and electronic device for determining training data set of large reward model
CN114492370B (en) Web page recognition method, device, electronic device and medium
JP2023135629A (en) Training meta-learning models based on causal transportability between datasets
CN120372310A (en) User sample data processing method and device, electronic equipment and medium
KR20230049486A (en) Political tendency analysis device and service providing method using the same
CN113377922A (en) Method, apparatus, electronic device, and medium for matching information
CN112905743A (en) Text object detection method and device, electronic equipment and storage medium
US20240152933A1 (en) Automatic mapping of a question or compliance controls associated with a compliance standard to compliance controls associated with another compliance standard
CN114066278B (en) Evaluation method, device, medium and program product for article recall
CN117370521A (en) Medical question and answer method, system, device, equipment and storage medium
CN116383340A (en) Information search method, device, electronic device and storage medium
CN112541705B (en) Method, device, equipment and storage medium for generating user behavior evaluation model

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
GR01 Patent grant
GR01 Patent grant