Feature evaluation method, device, electronic device and storage medium

By using a combination of basic sub-model and test sub-model in the feature evaluation model, and using the area under the curve gain to evaluate feature effectiveness, the problem of low feature verification efficiency in the business recommendation model is solved, and low-cost and efficient feature selection is achieved.

CN113902952BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010642000.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-06
Publication Date
2024-09-20
Estimated Expiration
2040-07-06

AI Technical Summary

Technical Problem

In the training of business recommendation models, verifying the effectiveness of features requires a large amount of computing resources and is time-consuming, resulting in low efficiency.

Method used

The feature evaluation model is trained based on the first sample data of the basic features currently applied to the recommendation system and the second sample data of the features to be evaluated, and the basic sub-model and the test sub-model are used to generate intermediate data as input to calculate the curve. The area gain below is used to evaluate the effectiveness of the features to be evaluated.

Benefits of technology

It achieves simple and rapid evaluation of features to be evaluated, reduces computing resource investment and time-consuming, and improves the efficiency and accuracy of feature selection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113902952B
    Figure CN113902952B
Patent Text Reader

Abstract

The disclosed embodiments relate to a feature evaluation method, device, electronic device and storage medium. The method comprises: obtaining target sample data; wherein the target sample data comprises first sample data including basic features and second sample data including features to be evaluated; basic features are features currently applied to the recommendation system, and features to be evaluated are features not currently applied to the recommendation system; training a feature evaluation model based on the target sample data, and during the model training process, using intermediate data generated based on the first sample data as intermediate input in the training process of the second sample data; and generating evaluation information of the features to be evaluated based on the output results of the feature evaluation model. The technical solution provided by the disclosed embodiments realizes a simple and rapid evaluation of the effectiveness of the features to be evaluated based on the basic features as a reference, thereby further realizing low-cost, high-efficiency and automated feature selection for the recommendation system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a feature evaluation method, device, electronic device, and storage medium. Background Art

[0002] In the field of business recommendation, business recommendation data is usually trained based on machine learning to generate a business recommendation model, and then the relevant business recommended to the user is determined based on the business recommendation model. However, when training the business recommendation model, in order to obtain better recommendation results, technicians not only need to select a suitable recommendation model and perform hyperparameter tuning, but also need to extract features from the business recommendation sample data. The selection of business recommendation features directly determines the accuracy of the prediction results of the business recommendation model. Therefore, the evaluation of the effectiveness of business recommendation features becomes crucial.

[0003] In the related art, in order to verify the effectiveness of a service recommendation feature, it is usually necessary to conduct multiple experiments and invest a large amount of computing resources, and verifying the effectiveness of the service recommendation feature takes a long time. Summary of the invention

[0004] The embodiments of the present disclosure provide a feature evaluation method, device, electronic device, and storage medium, which can simply and quickly accurately evaluate the effectiveness of the feature to be evaluated. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a feature evaluation method, comprising:

[0006] Obtain target sample data; wherein the target sample data includes first sample data including basic features and second sample data including features to be evaluated; the basic features are features currently applied to the recommendation system, and the features to be evaluated are features currently not applied to the recommendation system;

[0007] Training a feature evaluation model based on the target sample data, and during the model training process, using intermediate data generated based on the first sample data as intermediate input in the training process of the second sample data;

[0008] Based on the output result of the feature evaluation model, evaluation information of the feature to be evaluated is generated.

[0009] Optionally, the feature evaluation model includes a basic sub-model and a test sub-model;

[0010] The feature evaluation model is trained based on the target sample data, and in the model training process, the intermediate data generated based on the first sample data is used as the intermediate input in the training process of the second sample data, including:

[0011] Inputting the first sample data into a base sub-model in the feature evaluation model, and inputting the second sample data into a test sub-model in the feature evaluation model, so as to train the feature evaluation model;

[0012] During the model training process, the data output by any network layer of the basic sub-model is used as intermediate data generated based on the first sample data, and the intermediate data is input into any network layer of the test sub-model, so as to use the intermediate data as intermediate input in the training process of the second sample data.

[0013] Optionally, the step of generating evaluation information of the feature to be evaluated based on the output result of the feature evaluation model includes:

[0014] Respectively obtaining a first area under the curve output by the basic sub-model and a second area under the curve output by the test sub-model;

[0015] calculating an area gain of the area under the second curve relative to the area under the first curve;

[0016] Evaluation information of the feature to be evaluated is generated according to the area gain.

[0017] Optionally, the step of generating evaluation information of the feature to be evaluated according to the area gain includes:

[0018] When the area gain is within a preset interval, determining the feature to be evaluated as a valid feature;

[0019] When the area gain is outside a preset interval, the feature to be evaluated is determined as an invalid feature.

[0020] Optionally, before training the feature evaluation model based on the target sample data, the method further includes:

[0021] Obtain feature screening sample data;

[0022] Determine feature statistical information of the feature to be evaluated based on the feature screening sample data;

