Method, device and electronic device for improving service processing capability of service module
By performing isometric binning and information divergence analysis on the feature variables of the deep learning model, the problem of low efficiency in measuring feature importance in the existing technology is solved, and efficient and accurate assessment and business impact of the feature variables of the deep learning model are achieved. Improved processing capabilities.
Patent Information
- Application Number
- CN202111052258.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-08
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-09-08
AI Technical Summary
Existing methods for measuring feature importance in deep learning models rely on manual comparison and distribution curve analysis, which are inefficient and difficult to accurately measure the impact of features on business processing capabilities, resulting in limited improvements in business processing capabilities.
By calculating the score of the training data set, select the head and tail data, perform equidistant binning processing of the feature variables, calculate the information divergence to reflect the impact of the feature variables on business processing capabilities, and adjust the feature variables according to the information divergence weight to improve the business processing capabilities of the business module.
It achieves efficient and accurate measurement of the impact of feature variables on business modules, reduces manual intervention, improves business processing capabilities, and improves the accuracy and efficiency of feature importance ranking.
Smart Images

Figure CN113902123B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer information processing, and in particular to a method, device, electronic device and computer-readable medium for improving the business processing capability of a business module. Background Art
[0002] With the development of deep learning technology, more and more business systems use business modules based on deep learning model training to process business. During the training process, it is necessary to measure the importance of feature variables in the deep learning model. That is, after training a model, it is necessary to check which features of the currently used feature variables contribute more to the model. Because exploring the importance of features is conducive to screening features when training iterative models and better feature engineering.
[0003] The deep learning model is a black box model. Due to its unexplainability, it does not have a mechanism for ranking the importance of features like the GBDT model (a machine learning technology used for regression and classification problems, and the prediction model it produces is an integration of weak prediction models). At present, one of the methods for measuring the importance of features in deep learning models is to use the TopBotAnalysis method (a method for determining the impact of variables on the model by comparing the distribution of variables in the head data set after model sorting and the distribution of variables in the tail data set) to analyze feature variables. Taking the binary classification model as an example, the TopBotAnalysis method first uses the model to score and sort the test data set, sets the split point to divide the data set into the top part (head) and the bottom part (tail), takes a certain feature variable, and draws the distribution diagram of the variable in the head data and the tail data. If there is a significant deviation between the two distribution curves, it means that this feature variable can distinguish the results of sample classification. If the distribution is similar, it means that this feature has a relatively weak impact on the results.
[0004] The disadvantage of this method is that it requires a lot of manual comparison, differentiation, and screening work, which is not friendly to models that use a large number of features. In theory, it is necessary to observe the differences in the distribution curves of each feature, or manually select some features for comparison, which will increase time costs and is more dependent on manual operations. Another disadvantage is that the degree of deviation of the observed distribution curve cannot be directly used as an indicator to measure the importance of the feature, which will result in no clear standard for measuring the ranking results for features with similar deviation degrees.
[0005] Therefore, a new method for adjusting business modules based on deep learning models is needed, which can efficiently measure the impact of characteristic variables in business modules on business capabilities and accurately improve the business processing capabilities of business modules based on the measurement results. Summary of the invention
[0006] The present invention aims to provide a new method for adjusting a business module based on a deep learning model, which can efficiently measure the impact of characteristic variables in the business module on the business capability, and accurately improve the business processing capability of the business module based on the measurement results.
[0007] In order to solve the above technical problems, the first aspect of the present invention proposes a method for improving the business processing capability of a business module, the method comprising: inputting a training data set into a business module for processing business, obtaining a processing result output by the business module, and calculating a score of each training data in the training data set according to the processing result; selecting multiple training data with scores higher than a preset critical value from the training data set as head training data, and selecting multiple training data with scores lower than the critical value as tail training data; identifying characteristic variables in the business module, performing equidistant binning processing on the values of the characteristic variables in the head training data and the tail training data, and calculating a first distribution of the values of the characteristic variables in the head training data and a second distribution in the tail training data according to the frequency of occurrence of the values of the characteristic variables in each bin; calculating the information divergence between the first distribution and the second distribution, the information divergence reflecting the degree of influence of the characteristic variables on the business processing capability of the business module; adjusting the characteristic variables in the business module according to the information divergence to improve the business processing capability of the business module.
[0008] According to a preferred embodiment of the present invention, before the equidistant binning processing is performed on the values of the feature variables in the head training data and the tail training data, it also includes: when there are multiple feature variables, the feature variables are screened according to the frequency of use of the feature variables in different business modules.
[0009] According to a preferred embodiment of the present invention, the equidistant binning processing of the values of the feature variables in the head training data and the tail training data includes: when there are multiple feature variables, equidistant binning processing of the value of each feature variable according to a uniform number of bins.
[0010] According to a preferred embodiment of the present invention, the equidistant binning processing of the values of the feature variables in the head training data and the tail training data includes: setting the size of the bin number according to the amount of computing resources currently in use, and equidistant binning processing of the values of the feature variables according to the bin number.
[0011] According to a preferred embodiment of the present invention, the adjusting the characteristic variables in the business module according to the information divergence to enhance the business processing capability of the business module comprises: scaling the weights of the characteristic variables in the business module according to the size of the information divergence.
[0012] In order to solve the above technical problems, the first aspect of the present invention proposes a device for improving the business processing capability of a business module, the device comprising: a score calculation module, inputting a training data set into a business module for processing business, obtaining a processing result output by the business module, and calculating the score of each training data in the training data set according to the processing result; a training data selection module, selecting multiple training data with scores higher than a preset critical value from the training data set as head training data, and selecting multiple training data with scores lower than the critical value as tail training data; a distribution calculation module, identifying feature variables in the business module, performing equidistant binning processing on the values of the feature variables in the head training data and the tail training data, and calculating a first distribution of the value of the feature variable in the head training data and a second distribution of the value of the feature variable in the tail training data according to the frequency of occurrence of the value of the feature variable in each bin; an information divergence calculation module, calculating the information divergence between the first distribution and the second distribution, the information divergence reflecting the degree of influence of the feature variable on the business processing capability of the business module; a feature variable adjustment module, adjusting the feature variables in the business module according to the information divergence to improve the business processing capability of the business module.
[0013] According to a preferred embodiment of the present invention, before the distribution calculation module performs equidistant binning processing on the values of the feature variables in the head training data and the tail training data, when there are multiple feature variables, the distribution calculation module screens the feature variables according to the frequency of use of the feature variables in different business modules.
[0014] According to a preferred implementation manner of the present invention, when there are multiple characteristic variables, the distribution calculation module performs equidistant binning processing on the value of each characteristic variable according to a uniform number of bins.
[0015] According to a preferred implementation manner of the present invention, the distribution calculation module sets the size of the bin number according to the amount of computing resources currently in use, and performs equidistant binning processing on the value of the feature variable according to the bin number.
[0016] According to a preferred implementation manner of the present invention, the characteristic variable adjustment module scales the weight of the characteristic variable in the business module according to the size of the information divergence.
[0017] In order to solve the above technical problem, the third aspect of the present invention proposes an ... electronic device, which includes a processor and a memory storing computer-executable instructions, and the computer-executable instructions, when executed, enable the processor to execute the above method.
[0018] In order to solve the above technical problem, the fourth aspect of the present invention proposes a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by a processor, the above method is implemented.
[0019] According to the technical solution of the present invention, firstly, the training data is scored based on the output result of the business module and the head training data and the tail training data are selected. Different from the prior art solution, the technical solution of the present invention does not directly draw a distribution curve for the value of each feature variable, but first performs equidistant binning according to the value of the feature variable, and calculates its distribution based on the frequency of the value of the feature variable in each box. Compared with the method of drawing the distribution curve, it does not rely on manual comparison and distinction, and is more efficient. Then, the information divergence is calculated according to the distribution, and the information divergence can reflect the influence of the feature variable on the business processing capability of the business module. The feature variable is selected for adjustment according to the information divergence, which is more accurate and efficient than the adjustment based on the offset degree of the distribution curve. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects achieved more clearly, the specific embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, it should be noted that the drawings described below are only drawings of exemplary embodiments of the present invention, and those skilled in the art can obtain drawings of other embodiments based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a method for improving the service processing capability of a service module according to an embodiment of the present invention;
[0022] Figure 2 is a flow chart of a method for improving the service processing capability of a service module according to an embodiment of the present invention;
[0023] Figure 3 is a block diagram of a device for improving the service processing capability of a service module according to an embodiment of the present invention;
[0024] Figure 4 is a block diagram of an electronic device according to an embodiment of the present invention;
[0025] Figure 5 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. Although each exemplary embodiment can be implemented in a variety of specific ways, it should not be understood that the present invention is limited to the embodiments set forth herein. On the contrary, these exemplary embodiments are provided to make the content of the present invention more complete and to facilitate the comprehensive communication of the inventive concept to those skilled in the art.
[0027] Under the premise of conforming to the technical concept of the present invention, the structure, performance, effect or other characteristics described in a specific embodiment may be combined with one or more other embodiments in any appropriate manner.
[0028] In the process of introducing specific embodiments, the detailed description of the structure, performance, effect or other characteristics is to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can implement the present invention with a technical solution that does not contain the above-mentioned structure, performance, effect or other characteristics under certain circumstances.
[0029] The flowchart in the accompanying drawings is only an exemplary process demonstration, and does not mean that the solution of the present invention must include all the contents, operations and steps in the flowchart, nor does it mean that it must be executed in the order shown in the figure. For example, some operations / steps in the flowchart can be decomposed, some operations / steps can be combined or partially combined, etc. The execution order shown in the flowchart can be changed according to the actual situation without departing from the main purpose of the present invention.
[0030] Frames in the attached figure Figure 1 Generally, it refers to functional entities, which do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0031] The same reference numerals in the drawings represent the same or similar elements, components or parts, and thus the repeated description of the same or similar elements, components or parts may be omitted below. It should also be understood that although the first, second, third and other attributives representing the numbers may be used herein to describe various devices, elements, components or parts, these devices, elements, components or parts should not be limited by these attributives. In other words, these attributives are only used to distinguish one from another. For example, the first device may also be called the second device, but it does not deviate from the essential technical solution of the present invention. In addition, the terms "and / or" and "and / or" refer to all combinations including any one or more of the listed items.
[0032] The present invention aims to improve the business capabilities of a business module by adjusting feature variables. First, it is necessary to determine the impact of each feature variable on the business capabilities. First, a training data set is input into a business module for processing business, and a processing result output by the business module is obtained. The score of each training data in the training data set is calculated according to the processing result; multiple training data with scores higher than a preset critical value are selected from the training data set as head training data, and multiple training data with scores lower than the critical value are selected as tail training data; different from the prior art solutions, the technical solution of the present invention does not directly draw a distribution curve for the value of each feature variable, but identifies the feature variables in the business module, and calculates the score of the head training data for the tail training data. The values of the characteristic variables in the head training data and the tail training data are divided into equidistant boxes, and the first distribution of the characteristic variable values in the head training data and the second distribution in the tail training data are calculated according to the frequency of the characteristic variable values in each box. Compared with the method of drawing distribution curves, it does not rely on manual comparison and distinction, and is more efficient; the information divergence between the first distribution and the second distribution is calculated, and the information divergence reflects the influence of the characteristic variables on the business processing capability of the business module; according to the information divergence, the characteristic variables in the business module are adjusted to improve the business processing capability of the business module, which is more accurate and efficient than making adjustments according to the degree of deviation of the distribution curve.
[0033] like Figure 1 As shown, in one embodiment of the present invention, a method for improving the service processing capability of a service module is provided, the method comprising:
[0034] Step S110, input the training data set into a business module for processing business, obtain the processing result output by the business module, and calculate the score of each training data in the training data set according to the processing result.
[0035] In this embodiment, there is no restriction on the type of business module. The business module may be a trained deep learning model. After the training data is input into the business module, the model is scored according to the results.
[0036] Step S120 , selecting a plurality of training data with scores higher than a preset critical value from the training data set as head training data, and selecting a plurality of training data with scores lower than the critical value as tail training data.
[0037] In this embodiment, the head and tail data are respectively obtained according to a certain cutoff value (ie, critical value), and the cutoff value is usually set to 50%.
[0038] Step S130, identifying the characteristic variables in the business module, performing equidistant binning processing on the values of the characteristic variables in the head training data and the tail training data, and calculating the first distribution of the values of the characteristic variables in the head training data and the second distribution in the tail training data according to the frequency of occurrence of the values of the characteristic variables in each bin.
[0039] In this embodiment, the values of the feature variables are divided into equal intervals and binned, and the frequency of occurrence in each bin is counted to obtain the distribution P of the values of the feature variables in the head. TOP and the distribution P in the tail BOT .
[0040] Step S140, calculating the information divergence between the first distribution situation and the second distribution situation, where the information divergence reflects the influence of the characteristic variable on the service processing capability of the service module.
[0041] In this embodiment, P representing each feature variable is calculated. TOP and P BOT The JS divergence between the two is used to characterize the degree of separation of the feature variable at the head and tail. The range of the JS divergence is [0,1]. The features are sorted according to the size of the JS divergence. The larger the value, the greater the impact of this feature on the model sorting result, the higher the feature importance, and the greater the impact on business capabilities. The calculation formula of JS divergence is as follows:
[0042]
[0043]
[0044]
[0045] In this embodiment, the feature variables are sorted according to the quantified feature importance, which does not consume manpower. Compared with the prior art of printing out the distribution curve of each feature, the technical solution of this embodiment consumes less time to operate and is relatively simple to implement.
[0046] Step S150: adjusting the characteristic variables in the business module according to the information divergence to improve the business processing capability of the business module.
[0047] According to the technical solution of this embodiment, the training data is first scored based on the output results of the business module and the head training data and the tail training data are selected. Different from the existing technical solutions, the technical solution of the present invention does not directly draw a distribution curve for the value of each feature variable, but first performs equidistant binning according to the value of the feature variable, and calculates its distribution based on the frequency of the value of the feature variable in each box. Compared with the method of drawing the distribution curve, it does not rely on manual comparison and distinction, and is more efficient. Then, the information divergence is calculated according to the distribution, and the information divergence can reflect the influence of the feature variable on the business processing capability of the business module. The feature variable is selected for adjustment according to the information divergence, which is more accurate and efficient than making adjustments according to the degree of deviation of the distribution curve.
[0048] like Figure 2 As shown, in one embodiment of the present invention, a method for improving the service processing capability of a service module is provided, the method comprising:
[0049] Step S210: input the training data set into a business module for processing business, obtain the processing result output by the business module, and calculate the score of each training data in the training data set according to the processing result.
[0050] Step S220 , selecting a plurality of training data with scores higher than a preset critical value from the training data set as head training data, and selecting a plurality of training data with scores lower than the critical value as tail training data.
[0051] Step S230, identifying characteristic variables in the business module, and when there are multiple characteristic variables, screening the characteristic variables according to the usage frequency of the characteristic variables in different business modules.
[0052] In this embodiment, when there are too many feature variables, they can be pre-screened according to the frequency of use of the feature variables in different business modules. Feature variables that are commonly used in multiple business modules and appear frequently are often common variables, which have a relatively small impact on the business capabilities of the business modules. Such feature variables do not need to be adjusted and can be filtered out at this time.
[0053] Step S240, according to the amount of computing resources currently in use, the size of the bin number is set, and the value of the feature variable is equidistantly binned according to the bin number.
[0054] In this embodiment, the more boxes are set, the higher the calculation complexity and the more accurate the calculation result. The fewer boxes are set, the lower the calculation complexity and the lower the accuracy of the calculation result. Therefore, in this embodiment, the number of bins can be set according to the current available computing resources to take into account the consumption of computing resources and the accuracy of the calculation results.
[0055] Specifically, when there are multiple feature variables, the value of each feature variable is equally spaced according to a uniform number of bins. The bin values are fixed in order to use vectors of the same dimension to represent the distribution of features at the head and tail, making it easier to compare features.
[0056] Step S250 , calculating a first distribution of the value of the feature variable in the head training data and a second distribution of the value of the feature variable in the tail training data according to the frequency of occurrence of the value of the feature variable in each box.
[0057] Step S260: Calculate the information divergence between the first distribution and the second distribution, where the information divergence reflects the influence of the characteristic variable on the service processing capability of the service module.
[0058] Step S270, scaling the weights of the characteristic variables in the business module according to the size of the information divergence.
[0059] Generally, a corresponding weight coefficient is set for each characteristic variable in the business module. If the characteristic variable has a greater impact on the business capabilities of the business module, its weight coefficient can be enlarged; if the characteristic variable has a lower impact on the business capabilities of the business module, its weight coefficient can be reduced.
[0060] According to the technical solution of this embodiment, by setting a unified number of bins, vectors of the same dimension can be used to represent the distribution of feature variables on different training data. By calculating the JS divergence of the two distributions of the head and the tail, the influence of the quantified features on the head and the tail is obtained. This is technically easy to implement, greatly reduces the running time and the dependence of existing technologies on manpower, improves computing efficiency, and returns the sorting results of all features by quantifying the importance of the features.
[0061] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments are implemented as a program executed by a data processing device (including a computer), i.e., a computer program. When the computer program is executed, the above method provided by the present invention can be implemented. Moreover, the computer program can be stored in a computer-readable storage medium, which can be a readable storage medium such as a disk, an optical disk, a ROM, a RAM, or a storage array composed of multiple storage media, such as a disk or a tape storage array. The storage medium is not limited to centralized storage, and it can also be distributed storage, such as cloud storage based on cloud computing.
[0062] The following describes an apparatus embodiment of the present invention, which can be used to execute a method embodiment of the present invention. The details described in the apparatus embodiment of the present invention should be regarded as supplementary to the above method embodiment; details not disclosed in the apparatus embodiment of the present invention can be implemented with reference to the above method embodiment.
[0063] like Figure 3 As shown, in one embodiment of the present invention, a device for improving the service processing capability of a service module is provided, and the device includes:
[0064] The score calculation module 310 inputs the training data set into a business module for processing business, obtains the processing result output by the business module, and calculates the score of each training data in the training data set according to the processing result.
[0065] In this embodiment, there is no restriction on the type of business module. The business module may be a trained deep learning model. After the training data is input into the business module, the model is scored according to the results.
[0066] The training data selection module 320 selects a plurality of training data with scores higher than a preset critical value from the training data set as head training data, and selects a plurality of training data with scores lower than the critical value as tail training data.
[0067] In this embodiment, the head and tail data are respectively obtained according to a certain cutoff value (ie, critical value), and the cutoff value is usually set to 50%.
[0068] The distribution calculation module 330 identifies the characteristic variables in the business module, performs equidistant binning on the values of the characteristic variables in the head training data and the tail training data, and calculates the first distribution of the values of the characteristic variables in the head training data and the second distribution in the tail training data based on the frequency of the values of the characteristic variables in each bin.
[0069] In this embodiment, the values of the feature variables are divided into equal intervals and binned, and the frequency of occurrence in each bin is counted to obtain the distribution P of the values of the feature variables in the head. TOP and the distribution P in the tail BOT .
[0070] The information divergence calculation module 340 calculates the information divergence between the first distribution situation and the second distribution situation. The information divergence reflects the influence of the characteristic variable on the service processing capability of the service module.
[0071] In this embodiment, P representing each feature variable is calculated. TOP and P BOT The JS divergence between the two is used to characterize the degree of separation of the feature variable at the head and tail. The range of the JS divergence is [0,1]. The features are sorted according to the size of the JS divergence. The larger the value, the greater the impact of this feature on the model sorting result, the higher the feature importance, and the greater the impact on business capabilities. The calculation formula of JS divergence is as follows:
[0072]
[0073]
[0074]
[0075] In this embodiment, the feature variables are sorted according to the quantified feature importance, which does not consume manpower. Compared with the prior art of printing out the distribution curve of each feature, the technical solution of this embodiment consumes less time to operate and is relatively simple to implement.
[0076] The characteristic variable adjustment module 350 adjusts the characteristic variables in the business module according to the information divergence to improve the business processing capability of the business module.
[0077] According to the technical solution of this embodiment, the training data is first scored based on the output results of the business module and the head training data and the tail training data are selected. Different from the existing technical solutions, the technical solution of the present invention does not directly draw a distribution curve for the value of each feature variable, but first performs equidistant binning according to the value of the feature variable, and calculates its distribution based on the frequency of the value of the feature variable in each box. Compared with the method of drawing the distribution curve, it does not rely on manual comparison and distinction, and is more efficient. Then, the information divergence is calculated according to the distribution, and the information divergence can reflect the influence of the feature variable on the business processing capability of the business module. The feature variable is selected for adjustment according to the information divergence, which is more accurate and efficient than making adjustments according to the degree of deviation of the distribution curve.
[0078] like Figure 3 As shown, in one embodiment of the present invention, a device for improving the service processing capability of a service module is provided, and the device includes:
[0079] The score calculation module 310 inputs the training data set into a business module for processing business, obtains the processing result output by the business module, and calculates the score of each training data in the training data set according to the processing result.
[0080] The training data selection module 320 selects a plurality of training data with scores higher than a preset critical value from the training data set as head training data, and selects a plurality of training data with scores lower than the critical value as tail training data.
[0081] The distribution calculation module 330 identifies characteristic variables in the business modules, and when there are multiple characteristic variables, screens the characteristic variables according to the usage frequency of the characteristic variables in different business modules.
[0082] In this embodiment, when there are too many feature variables, they can be pre-screened according to the frequency of use of the feature variables in different business modules. Feature variables that are commonly used in multiple business modules and appear frequently are often common variables, which have a relatively small impact on the business capabilities of the business modules. Such feature variables do not need to be adjusted and can be filtered out at this time.
[0083] The distribution calculation module 330 sets the size of the bin number according to the amount of computing resources currently in use, and performs equidistant binning processing on the values of the feature variables according to the bin number.
[0084] In this embodiment, the more boxes are set, the higher the calculation complexity and the more accurate the calculation result. The fewer boxes are set, the lower the calculation complexity and the lower the accuracy of the calculation result. Therefore, in this embodiment, the number of bins can be set according to the current available computing resources to take into account the consumption of computing resources and the accuracy of the calculation results.
[0085] Specifically, when there are multiple feature variables, the value of each feature variable is equally spaced according to a uniform number of bins. The bin values are fixed in order to use vectors of the same dimension to represent the distribution of features at the head and tail, making it easier to compare features.
[0086] The distribution calculation module 330 calculates a first distribution of the value of the feature variable in the head training data and a second distribution of the value of the feature variable in the tail training data according to the frequency of occurrence of the value of the feature variable in each box.
[0087] The information divergence calculation module 340 calculates the information divergence between the first distribution situation and the second distribution situation. The information divergence reflects the influence of the characteristic variable on the service processing capability of the service module.
[0088] The characteristic variable adjustment module 350 scales the weights of the characteristic variables in the business module according to the size of the information divergence.
[0089] Generally, a corresponding weight coefficient is set for each characteristic variable in the business module. If the characteristic variable has a greater impact on the business capabilities of the business module, its weight coefficient can be enlarged; if the characteristic variable has a lower impact on the business capabilities of the business module, its weight coefficient can be reduced.
[0090] According to the technical solution of this embodiment, by setting a unified number of bins, vectors of the same dimension can be used to represent the distribution of feature variables on different training data. By calculating the JS divergence of the two distributions of the head and the tail, the influence of the quantified features on the head and the tail is obtained. This is technically easy to implement, greatly reduces the running time and the dependence of existing technologies on manpower, improves computing efficiency, and returns the sorting results of all features by quantifying the importance of the features.
[0091] Those skilled in the art will appreciate that the modules in the above device embodiments may be distributed in the device as described, or may be changed accordingly and distributed in one or more devices different from the above embodiments. The modules in the above embodiments may be combined into one module, or may be further split into multiple submodules.
[0092] The electronic device embodiment of the present invention is described below, and the electronic device can be regarded as a physical implementation of the method and device embodiments of the present invention described above. The details described in the electronic device embodiment of the present invention should be regarded as a supplement to the above method or device embodiments; details not disclosed in the electronic device embodiment of the present invention can be implemented with reference to the above method or device embodiments.
[0093] Figure 4 is a structural block diagram of an exemplary embodiment of an electronic device according to the present invention. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0094] like Figure 4 As shown, the electronic device 200 of this exemplary embodiment is in the form of a general data processing device. The components of the electronic device 200 may include, but are not limited to: at least one processing unit 210, at least one storage unit 220, a bus 230 connecting different system components (including the storage unit 220 and the processing unit 210), a display unit 240, etc.
[0095] The storage unit 220 stores a computer-readable program, which may be a source program or a code of a read-only program. The program may be executed by the processing unit 210, so that the processing unit 210 performs the steps of various embodiments of the present invention. For example, the processing unit 210 may perform the following steps: Figure 1 or Figure 2 Steps shown.
[0096] The storage unit 220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 2201 and / or a cache storage unit 2202, and may further include a read-only storage unit (ROM) 2203. The storage unit 220 may also include a program / utility 2204 having a set (at least one) of program modules 2205, such program modules 2205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include the implementation of a network environment.
[0097] Bus 230 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0098] The electronic device 200 may also communicate with one or more external devices 300 (e.g., keyboard, display, network device, Bluetooth device, etc.) so that a user can interact with the electronic device 200 via these external devices 300, and / or enable the electronic device 200 to communicate with one or more other data processing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 250, and may also be performed through a network adapter 260 with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet). The network adapter 260 may communicate with other modules of the electronic device 200 through the bus 230. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in the electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0099] Figure 5 Schematic diagram of a computer readable medium embodiment of the present invention. Figure 5As shown, the computer program can be stored on one or more computer readable media. The computer readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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 above. When the computer program is executed by one or more data processing devices, the computer-readable medium can implement the above method of the present invention, namely: input a training data set into a business module for processing business, obtain a processing result output by the business module, and calculate the score of each training data in the training data set according to the processing result; select multiple training data with scores higher than a preset critical value from the training data set as head training data, and select multiple training data with scores lower than the critical value as tail training data; identify characteristic variables in the business module, perform equidistant binning processing on the values of the characteristic variables in the head training data and the tail training data, and calculate a first distribution of the value of the characteristic variable in the head training data and a second distribution in the tail training data according to the frequency of the value of the characteristic variable in each bin; calculate the information divergence between the first distribution and the second distribution, the information divergence reflecting the degree of influence of the characteristic variable on the business processing capability of the business module; adjust the characteristic variables in the business module according to the information divergence to improve the business processing capability of the business module.
[0100] Through the description of the above implementation modes, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation mode of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a data processing device (which can be a personal computer, a server, or a network device, etc.) to perform the above method according to the present invention.
[0101] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0102] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0103] In summary, the present invention can be implemented by a method, apparatus, electronic device or computer-readable medium that executes a computer program. In practice, a general data processing device such as a microprocessor or a digital signal processor (DSP) can be used to implement some or all functions of the present invention.
[0104] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for improving the service processing capability of a service module, characterized in that: include: Inputting the training data set into a business module for processing business, obtaining a processing result output by the business module, and calculating a score for each training data in the training data set according to the processing result; Selecting multiple training data with scores higher than a preset critical value from the training data set as head training data, and selecting multiple training data with scores lower than the critical value as tail training data; Identify the characteristic variables in the business module, set the number of bins according to the amount of available computing resources, perform equidistant binning on the values of the characteristic variables in the head training data and the tail training data according to the number of bins, and calculate a first distribution of the values of the characteristic variables in the head training data and a second distribution of the values of the characteristic variables in the tail training data according to the frequency of occurrence of the values of the characteristic variables in each bin; Calculating an information divergence between the first distribution situation and the second distribution situation, wherein the information divergence reflects the influence of the characteristic variable on the service processing capability of the service module; The characteristic variables in the business module are adjusted according to the information divergence to enhance the business processing capability of the business module.
2. The method for improving the service processing capability of a service module according to claim 1, characterized in that: Before performing equidistant binning processing on the values of the feature variables in the head training data and the tail training data, the method further includes: When there are multiple characteristic variables, the characteristic variables are screened according to the usage frequency of the characteristic variables in different business modules.
3. The method for improving the service processing capability of a service module according to claim 1, characterized in that: The performing equidistant binning processing on the values of the feature variables in the head training data and the tail training data comprises: When there are multiple characteristic variables, the value of each characteristic variable is equally spaced and binned according to a uniform number of bins.
4. The method for improving the service processing capability of a service module according to claim 1, characterized in that: The step of adjusting the characteristic variables in the business module according to the information divergence to improve the business processing capability of the business module includes: The weight of the characteristic variable in the business module is scaled according to the size of the information divergence.
5. A device for improving the service processing capability of a service module, characterized in that: include: A score calculation module, which inputs the training data set into a business module for processing business, obtains a processing result output by the business module, and calculates a score for each training data in the training data set according to the processing result; A training data selection module selects a plurality of training data having scores higher than a preset critical value from the training data set as head training data, and selects a plurality of training data having scores lower than the critical value as tail training data; a distribution calculation module, which identifies the characteristic variables in the business module, sets the number of bins according to the amount of available computing resources, performs equidistant binning on the values of the characteristic variables in the head training data and the tail training data according to the number of bins, and calculates a first distribution of the values of the characteristic variables in the head training data and a second distribution of the values of the characteristic variables in the tail training data according to the frequency of occurrence of the values of the characteristic variables in each bin; An information divergence calculation module is used to calculate the information divergence between the first distribution situation and the second distribution situation, wherein the information divergence reflects the influence of the characteristic variable on the service processing capability of the service module; A characteristic variable adjustment module adjusts the characteristic variables in the business module according to the information divergence to improve the business processing capability of the business module.
6. The device for improving the service processing capability of a service module according to claim 5, characterized in that: Before the distribution calculation module performs equidistant binning processing on the values of the feature variables in the head training data and the tail training data, when there are multiple feature variables, the distribution calculation module screens the feature variables according to the usage frequency of the feature variables in different business modules.
7. The device for improving the service processing capability of a service module according to claim 5, characterized in that: When there are multiple characteristic variables, the distribution calculation module performs equidistant binning processing on the value of each characteristic variable according to a uniform number of bins.
8. The device for improving the service processing capability of a service module according to claim 5, characterized in that: The characteristic variable adjustment module scales the weight of the characteristic variable in the business module according to the size of the information divergence.
9. An electronic device, comprising: processor; as well as A memory storing computer executable instructions which, when executed, cause the processor to perform the method according to any one of claims 1-4.
10. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method according to any one of claims 1 to 4 is implemented.