[0023] The features to be evaluated are screened according to the feature statistical information.

[0024] Optionally, the feature statistical information includes the total feature quantity, the average feature quantity and the feature coverage.

[0025] Optionally, the feature to be evaluated includes a single feature to be evaluated and / or a combination of features to be evaluated.

[0026] According to a second aspect of an embodiment of the present disclosure, there is provided a feature evaluation device, comprising:

[0027] An acquisition unit is configured to acquire target sample data; wherein the target sample data includes first sample data including basic features and second sample data including features to be evaluated; the basic features are features currently applied to the recommendation system, and the features to be evaluated are features currently not applied to the recommendation system;

[0028] A training unit is configured to perform training on a feature evaluation model based on the target sample data, and during the model training process, use the intermediate data generated based on the first sample data as an intermediate input in the training process of the second sample data;

[0029] A generating unit is configured to generate evaluation information of the feature to be evaluated based on an output result of the feature evaluation model.

[0030] Optionally, the feature evaluation model includes a basic sub-model and a test sub-model;

[0031] The training unit is configured to execute:

[0032] Inputting the first sample data into a base sub-model in the feature evaluation model, and inputting the second sample data into a test sub-model in the feature evaluation model, so as to train the feature evaluation model;

[0033] During the model training process, the data output by any network layer of the basic sub-model is used as intermediate data generated based on the first sample data, and the intermediate data is input into any network layer of the test sub-model, so as to use the intermediate data as intermediate input in the training process of the second sample data.

[0034] Optionally, the generating unit includes:

[0035] An area acquisition subunit, configured to respectively acquire a first area under a curve output by the base submodel and a second area under a curve output by the test submodel;

[0036] a gain calculation subunit, configured to calculate an area gain of the area under the second curve relative to the area under the first curve;

[0037] The information generating subunit is configured to generate evaluation information of the feature to be evaluated according to the area gain.

[0038] Optionally, the information generating subunit is configured to execute:

[0039] When the area gain is within a preset interval, determining the feature to be evaluated as a valid feature;

[0040] When the area gain is outside a preset interval, the feature to be evaluated is determined as an invalid feature.

[0041] Optionally, the feature evaluation device further includes:

[0042] A sample data acquisition unit is configured to acquire feature screening sample data before training the feature evaluation model based on the target sample data;

[0043] A statistical information determining unit, configured to determine the feature statistical information of the feature to be evaluated based on the feature screening sample data;

[0044] A screening unit is configured to screen the features to be evaluated according to the feature statistical information.

[0045] Optionally, the feature statistical information includes the total feature quantity, the average feature quantity and the feature coverage.

[0046] Optionally, the feature to be evaluated includes a single feature to be evaluated and / or a combination of features to be evaluated.

[0047] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0048] processor;

[0049] a memory for storing executable instructions for the processor;

[0050] The processor is configured to execute the instructions to implement the feature evaluation method described in the first aspect above.

[0051] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the feature evaluation method described in any embodiment of the present disclosure.

[0052] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided. When instructions in the computer program product are executed by a processor of an electronic device, the feature evaluation method described in any embodiment of the present disclosure is implemented.

[0053] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: by training a feature evaluation model based on first sample data including basic features currently applied to the recommendation system and second sample data including features to be evaluated that are not currently applied to the recommendation system, during the model training process, intermediate data generated based on the first sample data is used as intermediate input in the training process of the second sample data, and evaluation information of the features to be evaluated is generated according to the output results of the feature evaluation model, which not only solves the technical problems of large computing resource investment and long time consumption in feature validity verification in the prior art, but also realizes a simple and rapid evaluation of the validity of one or more features to be evaluated with the basic features as a reference, thereby further realizing low-cost, high-efficiency and automated feature selection for the recommendation system.

[0054] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0056] Figure 1 The figure is a flow chart of a feature evaluation method according to an exemplary embodiment.

[0057] Figure 2 is a flow chart of another feature evaluation method according to an exemplary embodiment.

[0058] Figure 3 It is a structural diagram of a business recommendation feature evaluation model according to an exemplary embodiment.

[0059] Figure 4 is a schematic structural diagram of a feature evaluation system according to an exemplary embodiment.

[0060] Figure 5 The figure is a block diagram of a feature evaluation device according to an exemplary embodiment.

[0061] Figure 6 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0062] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0063] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0064] The difficulty of automatic feature selection is that there are too many optional single business recommendation features and combined business recommendation features in the recommended business. If each business recommendation feature is tried once, the cost is unacceptable. How to quickly and batch evaluate the effectiveness of each business recommendation feature becomes crucial. In the related technology, in the solution based on Field-wise LR (Logistic Regression, LR, logistic regression model) to batch evaluate the effect of candidate features, first use the existing features to train the basic LR model, and then train a sub-LR model for each candidate feature. The sub-LR model plus the basic LR model is used as the output. The sub-LR model is trained, the weights of the existing features are fixed, and only the weights of the candidate features are updated.

[0065] However, the above technical solution has the following deficiencies: 1. It only supports the LR model, while the network model mostly used for business recommendation is the DNN (Deep Neural Network) model. Features that perform well in the LR model may not maintain their advantages in the DNN model, and features that perform poorly in the LR may have higher effectiveness in the DNN model. 2. The feature combination method only supports the cross combination method, and cannot support the embedding multiply combination method commonly used in DNN and the combination method based on the attention mechanism. 3. It is necessary to train the basic model first, and then train the sub-model. The sample data needs to be trained multiple times. The process is cumbersome and inefficient.

[0066] Figure 1 is a flow chart of a feature evaluation method according to an exemplary embodiment. Figure 1 As shown, the characteristic evaluation method is used in an electronic device and includes the following steps.

[0067] In step S11, target sample data is obtained; wherein the target sample data includes first sample data including basic features and second sample data including features to be evaluated; the basic features are features currently applied to the recommendation system, and the features to be evaluated are features not currently applied to the recommendation system.

[0068] Among them, the recommendation system can be understood as a system for business recommendation. Basic features can be features that are currently applied to the recommendation system, that is, effective features that have been used when making business recommendations based on the recommendation system. The basic features can be one or more. In addition, the basic features can include single features and / or combined features. Specifically, the basic features can be pre-set by technicians based on experience, or they can be effective features determined by the feature evaluation method provided by an embodiment of the present invention. The features to be evaluated are features that are not currently applied to the recommendation system, that is, features used to evaluate effectiveness, and can also be understood as features used to evaluate whether business recommendations based on the recommendation system are effective. Among them, the features to be evaluated can include at least one group of features to be evaluated, and each group of features to be evaluated can be one or more. Optionally, the features to be evaluated include a single feature to be evaluated and / or a combination of features to be evaluated. The advantage of such a setting is that when the feature to be evaluated is a single feature to be evaluated, the validity of the single feature to be evaluated can be evaluated; when the feature to be evaluated is a combination of features to be evaluated, the validity of the combination of features to be evaluated can be evaluated; and when the feature to be evaluated is a single feature to be evaluated and a combination of features to be evaluated, the validity of the single feature to be evaluated and the combination of features to be evaluated can be quickly evaluated at the same time. Among them, the combination of features to be evaluated can be a combination of two single features, or a combination of multiple single features, and the combined feature after combining N (N is an integer greater than or equal to 2) single features can be called an N-order combined feature.

[0069] In one implementation of the disclosed embodiment, the step of obtaining target sample data includes: determining basic features and features to be evaluated; extracting feature values ​​corresponding to the basic features from a large amount of business recommendation data based on the basic features, and extracting feature values ​​corresponding to the features to be evaluated from a large amount of business recommendation data based on the features to be evaluated; using the basic features and the feature values ​​corresponding to the basic features as the first sample data, and using the features to be evaluated and the feature values ​​corresponding to the features to be evaluated as the second sample data; the first sample data and the second sample data constitute the target sample data. Exemplarily, the basic features and the features to be evaluated input by the user are determined, for example, a feature evaluation instruction input by the user is received, and the feature evaluation instruction contains the basic features and the features to be evaluated. Then, the business recommendation data is obtained, wherein the electronic device can obtain the business recommendation data from the local recommendation system, or can obtain the business recommendation data within a certain time period from the server. The feature values ​​corresponding to the basic features and the features to be evaluated are respectively extracted from the business recommendation data, and the basic features and the feature values ​​corresponding to the basic features are used as the first sample data, and the features to be evaluated and the feature values ​​corresponding to the features to be evaluated are used as the second sample data.

[0070] Exemplarily, for the short video recommendation service, when the electronic device evaluates whether a certain feature is effective in the short video recommendation, the click request data of the short video stored locally can be used as the service recommendation data, or the click request data of the short video received by the server within a preset time period can be obtained from the server providing the short video service, and the received click request data of the short video can be used as the service recommendation data. The data corresponding to the basic features and the features to be evaluated (i.e., feature values) are respectively extracted from the click request data of the short video (i.e., the service recommendation data). For example, the click request data of the short video may include: female, 30 years old, 8 o'clock in the evening, the user uses a mobile terminal to click to play the short video, the play time of the short video is 5 minutes, and the short video type is an entertainment video. As another example, the basic features may include: user age, user gender, and short video type. The feature values ​​corresponding to the basic features extracted from the business recommendation data are: 30, female, entertainment, that is, the first sample data can be expressed as: {user age, 30; user gender, female; short video type, entertainment}; the features to be evaluated may include short video playback time, age + gender, then the feature values ​​corresponding to the recommended features to be evaluated extracted from the business recommendation sample data are: 5 minutes, 30 female; the second sample data can be expressed as: {short video playback time, 5 minutes; age + gender, 30 female}.

[0071] In step S12, the feature evaluation model is trained based on the target sample data. During the model training process, the intermediate data generated based on the first sample data is used as the intermediate input in the training process of the second sample data.

[0072] Exemplarily, the target sample data is input into the feature evaluation model, and the feature evaluation model is trained based on the target sample data. The feature evaluation model includes multiple network layers. In the process of training the feature evaluation model, each network layer can process the first sample data and the second sample data respectively to generate intermediate data, and the intermediate data generated based on the first sample data is used as the intermediate input in the training process of the second sample data. For example, the data output by the network layer corresponding to the first sample data is used as the intermediate data generated based on the first sample data, and the intermediate data generated based on the first sample data is input into a certain network layer corresponding to the second sample data, so as to realize that the intermediate data generated based on the first sample data is used as the intermediate input in the training process of the second sample data.

[0073] Optionally, the feature evaluation model includes a basic sub-model and a test sub-model; the feature evaluation model is trained based on the target sample data, and during the model training process, the intermediate data generated based on the first sample data is used as the intermediate input in the training process of the second sample data, including: the first sample data is input into the basic sub-model in the feature evaluation model, and the second sample data is input into the test sub-model in the feature evaluation model to train the feature evaluation model; during the model training process, the data output by any network layer of the basic sub-model is used as the intermediate data generated based on the first sample data, and the intermediate data is input into any network layer of the test sub-model to use the intermediate data as the intermediate input in the training process of the second sample data. The advantage of such a setting is that the intermediate data generated based on the first sample data is used as the intermediate input in the training process of the second sample data, so as to realize a rapid evaluation of the effectiveness of the feature to be evaluated based on the basic feature as a reference.

[0074] Exemplarily, the feature evaluation model can be understood as a learning model that quickly determines the validity of the feature to be evaluated after inputting the target sample data. Optionally, the feature evaluation model includes a basic sub-model and a test sub-model, that is, the feature evaluation model is a hybrid network model constructed based on the basic sub-model and the test sub-model. In one embodiment of the present disclosure, the first sample data is input into the basic sub-model in the feature evaluation model, and the second sample data is input into the test sub-model in the feature evaluation model, so as to train the feature evaluation model based on the first sample data and the second sample data. In the process of training the feature evaluation model, the data output by any network layer of the basic sub-model is used as the intermediate data generated based on the first sample data, and the intermediate data generated based on the first sample data is input into any network layer of the test sub-model, so as to use the intermediate data generated based on the first sample data as the intermediate input in the training process of the second sample data. It can be understood that any network layer of the basic sub-model is connected to any network layer of the test sub-model, so as to input the data output by any network layer of the basic sub-model into any network layer of the test sub-model.

[0075] Among them, the number of test sub-models is the same as the number of groups of features to be evaluated. For example, if the features to be evaluated include at least one group of features to be evaluated, then the feature evaluation model includes a basic sub-model and at least one test sub-model. Any network layer of the basic sub-model is forward connected to any of the same network layers of each test sub-model. The advantage of this setting is that the basic sub-model is trained independently and will not be affected by each test sub-model. Since the output of a certain network layer of the basic sub-model is forward connected to a certain network layer of each test sub-model, the output result of the network layer of the basic sub-model will be referenced during the training of each test sub-model, and each test sub-model will not pass gradients to the basic sub-model during back propagation. Among them, the basic sub-model and each test sub-model can be the same or different. Optionally, the basic sub-model and each test sub-model can both be DNN network models.

[0076] Optionally, the connection method between the basic sub-model and the test sub-model includes a splicing connection method and a summation connection method. For example, the second network layer of the basic sub-model is forward connected to the third network layer of the test sub-model, and the splicing connection method can be understood as splicing the vector output by the second network layer of the basic sub-model with the vector to be input to the third network layer of the test sub-model, and inputting the spliced ​​vector to the third network layer of the test sub-model. For example, the vector output by the second network layer of the basic sub-model and the vector to be input to the third network layer of the test sub-model are both 5-dimensional vectors. When the basic sub-model and the test sub-model are connected by splicing, the vector input to the third network layer of the test sub-model is a 10 (5 + 5) dimensional vector. The summation connection method can be understood as summing the vector output by the second network layer of the basic sub-model and the vector to be input to the third network layer of the test sub-model, and inputting the summed vector to the third network layer of the test sub-model. For example, the vector output by the second network layer of the basic sub-model and the vector to be input to the third network layer of the test sub-model are both 10-dimensional vectors. When the basic sub-model and the test sub-model are connected by summation, the vector input to the third network layer of the test sub-model is a 10-dimensional vector.

[0077] Optionally, before inputting the target sample data into the feature evaluation model, the target sample data may be preprocessed, and the preprocessed target sample data may be input into the feature evaluation model. Exemplarily, if the basic feature or the feature to be evaluated is a continuous feature, the target sample data is subjected to a discrete feature change so that the feature value corresponding to the basic feature or the feature to be evaluated in the target sample data becomes a discrete value.

[0078] In step S13, based on the output result of the feature evaluation model, evaluation information of the feature to be evaluated is generated.

[0079] In one implementation of the disclosed embodiment, after the target sample data is input into the feature evaluation model, the feature evaluation model is trained based on the target sample data, and the output result of the feature evaluation model is obtained. Among them, the output result of the feature evaluation model may include AUC (Area Under Curve) and the loss function value. Among them, AUC can be determined based on the ROC (Receiver Operating Characteristic) curve or the PR (Precision Recall) curve. Then, according to the output result of the feature evaluation model, the evaluation information of the feature to be evaluated is generated. Among them, the evaluation information of the feature to be evaluated may include valid and invalid. When it is determined that the feature to be evaluated is a valid feature, it means that the addition of the feature to be evaluated can effectively improve the accuracy of business recommendation based on the recommendation system; when it is determined that the feature to be evaluated is an invalid feature, it means that the addition of the business feature to be evaluated has little effect on improving the accuracy of business recommendation based on the recommendation system, and may even reduce the accuracy of business recommendation based on the recommendation system.

[0080] The feature evaluation method provided by the embodiment of the present disclosure trains a feature evaluation model based on first sample data including basic features currently applied to the recommendation system and second sample data including features to be evaluated that are not currently applied to the recommendation system. During the model training process, intermediate data generated based on the first sample data is used as intermediate input in the training process of the second sample data, and evaluation information of the features to be evaluated is generated according to the output results of the feature evaluation model. This not only solves the technical problems of large computing resource investment and long time consumption in feature validity verification in the prior art, but also realizes a simple and rapid evaluation of the validity of one or more features to be evaluated based on the basic features as a reference, thereby further realizing low-cost, high-efficiency and automated feature selection for the recommendation system.

[0081] It should be noted that the feature evaluation scheme provided by the embodiment of the present disclosure can also be applied to application scenarios for evaluating the effectiveness of features in non-business recommendation fields. In this case, the features and data in the recommendation system can be directly replaced with relevant features and relevant data in other application scenarios.

[0082] In an optional embodiment, the step of generating the evaluation information of the feature to be evaluated based on the output result of the feature evaluation model includes: respectively obtaining the first area under the curve output by the basic submodel and the second area under the curve output by the test submodel; calculating the area gain of the second area under the curve relative to the area under the first curve; and generating the evaluation information of the feature to be evaluated according to the area gain. Exemplarily, since the feature evaluation model includes the basic submodel and the test submodel, the output result of the feature evaluation model may include the output result of the basic submodel and the output result of the test submodel. When the output result of the feature evaluation model is AUC, the output result of the feature evaluation model specifically includes the first AUC output by the basic submodel and the second AUC output by the test submodel. Among them, AUC can be the area under the ROC curve, that is, the area of ​​the region enclosed by the ROC curve and the coordinate axis. Then, the area gain of the second AUC relative to the first AUC is calculated respectively, and the evaluation information of the feature to be evaluated is generated according to each area gain. Among them, the area gain of the second AUC relative to the first AUC can be understood as the difference between the second AUC and the first AUC.

[0083] Optionally, the step of generating the evaluation information of the feature to be evaluated according to the area gain includes: when the area gain is within a preset interval, determining the feature to be evaluated as a valid feature; when the area gain is outside the preset interval, determining the feature to be evaluated as an invalid feature. Exemplarily, it is determined whether the area gain is within the preset interval. When the area gain is within the preset interval, the feature to be evaluated is determined as a valid feature. When the area gain is not within the preset interval, that is, when the area gain is outside the preset interval, the feature to be evaluated is determined as an invalid feature. Wherein, when the feature to be evaluated is at least one group of features to be evaluated, correspondingly, the feature evaluation model includes a basic sub-model and at least one test sub-model, and the number of test sub-models is the same as the number of groups of features to be evaluated. Therefore, the area gain of the second AUC output by each test sub-model relative to the first AUC output by the basic sub-model can be calculated, and then the evaluation information of each group of features to be evaluated is generated according to each area gain. Exemplarily, the features to be evaluated include five groups of features to be evaluated, and the output results of each test sub-model determined by the above scheme are shown in the following table:

[0084]

[0085]

[0086] Among them, AUC_diff represents area gain, AUC in the above table represents the AUC of the second ROC curve output by each test sub-model, and Feature_num represents the data volume of the second sample data (i.e., the data to be evaluated). If the preset interval range is set to [0,0.02], the first group of features to be evaluated and the third group of features to be evaluated can be determined as valid features, while the second group of features to be evaluated, the fourth group of features to be evaluated, and the fifth group of features to be evaluated can be determined as invalid features.

[0087] In an optional implementation, before training the feature evaluation model based on the target sample data, the method further includes: obtaining feature screening sample data; determining feature statistics of the feature to be evaluated based on the feature screening sample data; and screening the feature to be evaluated based on the feature statistics. The advantage of such a setting is that invalid features to be evaluated can be filtered out, the amount of target sample data can be reduced, and the evaluation efficiency of the effectiveness of the features to be evaluated based on the feature evaluation model can be improved.

[0088] Exemplarily, feature screening sample data is obtained, wherein the feature screening sample data can be understood as small batch data. Feature statistical information of the feature to be evaluated is determined according to the feature screening sample data, wherein the feature statistical information may include the total feature amount, the average feature amount and the feature coverage. The advantage of such a setting is that the accuracy of the feature screening to be evaluated can be effectively improved by screening the feature to be evaluated through feature statistical information such as the total feature amount, the average feature amount and the feature coverage, and the invalid feature to be evaluated can be screened out as much as possible, thereby reducing the data volume of the target sample data and improving the speed of evaluating the feature to be evaluated. Among them, the total feature amount can be understood as the total amount and feature value corresponding to a feature to be evaluated extracted from the feature screening sample data, and the average feature amount can be understood as the average value of the total feature amount of each single feature of the combined feature when the feature to be evaluated is a combined feature. Feature coverage can be understood as the size of the sample data amount containing a feature to be evaluated in the feature screening sample data. The feature to be evaluated is screened according to the feature statistical information, and the invalid feature to be evaluated is filtered out. For example, the feature to be evaluated whose feature coverage is less than a certain threshold is filtered out, and the feature to be evaluated whose total feature amount or average feature amount is greater than a preset threshold can also be filtered out. Optionally, features whose feature quantities do not change after combination, such as a combination of user ID and gender, can also be combined. Since the gender of the same user is fixed, the combined features are actually equivalent to the single feature of user ID, and this combination can also be filtered out in advance.

[0089] Figure 2 is a flow chart of another feature evaluation method according to an exemplary embodiment. Figure 2 As shown, the characteristic evaluation method is used for an electronic device, comprising the following steps:

[0090] In step S21, target sample data is obtained; wherein the target sample data includes first sample data including basic features and second sample data including features to be evaluated; the basic features are features currently applied to the recommendation system, and the features to be evaluated are features currently not applied to the recommendation system.

[0091] It should be noted that when the basic features or the features to be evaluated include combined features, combined feature data can be generated based on the target sample data, wherein the combined feature data includes the combined features and the combined feature values ​​corresponding to the combined features.

[0092] In step S22, the first sample data is input into a basic sub-model in the feature evaluation model, and the second sample data is input into a test sub-model in the feature evaluation model, so as to train the feature evaluation model.

[0093] In step S23, during the model training process, the data output by any network layer of the basic sub-model is used as intermediate data generated based on the first sample data, and the intermediate data is input into any network layer of the test sub-model so as to use the intermediate data as intermediate input in the training process of the second sample data.

[0094] Figure 3 FIG. 1 is a schematic diagram showing a structure of a feature evaluation model according to an exemplary embodiment. Figure 3 As shown, the feature evaluation model includes a basic sub-model 31 and N test sub-models 32, wherein the number of the test sub-models is equal to the number of groups of features to be evaluated. Figure 3 As shown, any network layer of the basic sub-model 31 is forward connected to any of the same network layers of each test sub-model 32, and the basic sub-model 31 and each test sub-model 32 share a label label, where label can be understood as indicating the learning goal of the model to be evaluated. For example, in the short video recommendation business, the effectiveness of the short video recommendation is usually judged by whether the user clicks on the recommended short video. Therefore, when evaluating the effectiveness of the short video recommendation feature, clicks and non-clicks can be used as label information of the basic data and the data to be evaluated.

[0095] In one implementation of the disclosed embodiment, the basic data (Base Slot) is input into the basic sub-model 31, and at the same time, each group of data to be evaluated (Test Slot 1-Test Slot N) is respectively input into the corresponding test sub-model 32, wherein the test sub-model corresponds to the data to be evaluated one by one. Optionally, the basic sub-model 31 and each test sub-model 32 can be a DNN network model. If the features to be evaluated contained in the data to be evaluated involve the combined features to be evaluated, the single features can be combined at the feature level, such as the cross combination method, or the single features can be combined inside the network layer of the test sub-model 32, such as the embedding vector multiplication embedding multiply combination method or the combination method based on the attention mechanism attention. Among them, when the features to be evaluated involve the combined features to be evaluated, and the combination is performed inside the network layer of the test sub-model (such as the embedding vector multiplication combination method or the combination method based on the attention mechanism), if the basic features and the features to be evaluated both involve the same single feature, the basic data input to the basic sub-model and the data to be evaluated input to the test sub-model may be the same, that is, the same data is shared.

[0096] In step S24, a first area under the curve output by the basic sub-model and a second area under the curve output by the test sub-model are obtained respectively.

[0097] In step S25 , the area gain of the area under the second curve relative to the area under the first curve is calculated.

[0098] In step S26, when the area gain is within a preset interval, the feature to be evaluated is determined to be a valid feature.

[0099] In step S27, when the area gain is outside the preset interval, the feature to be evaluated is determined as an invalid feature.

[0100] The feature evaluation method provided by the embodiment of the present disclosure trains a feature evaluation model based on first sample data including basic features currently applied to the recommendation system and second sample data including features to be evaluated that are not currently applied to the recommendation system. During the model training process, intermediate data generated based on the first sample data is used as intermediate input in the training process of the second sample data, and evaluation information of the features to be evaluated is generated according to the output results of the feature evaluation model. This not only solves the technical problems of large computing resource investment and long time consumption in feature validity verification in the prior art, but also realizes a simple and rapid evaluation of the validity of one or more features to be evaluated based on the basic features as a reference, thereby further realizing low-cost, high-efficiency and automated feature selection for the recommendation system.

[0101] Figure 4FIG. 1 is a schematic diagram of a feature evaluation system according to an exemplary embodiment. Figure 4 As shown, the feature pool FeaturePool in the feature evaluation system stores pre-configured business recommendation features (including basic business recommendation features and business recommendation features to be evaluated) and network models corresponding to the business recommendation features. The data reading module DataReader reads sample data from the business recommendation sample data Training data. The sample generator SampleGenerator extracts feature values ​​corresponding to the business recommendation features according to the business recommendation features in FeaturePool, and generates business recommendation data (including basic business recommendation data and business recommendation data to be evaluated). The trainer Trainer trains the business recommendation data based on the network model corresponding to the business recommendation features pre-configured in FeaturePool. During the training process, the generated model parameters are stored in the parameter server Parameter Server, and the DNN engine DNN engine is called to calculate the DNN. The feature collection module FeatureMetric is used to collect the output results of the business recommendation feature evaluation model as an indicator of feature evaluation, such as AUC or Loss.

[0102] Figure 5 is a block diagram of a feature evaluation device according to an exemplary embodiment. Figure 5 The device can be applied to electronic devices, including an acquisition unit 51, a training unit 52 and a generation unit 53.

[0103] The acquisition unit 51 is configured to acquire target sample data; wherein the target sample data includes first sample data including basic features and second sample data including features to be evaluated; the basic features are features currently applied to the recommendation system, and the features to be evaluated are features currently not applied to the recommendation system;

[0104] A training unit 52 is configured to perform training on a feature evaluation model based on the target sample data, and during the model training process, use the intermediate data generated based on the first sample data as an intermediate input in the training process of the second sample data;

[0105] The generating unit 53 is configured to generate evaluation information of the feature to be evaluated based on the output result of the feature evaluation model.

[0106] Optionally, the feature evaluation model includes a basic sub-model and a test sub-model;

[0107] The training unit is configured to execute:

[0108] Inputting the first sample data into a base sub-model in the feature evaluation model, and inputting the second sample data into a test sub-model in the feature evaluation model, so as to train the feature evaluation model;

[0109] During the model training process, the data output by any network layer of the basic sub-model is used as intermediate data generated based on the first sample data, and the intermediate data is input into any network layer of the test sub-model, so as to use the intermediate data as intermediate input in the training process of the second sample data.

[0110] Optionally, the generating unit includes:

[0111] An area acquisition subunit, configured to respectively acquire a first area under a curve output by the base submodel and a second area under a curve output by the test submodel;

[0112] a gain calculation subunit, configured to calculate an area gain of the area under the second curve relative to the area under the first curve;

[0113] The information generating subunit is configured to generate evaluation information of the feature to be evaluated according to the area gain.

[0114] Optionally, the information generating subunit is configured to execute:

[0115] When the area gain is within a preset interval, determining the feature to be evaluated as a valid feature;

[0116] When the area gain is outside a preset interval, the feature to be evaluated is determined as an invalid feature.

[0117] Optionally, the feature evaluation device further includes:

[0118] A sample data acquisition unit is configured to acquire feature screening sample data before training the feature evaluation model based on the target sample data;

[0119] A statistical information determining unit, configured to determine the feature statistical information of the feature to be evaluated based on the feature screening sample data;

[0120] A screening unit is configured to screen the features to be evaluated according to the feature statistical information.

[0121] Optionally, the feature statistical information includes the total feature quantity, the average feature quantity and the feature coverage.

[0122] Optionally, the feature to be evaluated includes a single feature to be evaluated and / or a combination of features to be evaluated.

[0123] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0124] Figure 6 FIG. 1 is a structural block diagram of an electronic device according to an exemplary embodiment. Figure 6 As shown, the electronic device 60 includes a processor 61; a memory 62 for storing executable instructions of the processor 61, and the memory 62 may include RAM and ROM; wherein the processor 61 is configured to execute the instructions to implement the above method.

[0125] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory (62) storing executable instructions, and the instructions can be executed by a processor (61) of an electronic device to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0126] In an exemplary embodiment, a computer program product is also provided. When instructions in the computer program product are executed by a processor of an electronic device, the above method is implemented.

[0127] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0128] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A feature evaluation method, It is characterized in that include: Obtain target sample data; wherein the target sample data includes first sample data including basic features and second sample data including features to be evaluated; the basic features are features currently applied to the recommendation system, and the features to be evaluated are features currently not applied to the recommendation system; wherein the target sample data includes user age, user gender, short video type, and short video playback duration; Training a feature evaluation model based on the target sample data, and during the model training process, using intermediate data generated based on the first sample data as intermediate input in the training process of the second sample data; Based on the output result of the feature evaluation model, generating evaluation information of the feature to be evaluated; Wherein, the feature evaluation model includes a basic sub-model and a test sub-model; The feature evaluation model is trained based on the target sample data, and in the model training process, the intermediate data generated based on the first sample data is used as the intermediate input in the training process of the second sample data, including: Inputting the first sample data into a base sub-model in the feature evaluation model, and inputting the second sample data into a test sub-model in the feature evaluation model, so as to train the feature evaluation model; During the model training process, the data output by any network layer of the basic sub-model is used as intermediate data generated based on the first sample data, and the intermediate data is input into any network layer of the test sub-model, so as to use the intermediate data as intermediate input in the training process of the second sample data.

2. The feature evaluation method according to claim 1, It is characterized in that The step of generating evaluation information of the feature to be evaluated based on the output result of the feature evaluation model comprises: Respectively obtaining a first area under the curve output by the basic sub-model and a second area under the curve output by the test sub-model; calculating an area gain of the area under the second curve relative to the area under the first curve; Evaluation information of the feature to be evaluated is generated according to the area gain.

3. The feature evaluation method according to claim 2, It is characterized in that The step of generating evaluation information of the feature to be evaluated according to the area gain comprises: When the area gain is within a preset interval, determining the feature to be evaluated as a valid feature; When the area gain is outside a preset interval, the feature to be evaluated is determined as an invalid feature.

4. The feature evaluation method according to claim 1, It is characterized in that Before training the feature evaluation model based on the target sample data, the method further includes: Obtain feature screening sample data; Determine feature statistical information of the feature to be evaluated based on the feature screening sample data; The features to be evaluated are screened according to the feature statistical information.

5. The feature evaluation method according to claim 4, It is characterized in that The feature statistical information includes the total feature quantity, the average feature quantity and the feature coverage.

6. The feature evaluation method according to any one of claims 1 to 5, It is characterized in that The features to be evaluated include a single feature to be evaluated and / or a combination of features to be evaluated.

7. A feature evaluation device, It is characterized in that include: The acquisition unit is configured to execute acquisition of target sample data; wherein the target sample data includes first sample data including basic features and second sample data including features to be evaluated; the basic features are features currently applied to the recommendation system, and the features to be evaluated are features currently not applied to the recommendation system; wherein the target sample data includes user age, user gender, short video type, and short video playback time; A training unit is configured to perform training on a feature evaluation model based on the target sample data, and during the model training process, use the intermediate data generated based on the first sample data as an intermediate input in the training process of the second sample data; A generating unit, configured to generate evaluation information of the feature to be evaluated based on an output result of the feature evaluation model; Wherein, the feature evaluation model includes a basic sub-model and a test sub-model; The training unit is configured to execute: Inputting the first sample data into a base sub-model in the feature evaluation model, and inputting the second sample data into a test sub-model in the feature evaluation model, so as to train the feature evaluation model; During the model training process, the data output by any network layer of the basic sub-model is used as intermediate data generated based on the first sample data, and the intermediate data is input into any network layer of the test sub-model, so as to use the intermediate data as intermediate input in the training process of the second sample data.

8. The feature evaluation device according to claim 7, It is characterized in that The generating unit comprises: An area acquisition subunit, configured to respectively acquire a first area under a curve output by the base submodel and a second area under a curve output by the test submodel; a gain calculation subunit, configured to calculate an area gain of the area under the second curve relative to the area under the first curve; The information generating subunit is configured to generate evaluation information of the feature to be evaluated according to the area gain.

9. The feature evaluation device according to claim 8, It is characterized in that The information generating subunit is configured to execute: When the area gain is within a preset interval, determining the feature to be evaluated as a valid feature; When the area gain is outside a preset interval, the feature to be evaluated is determined as an invalid feature.

10. The feature evaluation device according to claim 7, It is characterized in that The feature evaluation device also includes: A sample data acquisition unit is configured to acquire feature screening sample data before training the feature evaluation model based on the target sample data; A statistical information determining unit, configured to determine the feature statistical information of the feature to be evaluated based on the feature screening sample data; A screening unit is configured to screen the features to be evaluated according to the feature statistical information.

11. The feature evaluation device according to claim 10, It is characterized in that The feature statistical information includes the total feature quantity, the average feature quantity and the feature coverage.

12. The feature evaluation device according to any one of claims 7 to 11, It is characterized in that The features to be evaluated include a single feature to be evaluated and / or a combination of features to be evaluated.

13. An electronic device, It is characterized in that include: processor; a memory for storing executable instructions for the processor; The processor is configured to execute the instructions to implement the feature evaluation method according to any one of claims 1 to 6.

14. A storage medium, when commands in the storage medium are executed by a processor of a server, enables the server to execute the feature evaluation method according to any one of claims 1 to 6.